我是再次面临与脚注相关的变更包问题:是否可以以某种方式使用它来标记脚注的删除?如果我使用下面的代码,最终版本仍会显示脚注。我怎样才能摆脱它,同时仍然能够突出显示其删除(在非最终版本中)?谢谢,Jorge。
例子:
\documentclass{article}
\usepackage[paperheight=4cm,paperwidth=8cm,margin=0.5cm]{geometry}
\usepackage{changes}
%\usepackage[final]{changes}
\begin{document}
% This compiles, but doesn't yield the desired output:
Let's try deleting a footnote\footnote{\deleted{Which had some text.}}.
% This doesn't compile:
%Let's try deleting a footnote\deleted{\footnote{Which had some text.}}.
\end{document}
答案1
您\deleted
在命令脚注内有命令。但这样,脚注将保留在那里,并且在选择filal
更改选项后将为空。
显示版本是否为草稿的(布尔)变量已被命名Changes@optiondraft
并且包是否ifthen
已加载。
因此,我的想法是定义一个命令\deletedfootnote
,当您想要删除整个脚注时,deleted
在命令的脚注前添加单词,\footnote
如下所示\deletedfootnote
代码在这里:
\documentclass{article}
\usepackage[paperheight=4cm,paperwidth=8cm,margin=0.5cm]{geometry}
\usepackage{changes}
%\usepackage[final]{changes}
\makeatletter
\newcommand\deletedfootnote[1]{%
\ifthenelse{\boolean{Changes@optiondraft}}
{\footnote{\deleted{#1}}}
{}}
\makeatother
\begin{document}
% This compiles, but doesn't yield the desired output:
Let's try deleting a footnote\deletedfootnote{Which had some text.}.
% This doesn't compile:
%Let's try deleting a footnote\deleted{\footnote{Which had some text.}}.
\end{document}
输出draft
:
输出final