hexo-math icon indicating copy to clipboard operation
hexo-math copied to clipboard

公式居中突出显示

Open ruicx opened this issue 4 years ago • 1 comments

使用 {% mathjax %} ... {% endmathjax %} 包裹的公式是 inline 形式的,如何才能突出显示?

目前我的文本是:

Solving the integral

{% mathjax %}
\int_{0}^{+\infty}\frac{\sin x}{x}dx,
{% endmathjax %}

image

想让公式居中显示并编号,请要怎么做?


我的配置文件是

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

ruicx avatar Dec 15 '20 02:12 ruicx

I believe you need to adjust the MathJax config. I've always added the following to my MathJax:

\displaystyle
\nonumber

lorezyra avatar Jun 24 '23 15:06 lorezyra