improved ut theme and tocs styles

This commit is contained in:
Jan Benda 2021-03-27 10:24:20 +01:00
parent 87a98457ec
commit fe0c42e52c
7 changed files with 608 additions and 12 deletions

529
UT_WBMW_Rot_RGB.pdf Normal file

File diff suppressed because one or more lines are too long

View File

@ -123,6 +123,10 @@
\setbeamercolor{subsection name separator}{parent=section name} \setbeamercolor{subsection name separator}{parent=section name}
\setbeamercolor{subsection title}{parent=titlelike} \setbeamercolor{subsection title}{parent=titlelike}
% color of numbers in table of columns (sections get hyperref linkcolor):
\setbeamercolor{section in toc}{parent=normal text}
\setbeamercolor{subsection in toc}{parent=normal text}
% outer colors: % outer colors:
\setbeamercolor{background}{bg=} \setbeamercolor{background}{bg=}

View File

@ -113,6 +113,7 @@
\setbeamercolor{institute}{parent=normal text} \setbeamercolor{institute}{parent=normal text}
\setbeamercolor{title page}{parent=normal text} \setbeamercolor{title page}{parent=normal text}
\setbeamercolor{title page logo line}{fg=}
\setbeamercolor{title page graphic line}{fg=utred} \setbeamercolor{title page graphic line}{fg=utred}
\setbeamercolor{title page title line}{fg=} \setbeamercolor{title page title line}{fg=}
@ -124,11 +125,15 @@
\setbeamercolor{subsection name separator}{fg=utgold} \setbeamercolor{subsection name separator}{fg=utgold}
\setbeamercolor{subsection title}{parent=titlelike} \setbeamercolor{subsection title}{parent=titlelike}
% color of numbers in table of columns (sections get hyperref linkcolor):
\setbeamercolor{section in toc}{use=normal text, fg=normal text.fg!60}
\setbeamercolor{subsection in toc}{use=normal text, fg=normal text.fg!60}
% outer colors: % outer colors:
\setbeamercolor{background}{bg=} \setbeamercolor{background}{bg=}
\setbeamercolor{footline}{fg=utgray, bg=} \setbeamercolor{footline}{fg=utgray!80!black, bg=}
\setbeamercolor{footline line}{parent=footline} \setbeamercolor{footline line}{parent=footline}
\setbeamercolor{footline separator}{parent=footline} \setbeamercolor{footline separator}{parent=footline}

View File

@ -789,6 +789,24 @@
%%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% title page logo line:
\defbeamertemplate{title page logo line}{text}[1][1pt]%
{\beamer@horizontal@line@bottom{title page logo line}{#1}}
\defbeamertemplate{title page logo line}{page}[1][1pt]%
{
\ifbeamercolorempty[fg]{title page logo line}{}{%
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth,dp=0pt,ht=#1,sep=0pt,%
leftskip=0pt,rightskip=0pt]{title page logo line}%
\rule{\paperwidth}{#1}%
\end{beamercolorbox}%
}%
}
\setbeamertemplate{title page logo line}[text][0.5pt]
%%%%% title page graphic line: %%%%% title page graphic line:
\defbeamertemplate{title page graphic line}{default}[1][1ex]% \defbeamertemplate{title page graphic line}{default}[1][1ex]%
@ -836,8 +854,9 @@
\inserttitlelogo% \inserttitlelogo%
\end{beamercolorbox}% \end{beamercolorbox}%
\vspace{1.2ex} \vspace{1.2ex}
\usebeamertemplate{frametitle line}% \ifbeamercolorempty[fg]{title page logo line}{}{%
\vspace{1ex} \usebeamertemplate{title page logo line}%
\vspace{1ex}}
\fi \fi
% title graphic: % title graphic:
\ifx\inserttitlegraphic\@empty\else% \ifx\inserttitlegraphic\@empty\else%
@ -888,7 +907,7 @@
\inserttitlelogo% \inserttitlelogo%
\end{beamercolorbox}% \end{beamercolorbox}%
\vspace{1.2ex} \vspace{1.2ex}
\usebeamertemplate{frametitle line}% \usebeamertemplate{title page logo line}%
\vspace{1ex} \vspace{1ex}
\fi \fi
% title graphic: % title graphic:
@ -1012,6 +1031,12 @@
\setbeamertemplate{subsection page}[left][0.3\textheight] \setbeamertemplate{subsection page}[left][0.3\textheight]
%%%%% table of contents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% default, (sub)sections numbered, circle, square, ball, ball unnumbered:
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[sections numbered]
%%%%% fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\familydefault}{\sfdefault} \renewcommand{\familydefault}{\sfdefault}

View File

@ -5,7 +5,7 @@
% 1. under the LaTeX Project Public License and/or % 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License. % 2. under the GNU Public License.
\ProvidesPackage{beamerthemeut}[2021/03/02 beamer theme for the cooperate design of the University of Tuebingen] \ProvidesPackage{beamerthemeut}[2021/03/02 beamer theme for the corporate design of the University of Tuebingen]
\RequirePackage[scaled]{helvet} \RequirePackage[scaled]{helvet}
\RequirePackage{sfmath} \RequirePackage{sfmath}
@ -39,11 +39,11 @@
%%%%% templates: %%%%% templates:
\setbeamertemplate{frametitle}[boxline] % boxline, boxlinelogo \setbeamertemplate{frametitle}[boxline] % boxline, boxlinelogo
\setbeamertemplate{frametitle line}[page][0.75pt] % text, page \setbeamertemplate{frametitle line}[text][0.75pt] % text, page
\setbeamertemplate{page number in head/foot}[frames] % frames, framestotal, slides \setbeamertemplate{page number in head/foot}[frames] % frames, framestotal, slides
\setbeamertemplate{footline}[pageright] % default, pageleft, pageright \setbeamertemplate{footline}[pageright] % default, pageleft, pageright
\setbeamertemplate{footline line}[page][0.3pt] % text, page \setbeamertemplate{footline line}[text][0.3pt] % text, page
\setbeamertemplate{footline separator}[text][0.3pt] % text, full, dash, space \setbeamertemplate{footline separator}[text][0.3pt] % text, full, dash, space
% default, triangle, circle, square, ball, arrow, filledarrow, dash, check, uncheck: % default, triangle, circle, square, ball, arrow, filledarrow, dash, check, uncheck:
@ -65,7 +65,7 @@
\setbeamertemplate{block example begin}[lines]{0.75pt}{0.75pt} % default, rounded, lines \setbeamertemplate{block example begin}[lines]{0.75pt}{0.75pt} % default, rounded, lines
\setbeamertemplate{block example end}[lines]{0.75pt} \setbeamertemplate{block example end}[lines]{0.75pt}
\setbeamertemplate{block theorem begin}[lines]{0.75pt}{0.75pt} \setbeamertemplate{block theorem begin}[lines]{0.75pt}{0.75pt} % default, rounded, lines
\setbeamertemplate{block theorem end}[lines]{0.75pt} \setbeamertemplate{block theorem end}[lines]{0.75pt}
\setbeamertemplate{verse begin}[lines][0.5pt] % default, lines \setbeamertemplate{verse begin}[lines][0.5pt] % default, lines
@ -87,6 +87,7 @@
\setbeamertemplate{quote end}[lines][0.5pt] % default, lines \setbeamertemplate{quote end}[lines][0.5pt] % default, lines
\setbeamertemplate{title page}[leftlines] % leftlines, centerlines \setbeamertemplate{title page}[leftlines] % leftlines, centerlines
\setbeamertemplate{title page logo line}[text][0.75pt] % text, page
\setbeamertemplate{title page graphic line}[default][1ex] \setbeamertemplate{title page graphic line}[default][1ex]
\setbeamertemplate{title page title line}[default][0.75pt] \setbeamertemplate{title page title line}[default][0.75pt]
\setbeamertemplate{title page author and}[line] % space, comma, line, and \setbeamertemplate{title page author and}[line] % space, comma, line, and
@ -98,6 +99,11 @@
\setbeamertemplate{section name separator}[text][2pt] % space, text \setbeamertemplate{section name separator}[text][2pt] % space, text
\setbeamertemplate{subsection name separator}[text][2pt] % space, text \setbeamertemplate{subsection name separator}[text][2pt] % space, text
% default, (sub)sections numbered, circle, square, ball, ball unnumbered:
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[sections numbered]
%%%%% fonts: %%%%% fonts:
\setbeamerfont{footline}{size=\tiny} \setbeamerfont{footline}{size=\tiny}

View File

@ -34,6 +34,28 @@
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}[fragile]{Content}
\begin{minipage}[t]{0.3\textwidth}
\hypersetup{linkcolor=blue} % color of section names
\tableofcontents[hideallsubsections]
\end{minipage}
\hfill
\begin{minipage}[t]{0.68\textwidth}
\begin{block}{Table of contents}
\verb!\begin{frame}{Content}!\\
\verb! \hypersetup{linkcolor=blue} % color for section names!\\
\verb! \tableofcontents[hideallsubsections]!\\
\verb!\end{frame}!
\end{block}
\begin{block}{Templates and colors}
\verb!\setbeamertemplate{section in toc}[sections numbered]!\\
\verb!\setbeamertemplate{subsection in toc}[sections numbered]!\\
\verb!\setbeamercolor{section in toc}{fg=black} % color of numbers!\\
\verb!\setbeamercolor{subsection in toc}{fg=black}!
\end{block}
\end{minipage}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Frames} \section{Frames}
@ -1054,7 +1076,7 @@
\begin{frame}{Beamer user guide} \begin{frame}{Beamer user guide}
Read the beamer user guide at Read the beamer user guide at
\begin{block}{} \begin{block}{}
\url{http://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf} \url{http://tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}
\end{block} \end{block}
\vfill \vfill

View File

@ -3,9 +3,9 @@
\title{A \LaTeX{} beamer theme for the University of T\"ubingen} \title{A \LaTeX{} beamer theme for the University of T\"ubingen}
\author[Benda]{Jan Benda} \author[Benda]{Jan Benda}
\institute[T\"ubingen]{Neuroethology, University of T\"ubingen} \institute[University of T\"ubingen]{Neuroethology, University of T\"ubingen}
\date[2021]{March 2021} \date[2021]{March 2021}
\logo{\includegraphics[height=3.5ex]{UT_BM_Rot_RGB}} \logo{\includegraphics[height=3.5ex]{UT_WBMW_Rot_RGB}}
\titlelogo{\includegraphics[height=5ex]{UT_MNF_RGB}} \titlelogo{\includegraphics[height=5ex]{UT_MNF_RGB}}
\titlegraphic{\includegraphics[width=\textwidth]{efishtitle}} \titlegraphic{\includegraphics[width=\textwidth]{efishtitle}}
@ -36,6 +36,11 @@
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}{Content}
\hypersetup{linkcolor=utblue} % color of section names
\tableofcontents[hideallsubsections]
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Frames} \section{Frames}
@ -394,7 +399,7 @@
\begin{frame}{Beamer user guide} \begin{frame}{Beamer user guide}
Read the beamer user guide at Read the beamer user guide at
\begin{block}{} \begin{block}{}
\url{http://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf} \url{http://tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}
\end{block} \end{block}
\vfill \vfill
In particular In particular