[Tex/LaTex] Indent paragraphs in a beamer block

beamerindentation

I want every new paragraph except the first one in a \begin{block} to be indented. This is the standard in other document classes. I already put \setlength\parindent{1cm} in my preamble, but this indents the first paragraph. It's a small thing, but I'd like to be consistent with the other document classes. I also have a problem with my Lemma and Theorem headers being indented along with the text, which is really bad. How do I do this in a beamer?

Best Answer

Here would be my approach using beamer's "templating" capabilities and LaTeX's mechanism for disabling indentation after headings:

\documentclass{beamer}
\usetheme{Warsaw} % just to have some style around the content
\makeatletter
\addtobeamertemplate{block begin}{}{\setlength{\parindent}{1cm}\@afterindentfalse\@afterheading}
\makeatother

\begin{document}
\begin{block}{Test}
Test

Test
\end{block}
\begin{block}{Test}
Test

Test
\end{block}
\end{document}

enter image description here