// mathJax全局配置文件 window.MathJax = { loader: { load: ['[tex]/ams', '[tex]/physics'] }, tex: { inlineMath: [ ['$', '$'], ['(', ')'], ], // 行内公式选择符 displayMath: [ ['$$', '$$'], ['[', ']'], ], // 段内公式选择符 // 增加 physics 宏包 packages: { '[+]': ['ams', 'physics'] }, }, // 使用 chtml 渲染器 chtml: { displayAlign: 'center', // 左对齐 displayIndent: '0', // 不缩进 scale: 1, // 缩放比例 exFactor: 2, // 行高因子 }, startup: { ready() { window.MathJax.startup.defaultReady(); }, }, };