hexo-math
hexo-math copied to clipboard
公式居中突出显示
使用 {% mathjax %} ... {% endmathjax %}
包裹的公式是 inline 形式的,如何才能突出显示?
目前我的文本是:
Solving the integral
{% mathjax %}
\int_{0}^{+\infty}\frac{\sin x}{x}dx,
{% endmathjax %}
想让公式居中显示并编号,请要怎么做?
我的配置文件是
math:
engine: 'mathjax' # or 'katex'
mathjax:
src: //cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
options:
conversion:
display: True
tex:
svg:
katex:
css: custom_css_source
js: custom_js_source # not used
config:
# KaTeX config
I believe you need to adjust the MathJax config. I've always added the following to my MathJax:
\displaystyle
\nonumber