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.

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
 }
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.