我如何调整警告块内的文本?
\begin{frame}
\begin{alertblock}{hello}
text to justify
\end{alertblock}
\end{frame}
答案1
改编自在投影仪块中对齐内容您可以重新定义block alerted begin
beamer 模板
\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}