I need to put a quote between itemize
items in a beamer
frame
. If I stop and restart itemize
around the quote the result's not indented at all:
\documentclass{beamer}
\usetheme{CambridgeUS}
\usefonttheme{serif}
\setbeamerfont{quote}{shape=\upshape,family=\rmfamily}
\beamerdefaultoverlayspecification{<+->}
\begin{document}
\begin{frame}{Frame}
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit.
\end{itemize}
\begin{quote}Sed vitae purus facilisis, blandit odio eget, tincidunt nisi. Aliquam pulvinar, ipsum ac aliquet facilisis, neque quam tincidunt lacus, at eleifend ante lorem quis neque. Suspendisse potenti. \end{quote}
\begin{itemize}
\item Nulla vel bibendum ligula. Sed imperdiet felis lacus, a vulputate urna egestas at.
\end{itemize}
\end{frame}
\end{document}
But if I don't restart the quote is indented too much:
\documentclass{beamer}
\usetheme{CambridgeUS} \usefonttheme{serif} \setbeamerfont{quote}{shape=\upshape,family=\rmfamily}
\beamerdefaultoverlayspecification{<+->}
\begin{document}
\begin{frame}{Frame}
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit. \smallskip{}
\begin{quote}Sed vitae purus facilisis, blandit odio eget, tincidunt nisi. Aliquam pulvinar, ipsum ac aliquet facilisis, neque quam tincidunt lacus, at eleifend ante lorem quis neque. Suspendisse potenti. \end{quote}
\item Nulla vel bibendum ligula. Sed imperdiet felis lacus, a vulputate urna egestas at.
\end{itemize}
\end{frame}
\end{document}
I'm guessing that I will have to redefine the quote
environment from beamerbaselocalstructure.sty
. How would that go? It's probably in the beamer
user guide, but I couldn't find it.
Best Answer
Use
changepage
'sadjustwidth
environment to adjust the margins around your quote:You can perform a complete replacement of the
quote
environment with that of anadjustwidth
one using (say)The above redefinition provides
with an optional
<margin>
argument that are used for the left and right margin adjustments.