Skip to content

Commit

Permalink
MathJaxのブロック数式 : 左に詰まっていたのでインデントをつけた
Browse files Browse the repository at this point in the history
  • Loading branch information
faithandbrave committed May 26, 2024
1 parent 6dd1cca commit 11109cf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
27 changes: 14 additions & 13 deletions boostjp/templates/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,20 @@

{% block mathjax %}
{% if mathjax %}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'] ],
displayMath: [ ['$$','$$'] ],
processEscapes: true
},
"HTML-CSS": { availableFonts: ["TeX"] },
displayAlign: "left",
});
<script>
window.MathJax = {
tex: {
inlineMath: [ ['$','$'] ],
displayMath: [ ['$$','$$'] ],
processEscapes: true
},
chtml: {
displayAlign: 'left',
displayIndent: '2.0em',
},
};
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
{% endif %}
{% endblock %}
27 changes: 14 additions & 13 deletions cpprefjp/templates/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,20 @@

{% block mathjax %}
{% if mathjax %}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'] ],
displayMath: [ ['$$','$$'] ],
processEscapes: true
},
"HTML-CSS": { availableFonts: ["TeX"] },
displayAlign: "left",
});
<script>
window.MathJax = {
tex: {
inlineMath: [ ['$','$'] ],
displayMath: [ ['$$','$$'] ],
processEscapes: true
},
chtml: {
displayAlign: 'left',
displayIndent: '2.0em',
},
};
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
{% endif %}
{% endblock %}

0 comments on commit 11109cf

Please sign in to comment.