Skip to content

Commit

Permalink
try to use mathjax
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangyu-Hu committed Sep 20, 2024
1 parent d352a12 commit 75e828f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<head>
{% include mathjax.html %}
</head>
15 changes: 15 additions & 0 deletions docs/_includes/mathjax.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: { autoNumber: "all" },
tagSide: "right"
},
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
}
});
</script>
<script src="https://cdn.jsdelivr.net/gh/mathjax/MathJax@legacy-v2-develop/unpacked/MathJax.js?config=TeX-AMS_CHTML">
</script>
2 changes: 1 addition & 1 deletion docs/_posts/2024-09-20-tensile-instability-p2.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ If only the hourglass modes have contribution, one may require that
all the numerical simulations which are identified as tensile instability
become numerically stable if only the method preventing hourglass is applied.

<p align="center"><img src="{{site.baseurl}}/assets/img/zigzag.jpg"alt="Zigzag" height="350"/>
<p align="center"><img src="{{site.baseurl}}/assets/img/zigzag.jpg" alt="Zigzag" height="350"/>
<center>Fig. 2. Illustration of zero energy modes by considering a simple case.
The particles are uniformly distributed along the x-axis,
and change from time step n to time step n + 1
Expand Down

0 comments on commit 75e828f

Please sign in to comment.