Skip to content

Commit

Permalink
added equation numbering to the mathjax config
Browse files Browse the repository at this point in the history
  • Loading branch information
utkugulbulak committed Apr 4, 2024
1 parent 2e1e665 commit 6a9fccb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/_includes/mathjax.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@
<!-- Copied from https://docs.mathjax.org/en/latest/web/components/combined.html -->
<script type="text/javascript" id="MathJax-script" defer
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
</script>

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: {
autoNumber: "AMS"
}
}
});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
3 changes: 3 additions & 0 deletions docs/pages/FiberCpp/half_sarcomeres/KX=F/KX=F.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ As explained at [lattice equations](../lattice_equations/lattice_equations.html)
### Approach

The goal is to solve $$X$$ where $$K$$ and $$F$$ are known and

$$
\begin{equation}
K X = F
Expand All @@ -67,6 +68,7 @@ K_0 X + G(X) = F
$$

Further define

$$
\begin{equation}
X_i = X_{g,i} + \Delta X_i
Expand All @@ -87,6 +89,7 @@ K_0 (X_{g,i} + \Delta X_i) + G(X_{g,i} + \Delta X_i) = F
\end{equation}$$

This can be re-arranged to yield

$$
\begin{equation}
\Delta X_i = K_0 ^{-1} (F - K_0 X_{g,i} - G(X_{g,i} + \Delta X_i))
Expand Down

0 comments on commit 6a9fccb

Please sign in to comment.