18

I would like to change the behaviour of \alert so that the text is still red but now boldfaced, say. How can I do this? I have Googled, but all I can find is how to change the colour, as in Changing style of alert environment in beamer.

1 Answer 1

25

After some digging, I located the definition of \alert in beamerbaselocalstructure.sty. The rest was easy. ;-)

EDIT: There's also a more "beamer-like" way. :-)

\documentclass{beamer}

% \renewcommand<>{\alert}[1]{\begin{alertenv}\bfseries#2#1\end{alertenv}}
\setbeamerfont{alerted text}{series=\bfseries}

\begin{document}

\begin{frame}
\alert{Some text.}
\end{frame}

\end{document}
2
  • By the way, the former \renewcommand didn't work for me for some reason... the latter does though!
    – Werner
    Feb 28, 2012 at 19:30
  • Many thanks! I didn't think to look in the code :( Feb 28, 2012 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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