0

how can I justify the text inside an alert block?

\begin{frame} 
\begin{alertblock}{hello} 
text to justify
\end{alertblock} 
\end{frame}
Bernard
  • 271,350
Mary
  • 13

1 Answers1

1

Adapting the answer from Justify content in beamer blocks you can redefine the block alerted begin beamer template

\documentclass{beamer}

\usepackage[nopar]{lipsum}% for dummy text \usepackage{ragged2e}% for \justifying \addtobeamertemplate{block alerted begin}{}{\justifying}

\begin{document}

\begin{frame} \begin{block}{block} \lipsum[66] \end{block}

\begin{alertblock}{alertblock} \lipsum[66] \end{alertblock} \end{frame}

\end{document}

enter image description here

campa
  • 31,130