我注意到在 Org 模式下使用 Latex 预览生成的等式编号不会增加到(1)以上。有没有办法解决这个问题?
这是我的代码:
A numbered display equation:
\begin{equation}
y=\int_{-\infty}^{\infty}\frac{1}{1+x}dx\label{eq1}
\end{equation}
A second numbered equation:
\begin{equation}
z=qr^2-2\label{eq2}
\end{equation}
谢谢!
-亚当
最佳答案
最简单的就是明确\tag
方程。缺点是没有自动编号,优点是这也适用于 MathJax 的 html 导出。
即使没有自动编号,您也可以使用 query-replace-regexp
轻松更正编号。通过替换 \\tag{[0-9]+}
与 \\tag{\,(1+ \#)}
.
你的例子看起来像
A numbered display equation:
\begin{equation}
y=\int_{-\infty}^{\infty}\frac{1}{1+x}dx\label{eq1}\tag{1}
\end{equation}
A second numbered equation:
\begin{equation}
z=qr^2-2\label{eq2}\tag{2}
\end{equation}
关于Emacs 组织模式 : increment equation numbers with latex preview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26090651/