Latex 中的校对:校对包中的删除命令失败

Latex 中的校对:校对包中的删除命令失败

我在用校对包来更正 latex 文档(参见 MWE 及其输出)。当我使用\del{}命令删除输出(PDF)中超过一行的文本时,它无法开始新行(参见附图)。提前感谢您的帮助。以下是 MWE 及其输出:

    \documentclass[reprint,amsmath]{revtex4-1}

    \usepackage{color}
    \usepackage{amsmath}
    \usepackage{proofread}
    \usepackage[utf8]{inputenc}

    \begin{document}

    \title{Using the proofread package}

    \author{Ashiq e Namurad}
    \affiliation{Koocha e Janaan, Shehr Dilbar}

    \maketitle
    \section{Introduction}

    Baseline datasets are also rare, making trend gathering difficult.
\del{Increasingly, researchers are working with Inuit communities, 
which have a long oral history of species in the region.}

    In recent years, killer whales, or orcas, have also become more
frequent in a number, taking advantage of longer ice-free seasons. 
The whales, which feast on resident narwhal, have even started 
changing narwhal behaviour, according to a 2017 report by the 
Department of Fisheries and Oceans. (Report from The Guardian)

    \end{document}

在此处输入图片描述

答案1

这里的问题是soul包中的命令不能嵌套;因此,包\del命令中的加粗和突出显示proofread是通过在保存框中加粗文本然后突出显示该框来完成的。但是,这会强制文本位于一行上。我将上传一个删除了加粗的新版本:

\newcommand{\del}[1]{%
  \com{delete}%
  \hilite[red]{#1}%
}

相关内容