赞
踩
论文第一轮审稿后,根据审稿人意见,修改原文,并将修改部分高亮。其中,正文和新增的参考文献均需要高亮标注。
预定义一个高亮颜色,用于标识修改部分。
将预定义的高亮颜色传入texcolor命令,生成新命令。
\usepackage{xcolor} \usepackage{xpatch} \makeatletter \ExplSyntaxOn % #1 = color % #2 = list of bib items \cs_new:Npn \bibColoredItems #1#2 { \clist_map_inline:nn {#2} { \cs_new:cpn {bib@colored@##1} {#1} } } \ExplSyntaxOff % #1 = one bib item \newcommand\bib@setcolor[1]{% \ifcsname bib@colored@#1\endcsname \expanded{\noexpand\color{\csname bib@colored@#1\endcsname}}% \else \normalcolor \fi } \IfPackageLoadedTF{hyperref}{\@tempswatrue}{\@tempswafalse} \if@tempswa \xpatchcmd\@bibitem {\H@item}{\bib@setcolor{#1}\H@item}{}{\PatchFailed} \xpatchcmd\@lbibitem{\H@item}{\bib@setcolor{#2}\H@item}{}{\PatchFailed} \else \xpatchcmd\@bibitem {\item} {\bib@setcolor{#1}\item} {}{\PatchFailed} \xpatchcmd\@lbibitem{\item} {\bib@setcolor{#2}\item} {}{\PatchFailed} \fi \makeatother
\definecolor{revisioncolor}{HTML}{3370BD} %预定义高亮颜色revisioncolor,直接引用,统一修改。
\newcommand{\revision}[1]{\textcolor{revisioncolor}{#1}} %定义新命令revision,方便插入和修改。
This is original information in manuscript. \revision{This is additional content for revision.}1234
{\small
\bibliographystyle{plain}
\bibColoredItems{revisioncolor}{ref_1} %新增ref,颜色设置为revisioncolor
\bibliography{egbib} %原ref,格式不变
}
ref[52]为新增的ref_1,高亮,颜色与正文中修改部分保持一致。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。