Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

\hl (highlight command of soul) in beamer

897 views
Skip to first unread message

Maesumi

unread,
Jan 4, 2012, 9:04:50 PM1/4/12
to
Hi
\hl does not work in beamer.
Does any one know a solution?

spot, hlight, and similar commands do not work for long input
(anything including a line break)
Thanks

Ulrike Fischer

unread,
Jan 5, 2012, 6:38:26 AM1/5/12
to
Am Wed, 4 Jan 2012 18:04:50 -0800 (PST) schrieb Maesumi:

> Hi
> \hl does not work in beamer.
> Does any one know a solution?

beamer redefines \reset@color and this breaks soul. You could try to
reset the command to its original locally:

\documentclass{beamer}
\usepackage{soul}

\makeatletter
\newcommand\Oricolor{%
\let\set@color\beamerorig@set@color
\let\reset@color\beamerorig@reset@color
}
\makeatother
\begin{document}

\setstcolor{red}
\sethlcolor{red}

\begin{frame}

\ul{abc} \hl{abc} \st{def}

{\Oricolor\hl{abc} \st{def}}
\end{frame}
\end{document}


> spot, hlight, and similar commands do not work for long input
> (anything including a line break)

No idea what you mean. Why don't you add some code?


--
Ulrike Fischer
0 new messages