变更包的替代方案

变更包的替代方案

目前,对于文本中的注释(显示在编译后的 pdf 中),我使用“todonotes”包,并能够在最终 pdf 中将其打开和关闭。我还需要使用类似于“changes”包的文本更改功能。不幸的是,这两个包不想一起工作。我无法放弃“todonotes”包(tex 文件中的注释太多)。你知道有什么替代方案吗?我需要突出显示可能带有注释的添加/更改的文本。

“消息”:“包 todonotes 的选项冲突。

不起作用:

\usepackage{changes}

和:

\usepackage[disable]{todonotes} % <- OFF
%\usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes} % <- ON
% 
\newcommandx{\unsure}[2][1=]{\todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,size=\normalsize,#1]{#2}}
\newcommandx{\change}[2][1=]{\todo[linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,size=\normalsize,#1]{#2}}
\newcommandx{\info}[2][1=]{\todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,size=\normalsize,#1]{#2}}
\newcommandx{\improvement}[2][1=]{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,size=\normalsize,#1]{#2}}
\newcommandx{\thiswillnotshow}[2][1=]{\todo[disable,#1]{#2}}

主.tex 文件:

\documentclass{report}
%
% 

\usepackage{changes} % does not work with todonotes


%================ TO DO LIST=============================
% todonotes ON/OFF
\usepackage[disable]{todonotes} % 
%\usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes} %


\begin{document}

x
\end{document}
%+++ END +++

答案1

更改无论如何都会加载 todonotes 并允许您向其传递选项:

\documentclass{report}
\usepackage[todonotes={colorinlistoftodos,prependcaption,textsize=tiny}]{changes} 
\begin{document}
x
\end{document}

相关内容