划掉句子

划掉句子

我不得不划掉一个句子,所以我按照以下的方式去做,这有点马虎。

$ \rlap{\textbf{-------------------------------------------------------------------------------------------------}}%
{\mbox{Its derivative should be}}$ $2z + 2\bar{z} =4Re[z]$ So are its critical points all over the real axis? 

有没有更好的方法来做到这一点并获得相同的结果?

答案1

使用ulem包或soul包裹。

\documentclass{article}
\usepackage[normalem]{ulem} % either use this (simple) or
\usepackage{soul} % use this (many fancier options)
\begin{document}

% ulem command
\sout{Its derivative should be $2z + 2\bar{z} =4Re[z]$ So are its critical points all over the real axis?} 

% soul command
\st{Its derivative should be $2z + 2\bar{z} =4Re[z]$ So are its critical points all over the real axis?} 
\end{document}

代码输出

答案2

您还可以使用 PDF 注释pdf评论包。然后您还可以添加评论/说明。

\documentclass{article}
\usepackage{xcolor}
\usepackage{pdfcomment}
\begin{document}
\pdfmarkupcomment[markup=StrikeOut,color=red,author=Approximist]{Its derivative should be $2z + 2\bar{z} =4Re[z]$ So are its critical points all over the real axis?}{comment}
\end{document}

\pdfmarkupcomment 示例

相关内容