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

数学公式不显示编号 #59

Closed
formath opened this issue May 6, 2023 · 1 comment
Closed

数学公式不显示编号 #59

formath opened this issue May 6, 2023 · 1 comment

Comments

@formath
Copy link

formath commented May 6, 2023

渲染插件:
hexo-filter-mathjax
hexo-renderer-pandoc

mathjax配置:

mathjax:
  tags: none # or 'ams' or 'all'
  single_dollars: true # enable single dollar signs as in-line math delimiters
  cjk_width: 0.9 # relative CJK char width
  normal_width: 0.6 # relative normal (monospace) width
  append_css: true # add CSS to pages rendered by MathJax
  every_page: true # if true, every page will be rendered by MathJax regardless the `mathjax` setting in Front-matter
  packages: # extra packages to load
  extension_options: {}
    # you can put your extension options here
    # see http://docs.mathjax.org/en/latest/options/input/tex.html#tex-extension-options for more detail

文章中公式latex例子:

$$
\begin{equation}
\begin{aligned}
p(x) = \frac{exp^{u(x;\,\theta)}}{Z(\theta)}
\end{aligned}
\end{equation}
$$
@formath
Copy link
Author

formath commented May 7, 2023

改成这样即可 tags: ams

@formath formath closed this as completed May 7, 2023
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

1 participant