【发布时间】:2011-02-09 11:22:02
【问题描述】:
请参阅下面的 sn-p 并告诉我如何实现与正文中相同的删除效果。我正在使用最新 Ubuntu 存储库中的 LaTeX 版本。
\documentclass{article}
\usepackage{ulem}
\begin{document}
The sout tag works perfect in the \sout{main text area} but not inside the equations.
$$
list = [1, \sout{2}, 3, \sout{4}, 5, \sout{6}, 7, \sout{8}, 9, \sout{10}]
$$
Any clue?
\end{document}
【问题讨论】:
-
你不应该在 Latex 中使用
$$。这是一个普通的 Tex 命令。 -
进一步了解@Debilski 所说的内容:stackoverflow.com/questions/2251417/latex-dollar-sign-vs 对此进行了一些讨论。我不认为使用 $$ 是一种犯罪行为,我认为 $$ 支持不会消失,但您最好避免使用它。
标签: latex typesetting strikethrough mathematical-typesetting