Logos in Präsentationen ohne Vortrag ermöglicht

This commit is contained in:
André Hilbig 2015-08-27 16:07:36 +02:00
parent 73ec9a6096
commit d045334b6c

View File

@ -33,6 +33,12 @@
\DeclareOption{onelecture}{\onelecturetrue}
\newif\ifgitinfo
\DeclareOption{gitinfo}{\gitinfotrue}
\newif\iflogo
\DeclareOption{logo}{\logotrue}
\newif\iflogoins
\DeclareOption{logoins}{\logoinstrue}
\newif\ifnonumbers
\DeclareOption{nonumbers}{\nonumberstrue}
\ProcessOptions
%\RequirePackage[draft]{ddi-common}
@ -710,7 +716,7 @@
{\hskip\paperwidth\hskip-2.14cm\pgfuseshading{mytransition}}
\fi
\def\insertlogo{}
\iflogo\else\def\insertlogo{}\fi
\def\setupsidebar{
\setbeamertemplate{sidebar right}
@ -742,14 +748,27 @@
\insertshortauthor[width=2cm-2pt,center,respectlinebreaks]\fi\par%
\vskip1.25em%
}\fi%
\ifcd\else\hbox to2cm{\hss\insertlogo\hss}
\vskip1.25em\fi%
\ifcd
\else%\hbox to2cm{\hss\insertlogo\hss}
\iflogoins
\else
\hbox to2cm{\hss\insertlogo\hss}
\vskip1.25em
\fi%
\fi%
\insertverticalnavigation{2cm}%
\ifcd\vskip2em\else\vfill\fi
\iflogoins
\hbox to 2cm{\hss\insertlogo\hss}
\else
\hbox to 2cm{\hfill\insertshortinstitute\hskip 2.5pt}
\fi%
\vskip3pt
\ifnonumbers
\else
\hbox to 2cm{\hfill\normalfont\strut\usebeamerfont{slide in sidebar}\insertframenumber\hskip5pt}%
\fi%
\vskip3pt%
\hbox to 2cm{\hfill\insertCC\hskip 2.5pt}
\vskip3pt
@ -793,11 +812,17 @@
{\usebeamercolor[fg]{institute} \insertinstitute}\vskip1em\fi
}
\pgfdeclareimage[width=2cm]{logo}{}%../../planning/logo}
\iflogo
\pgfdeclareimage[width=2cm]{logo}{logo.pdf}%../../planning/logo}
\logo{
\pgfuseimage{logo}
}
\else
\pgfdeclareimage[width=2cm]{logo}{}
\logo{
%\pgfuseimage{logo}
}
\fi
\ifcd
\setbeamertemplate{section in toc}