mathjax - 如何在 asciidoc 中为 mathjax 表达式定义自定义宏?
问题描述
我想在我的 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 配置)?
相关问题:
解决方案
尝试
:stem: latexmath
[latexmath]
++++
\newcommand{\myCustomSymbol}{{\unicode{x2307}\unicode{x2307}\unicode{x2307}}}
E^{\myCustomSymbol}
++++
[latexmath]
++++
E^{\myCustomSymbol}
++++
您只需要定义一次符号,然后就可以使用它。
推荐阅读
- azure - 来自 VSTS 管道的 PowerShell 远程
- javascript - 在事件处理程序 onclick 之后,如何正确更改 URL 的查询字符串中的参数?
- python - django 查询基于外键字段值选择唯一行
- javascript - 如何在数据chart.js中插入php
- jquery - 当我调整窗口大小时如何使用滚动
- python - 零填充熊猫列
- c# - CreateSession 方法 OpenTok .net SDK 上的“请求提交错误”
- java - 应用 Android Multidex 时出现“NoClassDefFoundError”
- visual-studio-code - Vetur 配置尊重 eslint 标准
- c# - wpf应用程序文本框中的全质量表情符号