How can I justify the text in the whole document in beamer without using \usepackage{ragged2e}
and \justifying
at the beginning of each frame?
\documentclass[8pt,handout,t]{beamer}
\usepackage{pifont} %used inside itemize environment \item[\ding{226}]
\usepackage{lipsum}
\begin{document}
\begin{frame}
\begin{columns}[T]
\begin{column}{0.3\textwidth}
\includegraphics[width=\columnwidth]{example-image-1x1}
\end{column}
\begin{column}{0.65\textwidth}
\begin{itemize}
\item[\ding{226}] \lipsum[2]
\item[\ding{226}] \lipsum[3]
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
\lipsum[3]
\begin{itemize}
\item[\ding{226}] \lipsum[4]
\end{itemize}
\end{frame}
\begin{frame}
\begin{columns}[t]
\begin{column}{0.4\textwidth}
\lipsum[3]
\end{column}
\begin{column}{0.4\textwidth}
\lipsum[5]
\end{column}
\end{columns}
\end{frame}
\end{document}
Edit: I had already checked this out but it does not work for both the columns
and the itemize
environment.
Best Answer
To patch "normal" frames, the solution can be found text justify in beamer
Itemize has also already a solution on this side: Justify text inside itemize environment with beamer class
But I could not find one to automatically justify the contents of columns. So I tried a bit, failed in the attempt to patch
\begin{column}...
, but with\column
it works as following: