1

It seems that using multiple {{{ and }}} causes some problem to the latex document. Assume this line

\usepackage{color,soul}
\begin{document}
   something \hl{I am referring to \cite{publi}} is good.
\end{document}

But I get this error

<inserted text> 
            \par 
l.180 ...something \hl{I am referring to \cite{publi}}

How can I fix that?

mahmood
  • 3,359

1 Answers1

3

Wrap the \cite inside an \mbox, as suggested in the soul documentation under Protecting (p 4):

\hl{I am referring to \mbox{\cite{publi}}}

As a further reference, see How to make \hl (highlighting) to automatically place incompatible commands in \mbox?

Werner
  • 603,163