修改latex格式的论文时,需要高亮标记修改的文本,可以使用如下方法:
\usepackage{soul}
\hl{This will be highlight.}
但是遇到引用文献或者图表时(\cite、\ref等命令),以上方法容易出错。解决方法是对这些命令进行注册:
\usepackage{soul}
% 针对\cite和\ref命令 (通常用下面两个)
\soulregister\cite7
\soulregister\ref7
% 针对其他命令
\soulregister\citep7 % 针对\citep命令
\soulregister\citet7 % 针对\citet命令
\soulregister\pageref7 % 针对\pageref命令
2022年4月23日,新加坡,天气晴中有雨,去吧。