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.

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.

share|improve this question
add comment

1 Answer 1

up vote 11 down vote accepted

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}
share|improve this answer
    
By the way, the former \renewcommand didn't work for me for some reason... the latter does though! –  Werner Feb 28 '12 at 19:30
    
Many thanks! I didn't think to look in the code :( –  José Figueroa-O'Farrill Feb 28 '12 at 19:33
add comment

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.