4

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}
6

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.