Commits

Joseph Wright committed 176d130

Use \centering as a command not environment (fixes #254)

These were all 'safe' any way (no `\par` needed), but it's better to get
this done properly.

  • Participants
  • Parent commits 4e405bc

Comments (0)

Files changed (2)

base/emulation/beamerprosper.sty

 \newenvironment{Itemize}{\begin{itemize}}{\end{itemize}}
 \newenvironment{itemstep}[1][]{\begin{itemize}[<+->]}{\end{itemize}}
 \newenvironment{enumstep}[1][]{\begin{enumerate}[<+->]}{\end{enumerate}}
-\newcommand\prosperpart[2][]{\begin{slide}[#1]{}\begin{centering}\Large\structure{#2}\par\end{centering}\end{slide}}
+\newcommand\prosperpart[2][]{\begin{slide}[#1]{}\begingroup\centering\Large\structure{#2}\par\endgroup\end{slide}}
 \newcommand{\hiddenitem}{\addtocounter{beamerpauses}{1}}
 
 

base/themes/inner/beamerinnerthemedefault.sty

 {
   \vbox{}
   \vfill
-  \begin{centering}
+  \begingroup
+    \centering
     \begin{beamercolorbox}[sep=8pt,center,#1]{title}
       \usebeamerfont{title}\inserttitle\par%
       \ifx\insertsubtitle\@empty%
       \usebeamerfont{date}\insertdate
     \end{beamercolorbox}\vskip0.5em
     {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
-  \end{centering}
+  \endgroup
   \vfill
 }
 
 
 \defbeamertemplate*{part page}{default}[1][]
 {
-  \begin{centering}
+  \begingroup
+    \centering
     {\usebeamerfont{part name}\usebeamercolor[fg]{part name}\partname~\insertromanpartnumber}
     \vskip1em\par
     \begin{beamercolorbox}[sep=16pt,center,#1]{part title}
       \usebeamerfont{part title}\insertpart\par
     \end{beamercolorbox}
-  \end{centering}
+  \endgroup
 }
 
 
 
 \defbeamertemplate*{section page}{default}[1][]
 {
-  \begin{centering}
+  \begingroup
+    \centering
     {\usebeamerfont{section name}\usebeamercolor[fg]{section name}\sectionname~\insertsectionnumber}
     \vskip1em\par
     \begin{beamercolorbox}[sep=12pt,center,#1]{part title}
       \usebeamerfont{section title}\insertsection\par
     \end{beamercolorbox}
-  \end{centering}
+  \endgroup
 }
 
 % Subection page: default
 
 \defbeamertemplate*{subsection page}{default}[1][]
 {
-  \begin{centering}
+  \begingroup
+    \centering
     {\usebeamerfont{subsection name}\usebeamercolor[fg]{subsection name}\subsectionname~\insertsubsectionnumber}
     \vskip1em\par
     \begin{beamercolorbox}[sep=8pt,center,#1]{part title}
       \usebeamerfont{subsection title}\insertsubsection\par
     \end{beamercolorbox}
-  \end{centering}
+  \endgroup
 }