我正在撰写一篇文章的修订版。我正在使用该changes
软件包来跟踪我的修订。
在引用中使用\added
、\deleted
或时发生冲突。这可以通过使用建议的方法来解决这个问题\replaced
\mbox
这个帖子。不幸的是,对我来说,它只适用于带数字的基本引用样式,而不适用于我提交的期刊所要求的“作者(年份)”样式(例如哈佛)。
这是一个最小的工作示例:
\documentclass{article}
\usepackage{changes}
\usepackage{harvard}
\begin{filecontents}{references.bib}
@article{ref0,
title = {title0},
journal = {journaltitle 0},
author = {author0},
month = jan,
year = {2011},
}
@article{ref1,
author = {author1},
title = {title1},
journal = {journaltitle 1},
month = feb,
year = {2022},
}
@article{ref2,
author = {author2},
title = {title2},
journal = {journaltitle 2},
month = mar,
year = {2022},
}
\end{filecontents}
\begin{document}
I can cite \cite{ref0} \deleted{but not \mbox{\cite{ref1} \cite{ref2}}}
\bibliographystyle{dcu}
\bibliography{references}
\end{document}
我收到以下错误:
Argument of \XC@col@rlet has an extra }. ...ed{but not \mbox{\cite{ref1} \cite{ref2}}}
Paragraph ended before \XC@col@rlet was complete. ...ed{but not \mbox{\cite{ref1} \cite{ref2}}}
任何想法?
答案1
您可以使 \cite 命令更加强大:
\usepackage{changes}
\usepackage{harvard}
\usepackage{etoolbox}
\robustify\cite