我有一个包含不同块的投影仪演示文稿,我需要调整所有段落(右对齐和左对齐)我该怎么做?
\documentclass[11pt]{beamer}
\begin{document}
\begin{frame}{Introduction}
\begin{block}{}
content that i want to justify
\end{block}
\end{frame}
\end{document}
答案1
您可以使用将命令从包\addtobeamertemplate
添加到环境的开头:\justifying
ragged2e
block
\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}