mathjax.html 886 B

123456789101112131415161718192021
  1. <!-- Allow inline math using $ and automatically break long math lines -->
  2. <!-- (mostly) copied from nbconvert configuration -->
  3. <!-- https://github.com/jupyter/nbconvert/blob/master/nbconvert/templates/html/mathjax.tpl -->
  4. <script type="text/x-mathjax-config">
  5. MathJax.Hub.Config({
  6. tex2jax: {
  7. inlineMath: [ ['$','$'], ["\\(","\\)"] ],
  8. displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
  9. processEscapes: true,
  10. processEnvironments: true
  11. },
  12. // Center justify equations in code and markdown cells. Elsewhere
  13. // we use CSS to left justify single line equations in code cells.
  14. displayAlign: 'center',
  15. "HTML-CSS": {
  16. styles: {'.MathJax_Display': {"margin": 0}},
  17. linebreaks: { automatic: true },
  18. }
  19. });
  20. </script>
  21. <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML' async></script>