\usepackage{xcolor} \usepackage[normalem]{ulem} % use normalem to protect \emph \newcommand\hl{\bgroup\markoverwith {\textcolor{yellow}{\rule[-.5ex]{2pt}{2.5ex}}}\ULon}
这样我们使用\hl
命令即可。
选自:http://tex.stackexchange.com/questions/48501/soul-broken-highlighting-with-xcolor-when-using-selectcolormodel/48549#48549
发表评论 取消回复