![将 LaTeX 转换为 HTML 时,标题中的方程式导致编译错误](https://linux22.com/image/294020/%E5%B0%86%20LaTeX%20%E8%BD%AC%E6%8D%A2%E4%B8%BA%20HTML%20%E6%97%B6%EF%BC%8C%E6%A0%87%E9%A2%98%E4%B8%AD%E7%9A%84%E6%96%B9%E7%A8%8B%E5%BC%8F%E5%AF%BC%E8%87%B4%E7%BC%96%E8%AF%91%E9%94%99%E8%AF%AF%20.png)
我可以使用 Tex4ht 将 LaTeX 文件转换为 HTML,同时保留 @michal.h21 提供的配置文件中的方程式https://tex.stackexchange.com/a/185802/52068
但是,当图像标题中有一个带有单个美元符号 ($equation$) 的方程式时,它就会失败。
出现错误:
TeX capacity exceeded, sorry [input stack size=30000]
梅威瑟:
\begin{figure}[h]
\begin{center}
\includegraphics[width=0.9\textwidth]{F39_B.png}
\caption{Teleportation: the system consists initially of two entangled electrons (2 and 3) with Alice and Bob, respectively, in the state $\ket{\Upsilon}$ (see text). Alice measures one of the Bell states, shown here as $\ket{\Phi^+}$, for example. She sends this outcome classically to Bob, who then corrects the entangled state, here using the identity operator, to put his electron into the state $\ket{\nearrow}$. }
\label{fig:teleport1}
\end{center}
\end{figure}
不确定是否需要向配置文件中添加其他参数以便覆盖标题中的方程式,或者我的 LaTeX 文件有问题。
提前致谢。