6

I have a beamer presentation that contains different blocks, I need to justify all my paragraphs (right and left) how can I do that?

\documentclass[11pt]{beamer}
\begin{document}
\begin{frame}{Introduction}
    \begin{block}{}
         content that i want to justify
    \end{block}
 \end{frame}
\end{document}
1

1 Answer 1

9

You can use \addtobeamertemplate to add the \justifying command from the ragged2e package to the beginning of the block environment:

\documentclass[11pt]{beamer}
\usepackage{ragged2e} % For \justifying command
\usepackage{lipsum} % Only for demo text

\addtobeamertemplate{block begin}{}{\justifying} % Justify all blocks

\begin{document}
\begin{frame}{Introduction}
    \begin{block}{}
         \lipsum[12]
    \end{block}
 \end{frame}
\end{document}

Justified output

4
  • thank you, it works but only for simple phrases and not on lists phrases
    – Hind Dev
    Commented Mar 12, 2016 at 16:43
  • @HindDev What do you mean? What are "lists phrases"?
    – sodd
    Commented Mar 12, 2016 at 16:48
  • I mean items on an enumeration or itemize
    – Hind Dev
    Commented Mar 12, 2016 at 17:07
  • That is another problem, with an answer here.
    – sodd
    Commented Mar 12, 2016 at 17:47

You must log in to answer this question.

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