[FE training-materials-updates] beamer style: change location of \section{} call in \chapterframe{}

thomas.petazzoni at free-electrons.com thomas.petazzoni at free-electrons.com
Wed Feb 29 14:57:54 CET 2012


- Log -----------------------------------------------------------------
http://git.free-electrons.com/training-materials/commit/?id=5244b41c74e8dc5faa0fcbd85099fe6662cda249

commit 5244b41c74e8dc5faa0fcbd85099fe6662cda249
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Wed Feb 29 14:56:27 2012 +0100

    beamer style: change location of \section{} call in \chapterframe{}
    
    The \section{} call should be before the frame generated by
    \chapterframe{} if we want the index generated in the PDF to point to
    the right chapter frames (and not the first frame of the chapter).
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

diff --git a/common/beamerthemeFreeElectrons.sty b/common/beamerthemeFreeElectrons.sty
index e5a66de..aaccd79 100644
--- a/common/beamerthemeFreeElectrons.sty
+++ b/common/beamerthemeFreeElectrons.sty
@@ -98,6 +98,7 @@
 } 
 
 \newcommand\chapterframe[1]{
+  \section{#1}
   \begin{frame}{#1}
     \begin{columns}[b]
       \column{0.5\textwidth}
@@ -121,10 +122,10 @@
       \includegraphics[height=4cm]{common/logo-square.pdf}
     \end{columns}
   \end{frame}
-  \section{#1}
 }
 
 \newcommand\chapterframewithlabel[2]{
+  \section{#2}
   \begin{frame}{#1}
     \begin{columns}[b]
       \column{0.5\textwidth}
@@ -148,7 +149,6 @@
       \includegraphics[height=4cm]{common/logo-square.pdf}
     \end{columns}
   \end{frame}
-  \section{#2}
 }
 
 \newcommand\subchapterframe[2]{

-----------------------------------------------------------------------

Summary of changes:
 common/beamerthemeFreeElectrons.sty |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


More information about the training-materials-updates mailing list