mathjax.js 593 B

123456789101112131415161718192021222324252627
  1. // mathJax全局配置文件
  2. window.MathJax = {
  3. tex: {
  4. inlineMath: [
  5. ['$', '$'],
  6. ['(', ')'],
  7. ], // 行内公式选择符
  8. displayMath: [
  9. ['$$', '$$'],
  10. ['[', ']'],
  11. ], // 段内公式选择符
  12. },
  13. // 使用 chtml 渲染器
  14. chtml: {
  15. displayAlign: 'center', // 左对齐
  16. displayIndent: '0', // 不缩进
  17. scale: 1, // 缩放比例
  18. minScaleAdjust: 50, // 最小缩放比例
  19. exFactor: 2, // 行高因子
  20. linebreaks: true, // 自动换行
  21. },
  22. startup: {
  23. ready() {
  24. window.MathJax.startup.defaultReady();
  25. },
  26. },
  27. };