If I want to highlight some words of following frame:

\frametitle{Paragraphs of Text}
Sed iaculis dapibus gravida. Morbi sed tortor erat, nec interdum arcu. Sed id lorem       lectus. Quisque viverra augue id sem ornare non aliquam nibh tristique. Aenean in ligula nisl. Nulla sed tellus ipsum. Donec vestibulum ligula non lorem vulputate fermentum accumsan neque mollis.\\~\\

Sed diam enim, sagittis nec condimentum sit amet, ullamcorper sit amet libero. Aliquam vel dui orci, a porta odio. Nullam id suscipit ipsum. Aenean lobortis commodo sem, ut commodo leo gravida vitae. Pellentesque vehicula ante iaculis arcu pretium rutrum eget sit amet purus. Integer ornare nulla quis neque ultrices lobortis. Vestibulum ultrices tincidunt libero, quis commodo erat ullamcorper id.

what should I do?

  • 3
    Is \alert{hi!} what you are looking for? – moewe Sep 20 '13 at 10:41
  • @moewe : dose there have \begin{alert} \end{alert} this things – Nax Sep 20 '13 at 10:44
  • 1
    There is also \begin{alertenv}trallllalllala\end{alertenv}, use the macro for short text and the environment for paragraphs or longer texts. – moewe Sep 20 '13 at 10:47
  • 1
    @moewe is there a command that works in beamer that does traditional yellow-background highlighting? – dbliss Sep 20 '15 at 21:21
  • @dbliss See tex.stackexchange.com/q/136742/35864 and tex.stackexchange.com/q/5959/35864 depending on the complexity you need. If none of those are what you want and you can't find anything else on this site, please ask a new question. – moewe Sep 21 '15 at 4:59

You can use \alert{foo} to highlight a short portion of text. For longer paragraphs the alertenv environment is more apt (though \alert{} does not complain when fed an argument containing a new paragraph); use it as follows

  foo and indeed bar



  \frametitle{Quite Some Text}
  The following short text will be \alert{highlighted with \texttt{alert}}, while this is not.  

    We can highlight entire paragraphs with the \texttt{alertenv} environment.

    See, that was a paragraph.

  Note though that \alert{\texttt{alert} does not complain when fed a paragraph.

  See, a new paragraph.}

yields enter image description here

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.