I'm making a poster with beamer and using alertblocks, but within the alert block, I want there to be more white space between the text on both sides and the margin of the alert block. I basically don't want the text to go right up to the edge of the alert block on the right and left sides.

\documentclass[final]{beamer}
\begin{alertblock}{Introduction}
Paragraph of random text blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
\end{alertblock}
\end{document}
  • 2
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Martin Schröder Nov 20 '16 at 20:45
up vote 1 down vote accepted

You could wrap your text in a parbox or a minipage:

\documentclass[final]{beamer}
\usecolortheme{rose}
\begin{document}
\begin{frame}

\begin{alertblock}{Introduction}
Paragraph of random text blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
\end{alertblock}

\begin{alertblock}{Introduction}
\centering
\parbox{.8\textwidth}{Paragraph of random text blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah}
\end{alertblock}


\end{frame}
\end{document}

enter image description here

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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