mathjax.tpl 883 B

1234567891011121314151617181920212223
  1. {%- macro mathjax(url='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML') -%}
  2. <!-- Load mathjax -->
  3. <script src="{{url}}"></script>
  4. <!-- MathJax configuration -->
  5. <script type="text/x-mathjax-config">
  6. MathJax.Hub.Config({
  7. tex2jax: {
  8. inlineMath: [ ['$','$'], ["\\(","\\)"] ],
  9. displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
  10. processEscapes: true,
  11. processEnvironments: true
  12. },
  13. // Center justify equations in code and markdown cells. Elsewhere
  14. // we use CSS to left justify single line equations in code cells.
  15. displayAlign: 'center',
  16. "HTML-CSS": {
  17. styles: {'.MathJax_Display': {"margin": 0}},
  18. linebreaks: { automatic: true }
  19. }
  20. });
  21. </script>
  22. <!-- End of mathjax configuration -->
  23. {%- endmacro %}