[FE training-materials-updates] beamer style: be a bit smarter when \sessionurl is empty
thomas.petazzoni at free-electrons.com
thomas.petazzoni at free-electrons.com
Wed Feb 29 15:38:31 CET 2012
- Log -----------------------------------------------------------------
http://git.free-electrons.com/training-materials/commit/?id=2569095058b2cb24598d47db6ef35b7cd12ba72b
commit 2569095058b2cb24598d47db6ef35b7cd12ba72b
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date: Wed Feb 29 15:37:07 2012 +0100
beamer style: be a bit smarter when \sessionurl is empty
When \sessionurl is empty, we no longer print the "Electronic copies
of these materials" followed by an empty URL.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
diff --git a/common/beamerthemeFreeElectrons.sty b/common/beamerthemeFreeElectrons.sty
index aaccd79..a3782c6 100644
--- a/common/beamerthemeFreeElectrons.sty
+++ b/common/beamerthemeFreeElectrons.sty
@@ -32,6 +32,7 @@
\usepackage{environ}
\usepackage{minted}
\usepackage{setspace}
+\usepackage{etoolbox}
\lstloadlanguages{C}
\lstset{%
@@ -113,8 +114,10 @@
© Copyright 2004-\the\year, Free Electrons.\\
Creative Commons BY-SA 3.0 license.\\
Latest update: \today.\\
- Electronic copies of these materials:\\
- \url{\sessionurl}\\
+ \ifdefempty{\sessionurl}{}{
+ Electronic copies of these materials:\\
+ \url{\sessionurl}\\
+ }
Document updates and sources:\\
\url{\@trainingurl}\\
Corrections, suggestions, contributions and translations are welcome!
@@ -140,8 +143,10 @@
© Copyright 2004-\the\year, Free Electrons.\\
Creative Commons BY-SA 3.0 license.\\
Latest update: \today.\\
- Electronic copies of these materials:\\
- \url{\sessionurl}\\
+ \ifdefempty{\sessionurl}{}{
+ Electronic copies of these materials:\\
+ \url{\sessionurl}\\
+ }
Document updates and sources:\\
\url{\@trainingurl}\\
Corrections, suggestions, contributions and translations are welcome!
-----------------------------------------------------------------------
Summary of changes:
common/beamerthemeFreeElectrons.sty | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
More information about the training-materials-updates
mailing list