如何在asciidoc中为mathjax表达式定义自定义宏?

如何在asciidoc中为mathjax表达式定义自定义宏?,mathjax,asciidoc,Mathjax,Asciidoc,我有一些数学表达式,我想在我的asciidoc文档中重复使用: :stem: latexmath [latexmath] ++++ E^{\unicode{x2307}\unicode{x2307}\unicode{x2307}} ++++ 为了得到更容易阅读的方程式,我想使用快捷方式,例如 :stem: latexmath [latexmath] ++++ E^{\myCustomSymbol} ++++ 或 =>我如何在数学

我有一些数学表达式,我想在我的asciidoc文档中重复使用:

:stem: latexmath

[latexmath]
++++        
E^{\unicode{x2307}\unicode{x2307}\unicode{x2307}}       
++++
为了得到更容易阅读的方程式,我想使用快捷方式,例如

:stem: latexmath

[latexmath]
++++        
E^{\myCustomSymbol}       
++++

=>我如何在数学表达式或

=>如何在asciidoc中定义mathjax宏(是否可以使用一些特殊命令来调整mathjax配置)

相关问题:

试试看

:stem: latexmath

[latexmath]
++++        
\newcommand{\myCustomSymbol}{{\unicode{x2307}\unicode{x2307}\unicode{x2307}}}
E^{\myCustomSymbol}       
++++

[latexmath]
++++
E^{\myCustomSymbol}       
++++
您只需要定义一次符号,然后就可以从那时起使用它。

试试看

您只需要定义一次符号,然后就可以从此开始使用它

:stem: latexmath

[latexmath]
++++        
\newcommand{\myCustomSymbol}{{\unicode{x2307}\unicode{x2307}\unicode{x2307}}}
E^{\myCustomSymbol}       
++++

[latexmath]
++++
E^{\myCustomSymbol}       
++++