2

I want text indentation within blocks. My MWE is below:

\documentclass{beamer}
\usetheme{Warsaw}
\usepackage[english]{babel}
\usepackage{lipsum}

% For global Justification
\usepackage{ragged2e}
\justifying
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}
\addtobeamertemplate{block begin}{}{\justifying}


\begin{document}

\footnotesize
\begin{frame}{Test Frame}

\begin{block}{Test Block}

\lipsum[1]

\lipsum[6]

\end{block}

\end{frame}

\end{document}

enter image description here

Any help will be highly appreciated. Thanks

1 Answer 1

5

You can specify the length of \parindent for text in such blocks at the same place you set the \justifying. By default beamer has set this to 0pt, but a usual amount would be 2em:

Sample output

\documentclass{beamer}
\usetheme{Warsaw}
\usepackage[english]{babel}
\usepackage{lipsum}

% For global Justification
\usepackage{ragged2e}
\justifying
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}
\addtobeamertemplate{block begin}{}{\justifying\setlength{\parindent}{2em}}


\begin{document}

\footnotesize
\begin{frame}{Test Frame}

\begin{block}{Test Block}
\lipsum[1-2]
\end{block}

\end{frame}

\end{document}
1
  • (+1): Thanks a lot @Andrew. Much appreciated.
    – MYaseen208
    Commented Apr 29, 2014 at 13:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .