math-print.js 802 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. (function() {
  2. window.MathJax =
  3. {
  4. options:
  5. {
  6. skipHtmlTags: {'[+]': ['text']},
  7. ignoreHtmlClass: 'geDisableMathJax'
  8. },
  9. loader:
  10. {
  11. load: [(window.opener.urlParams['math-output'] == 'html') ?
  12. 'output/chtml' : 'output/svg', 'input/tex',
  13. 'input/asciimath', 'ui/safe']
  14. },
  15. startup:
  16. {
  17. ready: function()
  18. {
  19. MathJax.startup.defaultReady();
  20. MathJax.startup.promise.then(function()
  21. {
  22. if (window.IMMEDIATE_PRINT)
  23. {
  24. window.print();
  25. }
  26. });
  27. }
  28. }
  29. };
  30. var s = document.createElement('script');
  31. s.setAttribute('type', 'text/javascript');
  32. s.setAttribute('src', window.opener.DRAW_MATH_URL + '/startup.js');
  33. var t = document.getElementsByTagName('script')[0];
  34. if (t != null)
  35. {
  36. t.parentNode.insertBefore(s, t);
  37. }
  38. })();