mathjax.tpl
22 lines
| 856 B
| application/vnd.groove-tool-template
|
SmartyLexer
damianavila
|
r14150 | {%- macro mathjax() -%} | |
MinRK
|
r15846 | <!-- Load mathjax --> | |
MinRK
|
r17751 | <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script> | |
damianavila
|
r14150 | <!-- MathJax configuration --> | |
<script type="text/x-mathjax-config"> | |||
MathJax.Hub.Config({ | |||
damianavila
|
r14199 | tex2jax: { | |
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ], | |||
processEscapes: true, | |||
processEnvironments: true | |||
}, | |||
// Center justify equations in code and markdown cells. Elsewhere | |||
// we use CSS to left justify single line equations in code cells. | |||
displayAlign: 'center', | |||
"HTML-CSS": { | |||
styles: {'.MathJax_Display': {"margin": 0}}, | |||
linebreaks: { automatic: true } | |||
} | |||
damianavila
|
r14150 | }); | |
</script> | |||
<!-- End of mathjax configuration --> | |||
{%- endmacro %} |