Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
\documentclass{beamer} 
\usepackage{soul,color} 
\begin{document} 
\begin{frame} 
\hl{Hello World} 
\end{frame} 
\end{document}

I process this with pdflatex and I do not see the expected highlight. If I try to assign a color to overstrike same thing happens, as in

\setstcolor{red}
\st{Hello}

but \st{hello} by itself does overstrike hello in black when no color is set. Why is that and what is a work-around? Many That I tried do not work with long text.

The Soul Package Documentation, footnote 5, says something about needing a Postscript driver.

I do not have a problem using soul package outside of beamer.

share|improve this question

1 Answer 1

up vote 11 down vote accepted

beamer redefines nearly anything ...

\documentclass{beamer}
\usepackage{soul}
\makeatletter
\newcommand\SoulColor{%
  \let\set@color\beamerorig@set@color
  \let\reset@color\beamerorig@reset@color}
\makeatother
\begin{document}
\begin{frame}
\hl{Hello World} 

\SoulColor\hl{Hello World}
\end{frame}
\end{document} 

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.