Commit 1f244130 authored by Simon's avatar Simon
Browse files

Option zur Zentrierung der Inhaltsverzeichnisse eingefügt. AUßerdem Farbe der...

Option zur Zentrierung der Inhaltsverzeichnisse eingefügt. AUßerdem Farbe der Fußlinie auf schwarz umgestellt --> sieht besser aus, weil im Logo kein Struktur-Blau vorhanden ist.
parent 794ad8b0
......@@ -56,20 +56,37 @@
%%% Formatierung fuer Titelseite %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% from http://tex.stackexchange.com/questions/37788/make-toc-in-the-center-and-left-aligned-in-beamer
% Problem: wenn Kurzname übergeben wird mit optionalem Argument für Seitenüberschrift, wird länge des optionalen Parameters bestimmt. --> weitere Fallunterscheidung implementiert, sodass immer die richtige Länge bestimmt wird.
\makeatletter
\newlength{\secnamelength}
\newsavebox{\longestsec}% Box to save longest sectional heading
\patchcmd{\beamer@section}% <cmd>
{\beamer@savemode}% <search>
{\begin{lrbox}{\longestsec}#1\end{lrbox}%
\ifdim\wd\longestsec>\secnamelength\relax\setlength{\secnamelength}{\wd\longestsec}\fi%
\beamer@savemode}% <replace>
{
\ifstrempty{#2}{%
\begin{lrbox}{\longestsec}#1\end{lrbox}
\ifthenelse{
\wd\longestsec > \secnamelength
}{
\setlength{\secnamelength}{\wd\longestsec}
}{}%else
}{
\begin{lrbox}{\longestsec}#2\end{lrbox}
\ifthenelse{
\wd\longestsec > \secnamelength
}{
\setlength{\secnamelength}{\wd\longestsec}
}{}%else
}
\beamer@savemode
}% <replace>
{}{}% <success><failure>
\AtEndDocument{% http://tex.stackexchange.com/q/137495/5764
\immediate\write\@auxout{\global\secnamelength=\the\secnamelength}%
}
\makeatother
\setbeamertemplate{title page}%{default}[1][]
{
\ifthenelse{\boolean{small_title}}
......@@ -127,28 +144,41 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifthenelse{\boolean{show_chapter_tocs}}{
% entsprechendes einkommentieren!
\ifthenelse{\boolean{subsections_in_preview_toc}}
{
% mit Unterkapitel anzeigen
\AtBeginSection{\frame[c]{\frametitle{\insertsectionnumber~\insertsection}
\hspace*{1mm}
\parbox{1\textwidth}{
\tableofcontents[sectionstyle = show/shaded,subsectionstyle = show/show/hide,subsubsectionstyle=hide]}
}}%
%%\AtBeginSubsection{\frame{\frametitle{\insertsubsection}\tableofcontents[sectionstyle = show/shaded,subsectionstyle = show/shaded/hide]}}
%\EndPreamble
}
{
% ohne Unterkapitel anzeigen:
\AtBeginSection{\frame[c]{\frametitle{\insertsectionnumber~\insertsection}
\hspace*{1mm}
\parbox{1\textwidth}{
\tableofcontents[sectionstyle = show/shaded,subsectionstyle = hide/hide/hide,subsubsectionstyle=hide]}
}}%
%\AtBeginSubsection{\frame{\frametitle{\insertsubsection}\tableofcontents[sectionstyle = show/shaded,subsectionstyle = show/shaded/hide]}}
}
% entsprechendes einkommentieren!
\ifthenelse{\boolean{subsections_in_preview_toc}}{
% mit Unterkapitel anzeigen
\AtBeginSection{
\frame[c]{
\frametitle{\insertsectionnumber~\insertsection}
\ifthenelse{\boolean{center_toc}}{
\hspace*{\dimexpr.5\textwidth-.5\secnamelength- 2.5mm\relax}% TODO: Breite der Zahl mit Leerraum genau bestimmen.
}{
\hspace*{1mm}
}
\parbox{1\textwidth}{
\tableofcontents[sectionstyle = show/shaded,subsectionstyle = show/show/hide,subsubsectionstyle=hide]
}
}%
}
%%\AtBeginSubsection{\frame{\frametitle{\insertsubsection}\tableofcontents[sectionstyle = show/shaded,subsectionstyle = show/shaded/hide]}}
%\EndPreamble
}{
% ohne Unterkapitel anzeigen:
\AtBeginSection{
\frame[c]{
\frametitle{\insertsectionnumber~\insertsection}
\ifthenelse{\boolean{center_toc}}{
\hspace*{\dimexpr.5\textwidth-.5\secnamelength- 2.5mm\relax}% TODO: Breite der Zahl mit Leerraum genau bestimmen.
}{
\hspace*{1mm}
}
\parbox{1\textwidth}{
\tableofcontents[sectionstyle = show/shaded,subsectionstyle = hide/hide/hide,subsubsectionstyle=hide]
}
}%
}
%\AtBeginSubsection{\frame{\frametitle{\insertsubsection}\tableofcontents[sectionstyle = show/shaded,subsectionstyle = show/shaded/hide]}}
}
}{}
......@@ -220,7 +250,7 @@
\node(bottom title)[anchor=south west,yshift=-0mm,insn] at ($(bild2.south east)+(0, -0.5mm)$){\parbox{0.75\paperwidth}{\absatz{\mbox{\insertshortauthor:}}{\insertshorttitle}}};
\node(seitenzahl)[insn,anchor=base east,xshift=-2.5mm] at (bottom title.base -| current page.south east){\scriptsize \insertframenumber};
\coordinate(linebegin) at ($(bottom title.north west)+(0,1.2mm)$);
\draw[line width=0.25mm,shorten <=0mm, structure](linebegin)--(linebegin-|seitenzahl.north east)node[coordinate](footnotenode){};
\draw[line width=0.25mm,shorten <=0mm, black](linebegin)--(linebegin-|seitenzahl.north east)node[coordinate](footnotenode){};
}%
{%
\node (bild2)[anchor=south west,xshift=0mm,inner ysep=0pt,yshift=1mm] at (current page.south west){\includegraphics[width=0.15\paperwidth]{\pfadBasis /images/LRT_Logo_XL.pdf}{}};
......
......@@ -13,11 +13,15 @@
}
% großer Titel und danach Inhaltsverzeichnis
\ifthenelse{\boolean{small_title}}
{}
{\begin{frame}[c]{Inhalt}
\hspace*{1mm}
\parbox{1\textwidth}{
\tableofcontents[hideallsubsections]
}
\end{frame}}
\ No newline at end of file
\ifthenelse{\boolean{small_title}}{}{
\begin{frame}[c]{Inhalt}
\ifthenelse{\boolean{center_toc}}{
\hspace*{\dimexpr.5\textwidth-.5\secnamelength- 2.5mm\relax}% TODO: Breite der Zahl mit Leerraum genau bestimmen.
}{
\hspace*{1mm}
}
\parbox{1\textwidth}{
\tableofcontents[hideallsubsections]
}
\end{frame}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment