如何在 asciidoc 中为 mathjax 表达式定义自定义宏?
How to define custom macro for mathjax expression inside asciidoc?
我想在我的 asciidoc 文档中重用一些数学表达式:
:stem: latexmath
[latexmath]
++++
E^{\unicode{x2307}\unicode{x2307}\unicode{x2307}}
++++
为了获得更易于阅读的方程式,我想使用快捷方式,例如
:stem: latexmath
[latexmath]
++++
E^{\myCustomSymbol}
++++
或
:stem: latexmath
[latexmath]
++++
E^{include::myCustomSymbol.ad}
++++
=> 如何在数学表达式或
中使用 asciidoc 导入
=> 如何在 asciidoc 中定义 mathjax 宏(是否可以使用一些特殊命令调整 mathjax 配置)?
相关问题:
How to define custom macros in MathJax
尝试
:stem: latexmath
[latexmath]
++++
\newcommand{\myCustomSymbol}{{\unicode{x2307}\unicode{x2307}\unicode{x2307}}}
E^{\myCustomSymbol}
++++
[latexmath]
++++
E^{\myCustomSymbol}
++++
您只需定义一次符号,之后就可以使用它了。
我想在我的 asciidoc 文档中重用一些数学表达式:
:stem: latexmath
[latexmath]
++++
E^{\unicode{x2307}\unicode{x2307}\unicode{x2307}}
++++
为了获得更易于阅读的方程式,我想使用快捷方式,例如
:stem: latexmath
[latexmath]
++++
E^{\myCustomSymbol}
++++
或
:stem: latexmath
[latexmath]
++++
E^{include::myCustomSymbol.ad}
++++
=> 如何在数学表达式或
中使用 asciidoc 导入=> 如何在 asciidoc 中定义 mathjax 宏(是否可以使用一些特殊命令调整 mathjax 配置)?
相关问题:
How to define custom macros in MathJax
尝试
:stem: latexmath
[latexmath]
++++
\newcommand{\myCustomSymbol}{{\unicode{x2307}\unicode{x2307}\unicode{x2307}}}
E^{\myCustomSymbol}
++++
[latexmath]
++++
E^{\myCustomSymbol}
++++
您只需定义一次符号,之后就可以使用它了。