Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

公式居中突出显示 #138

Open
ruicx opened this issue Dec 15, 2020 · 1 comment
Open

公式居中突出显示 #138

ruicx opened this issue Dec 15, 2020 · 1 comment

Comments

@ruicx
Copy link

ruicx commented Dec 15, 2020

使用 {% 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
@lorezyra
Copy link

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

\displaystyle
\nonumber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants