university of tuebingen theme files

This commit is contained in:
Jan Benda 2021-03-02 17:54:53 +01:00
parent 6ca689446b
commit 4bd62de06f
6 changed files with 416 additions and 31 deletions

View File

@ -1,29 +1,31 @@
BASENAME=lines-example
TEXFILES=$(wildcard *.tex)
PDFFILES=$(TEXFILES:.tex=.pdf)
BASENAMES=$(TEXFILES:.tex=.)
TEXFILE=$(BASENAME).tex
PDFFILE=$(BASENAME).pdf
all: talk again watchtalk clean cleanup help
all: talk again watchtalk clean cleanup cleanplots help
talk: $(PDFFILE)
$(PDFFILE): $(TEXFILE) beamer*.sty
talk: $(PDFFILES)
talks: $(PDFFILES)
$(PDFFILES): %.pdf : %.tex beamer*.sty
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
again :
pdflatex $(TEXFILE)
for FILE in $(TEXFILES); do \
pdflatex $(FILE) \
done
watchtalks : watchtalk
watchtalk :
while true; do ! make -q talk && make talk; sleep 0.5; done
clean :
rm -f *~
rmtex $(BASENAME)
rm -f $(PYTHONPDFFILES)
rmtex $(BASENAMES)
cleanup : clean
rm -f $(PDFFILE)
rm -f $(PDFFILES)
help :
@echo -e \

View File

@ -9,6 +9,12 @@
\ProvidesPackage{beamercolorthemeaptero}[2021/02/28 color theme for lines inner and outer beamer theme]
\newif\if@beamer@colors@set
\DeclareOptionBeamer{noset}{\@beamer@colors@setfalse}
\DeclareOptionBeamer{set}{\@beamer@colors@settrue}
\ExecuteOptionsBeamer{set}
\ProcessOptionsBeamer
% muted colors:
\definecolor{red}{rgb}{0.753,0.153,0.090}
\definecolor{orange}{rgb}{0.969,0.502,0.090}
@ -53,18 +59,23 @@
\setbeamercolor{block title example}{parent={block title}, bg=lightgreen}
\setbeamercolor{block body example}{parent={block body}}
\addtobeamertemplate{proof begin}{%
\setbeamercolor{block title}{fg=white, bg=green}
}{}
\if@beamer@colors@set
\addtobeamertemplate{proof begin}{%
\setbeamercolor{block title}{fg=white, bg=green}
}{}
\addtobeamertemplate{theorem begin}{%
\setbeamercolor{block title}{fg=white, bg=orange}
}{}
\addtobeamertemplate{theorem begin}{%
\setbeamercolor{block title}{fg=white, bg=orange}
}{}
\fi
\setbeamercolor{section in toc}{parent={normal text}}
\setbeamercolor{subsection in toc}{parent={normal text}}
\setbeamercolor{title}{parent={titlelike}, fg=red}
\setbeamercolor{subtitle}{parent={title}}
\setbeamercolor{author}{parent={normal text}}
\setbeamercolor{institute}{parent={normal text}}

95
beamercolorthemeut.sty Normal file
View File

@ -0,0 +1,95 @@
% Copyright 2021 by Jan Benda
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% "aptero" is a nick name for "Apteronotus" - a genus of weakly electric fish.
\ProvidesPackage{beamercolorthemeaptero}[2021/02/28 color theme for lines inner and outer beamer theme]
% UT primary colors:
\definecolor{utred}{rgb}{0.647,0.118,0.216}
\definecolor{utgold}{rgb}{0.706,0.627,0.412}
\definecolor{utblack}{rgb}{0.196,0.255,0.294}
% UT secondary colors:
\definecolor{utdarkblue}{rgb}{0.255,0.353,0.549}
\definecolor{utblue}{rgb}{0.000,0.412,0.667}
\definecolor{utlightblue}{rgb}{0.314,0.667,0.784}
\definecolor{utcyan}{rgb}{0.510,0.725,0.627}
\definecolor{utgreen}{rgb}{0.490,0.647,0.294}
\definecolor{utdarkgreen}{rgb}{0.196,0.431,0.118}
\definecolor{utlightred}{rgb}{0.784,0.314,0.235}
\definecolor{utmagenta}{rgb}{0.686,0.431,0.588}
\definecolor{utgray}{rgb}{0.706,0.627,0.588}
\definecolor{utlightorange}{rgb}{0.843,0.706,0.412}
\definecolor{utorange}{rgb}{0.824,0.588,0.000}
\definecolor{utbrown}{rgb}{0.569,0.412,0.275}
\mode<presentation>
% inner colors:
\setbeamercolor{normal text}{fg=utblack, bg=}
\setbeamercolor{math text}{parent={normal text}}
\setbeamercolor{structure}{fg=utblue}
\setbeamercolor{alerted text}{fg=utred}
\setbeamercolor{item}{parent={normal text}, fg=utblack!60}
\setbeamercolor{titlelike}{parent={normal text}, fg=utblack}
\setbeamercolor{frametitle}{parent={titlelike}}
\setbeamercolor{framesubtitle}{parent={titlelike}}
\setbeamercolor{frametitle line}{fg=utgold}
\setbeamercolor{block title}{fg=white, bg=utlightblue}
\setbeamercolor{block body}{fg=normal text.fg, bg=utblack!10}
\setbeamercolor{block title alerted}{parent={block title}, bg=utred}
\setbeamercolor{block body alerted}{parent={block body}, fg=utred}
\setbeamercolor{block title example}{parent={block title}, bg=utcyan}
\setbeamercolor{block body example}{parent={block body}}
\addtobeamertemplate{proof begin}{%
\setbeamercolor{block title}{fg=white, bg=utmagenta}
}{}
\addtobeamertemplate{theorem begin}{%
\setbeamercolor{block title}{fg=white, bg=utorange}
}{}
\setbeamercolor{section in toc}{parent={normal text}}
\setbeamercolor{subsection in toc}{parent={normal text}}
\setbeamercolor{title}{parent={titlelike}, fg=utred}
\setbeamercolor{subtitle}{parent={title}}
\setbeamercolor{author}{parent={normal text}}
\setbeamercolor{institute}{parent={normal text}}
\setbeamercolor{title page}{parent={normal text}}
\setbeamercolor{title page graphic line}{fg=utred}
\setbeamercolor{title page title line}{fg=}
\setbeamercolor{section name}{parent={titlelike}}
\setbeamercolor{section name separator}{fg=utgold}
\setbeamercolor{section title}{parent={titlelike}}
% outer colors:
\setbeamercolor{background}{bg=}
\setbeamercolor{footline}{fg=utgray, bg=}
\setbeamercolor{footline line}{parent={footline}}
\setbeamercolor{footline separator}{parent={footline}}
% hyper ref colors:
\hypersetup{colorlinks=true, allcolors=utblack, urlcolor=blue}
\mode
<all>

View File

@ -5,10 +5,14 @@
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\ProvidesPackage{beamerouterthemelines}[2021/02/28 beamer theme with horizontal lines]
\ProvidesPackage{beamerthemelines}[2021/02/28 beamer theme with horizontal lines]
\RequirePackage{tikz}
% pass set/noset option to aptero color theme:
\DeclareOptionBeamer{set}{\PassOptionsToPackage{set}{beamercolorthemeaptero}}
\DeclareOptionBeamer{noset}{\PassOptionsToPackage{noset}{beamercolorthemeaptero}}
\newif\if@beamer@footline@author
\newif\if@beamer@footline@institute
\newif\if@beamer@footline@date
@ -72,9 +76,9 @@
\defbeamertemplate{footline line}{text}[1][1pt]%
{
\ifbeamercolorempty[fg]{footline line}{}{%
\begin{beamercolorbox}[wd=1\paperwidth,dp=0pt,ht=#1,sep=0pt,%
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{footline line}%
\rule{1\linewidth}{#1}%
\begin{beamercolorbox}[wd=\paperwidth,dp=0pt,ht=#1,sep=0pt,%
leftskip=\beamer@leftmargin,rightskip=\beamer@rightmargin]{footline line}%
\rule{\columnwidth}{#1}%
\end{beamercolorbox}%
\nointerlineskip%
}%
@ -82,9 +86,9 @@
\defbeamertemplate{footline line}{page}[1][1pt]%
{
\ifbeamercolorempty[fg]{footline line}{}{%
\begin{beamercolorbox}[wd=1\paperwidth,dp=0pt,ht=#1,sep=0pt,%
\begin{beamercolorbox}[wd=\paperwidth,dp=0pt,ht=#1,sep=0pt,%
leftskip=0pt,rightskip=0pt]{footline line}%
\rule{1\paperwidth}{#1}%
\rule{\paperwidth}{#1}%
\end{beamercolorbox}%
\nointerlineskip%
}%
@ -162,9 +166,8 @@
{
\ifbeamercolorempty[fg]{frametitle line}{}{%
\nointerlineskip%
\begin{beamercolorbox}[wd=1\paperwidth,dp=0pt,ht=#1,sep=0pt,%
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{frametitle line}%
\rule{1\linewidth}{#1}%
\begin{beamercolorbox}[wd=\textwidth,dp=0pt,ht=#1,sep=0pt]{frametitle line}%
\rule{\columnwidth}{#1}%
\end{beamercolorbox}%
}%
}
@ -172,9 +175,9 @@
{
\ifbeamercolorempty[fg]{frametitle line}{}{%
\nointerlineskip%
\begin{beamercolorbox}[wd=1\paperwidth,dp=0pt,ht=#1,sep=0pt,%
\begin{beamercolorbox}[wd=\paperwidth,dp=0pt,ht=#1,sep=0pt,%
leftskip=0pt,rightskip=0pt]{frametitle line}%
\rule{1\paperwidth}{#1}%
\rule{\paperwidth}{#1}%
\end{beamercolorbox}%
}%
}
@ -234,7 +237,7 @@
\defbeamertemplate{itemize item}{arrow}{%
\begin{tikzpicture}
\draw[line width=0.2ex] (0ex, 0ex) -- (0.7ex,0.7ex) -- (0ex, 1.4ex);
\draw[line width=0.2ex] (0ex, 0ex) -- (0.45ex,0.5ex) -- (0ex, 1ex);
\end{tikzpicture}}
\setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball
@ -461,8 +464,8 @@
\setbeamerfont{author}{size=\Large}
\setbeamerfont{institute}{size=\normalsize}
\setbeamerfont*{section title}{size=\Huge}
\setbeamerfont*{section name}{size=\Huge}
\setbeamerfont*{section title}{size=\huge}
\setbeamerfont*{section name}{size=\huge}
\setbeamerfont{footline}{size=\footnotesize}

59
beamerthemeut.sty Normal file
View File

@ -0,0 +1,59 @@
% Copyright 2021 by Jan Benda
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\ProvidesPackage{beamerthemeut}[2021/03/02 beamer theme for the cooperate design of the University of Tuebingen]
\RequirePackage[scaled]{helvet}
\RequirePackage{sfmath}
% pass options to lines theme:
\DeclareOptionBeamer{author}{\PassOptionsToPackage{author}{beamerthemelines}}
\DeclareOptionBeamer{hideauthor}{\PassOptionsToPackage{hideauthor}{beamerthemelines}}
\DeclareOptionBeamer{institute}{\PassOptionsToPackage{}{beamerthemelines}}
\DeclareOptionBeamer{hideinstitute}{\PassOptionsToPackage{}{beamerthemelines}}
\DeclareOptionBeamer{date}{\PassOptionsToPackage{date}{beamerthemelines}}
\DeclareOptionBeamer{hidedate}{\PassOptionsToPackage{hidedate}{beamerthemelines}}
\DeclareOptionBeamer{title}{\PassOptionsToPackage{title}{beamerthemelines}}
\DeclareOptionBeamer{hidetitle}{\PassOptionsToPackage{hidetitle}{beamerthemelines}}
\DeclareOptionBeamer{page}{\PassOptionsToPackage{page}{beamerthemelines}}
\DeclareOptionBeamer{hidepage}{\PassOptionsToPackage{hidepage}{beamerthemelines}}
\DeclareOptionBeamer{logo}{\PassOptionsToPackage{logo}{beamerthemelines}}
\DeclareOptionBeamer{hidelogo}{\PassOptionsToPackage{hidelogo}{beamerthemelines}}
\ExecuteOptionsBeamer{page}
\ExecuteOptionsBeamer{logo}
\ProcessOptionsBeamer
\mode<presentation>
\usetheme[noset]{lines}
\setbeamertemplate{frametitle}[boxline] % boxline, boxlinelogo
\setbeamertemplate{frametitle line}[page][0.75pt] % text, page
\setbeamertemplate{footline}[lines] % default (no footline), lines
\setbeamertemplate{footline line}[page][0.75pt] % text, page
\setbeamertemplate{footline separator}[text][0.75pt] % text, full
\setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball
\setbeamertemplate{enumerate item}[default] % default, circle, square, ball
\setbeamertemplate{blocks}[default] % default, rounded
\setbeamertemplate{title page}[leftlines] % leftlines, centerlines
\setbeamertemplate{title page graphic line}[default][1.4ex]
\setbeamertemplate{title page title line}[default][0.75pt]
\setbeamertemplate{title page author and}[line] % space, comma, line, and
\setbeamertemplate{title page institute and}[line] % default, space, comma, line
\setbeamertemplate{section name separator}[text][2pt] % space, text
\usecolortheme{ut}
\mode<all>

215
ut-example.tex Normal file
View File

@ -0,0 +1,215 @@
\documentclass[11pt,aspectratio=169,t,ignorenonframetext]{beamer}
\usetheme[author,date,title]{ut}
\title{Beamer theme for the University of T\"ubingen}
\author[Benda]{Jan Benda}
\institute[T\"ubingen]{Neuroethology, University of T\"ubingen}
\date[2021]{March 2021}
\logo{\includegraphics[height=3.5ex]{UT_BM_Rot_RGB}}
\titlelogo{\includegraphics[height=6ex]{UT_MNF_RGB}}
%\titlegraphic{\includegraphics[width=\textwidth]{efishtitle}}
\titlegraphic{\rule{\textwidth}{35mm}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\begin{frame}[fragile]{ut --- University of T\"ubingen --- theme}
\begin{block}{Include}
\verb!\documentclass[aspectratio=169,t]{beamer}!\\
\verb!\usetheme[author,date,title,page]{ut}!
\end{block}
Options select content of footline (defaults to \verb![author,page]!):
\begin{itemize}
\item \verb!author! / \verb!hideauthor!
\item \verb!institute! / \verb!hideinstitute!
\item \verb!date! / \verb!hidedate!
\item \verb!title! / \verb!hidetitle!
\item \verb!page! / \verb!hidepage!
\item \verb!logo! / \verb!hidelogo!
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Frames}
\begin{frame}[fragile]{Beamer frames}
\begin{block}{Frame environment with title}
\verb!\begin{frame}{The title of my slide}!\\
\verb! Some content.!\\
\verb!\end{frame}!
\end{block}
\begin{block}{Frame environment with extra frametitle}
\verb!\begin{frame}!\\
\verb! \frametitle{The title of my slide}!\\
\verb! Some content.!\\
\verb!\end{frame}!
\end{block}
\end{frame}
\begin{frame}[c]{Frame subtitles}
\begin{alertblock}{Do not use subtitles!}
Keep the messages on your slides simple and clean.\\
Subtitles are not really supported by the \texttt{ut} theme design.
\end{alertblock}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Itemize and enumerate}
\begin{minipage}[t]{0.45\textwidth}
\vspace{-2ex}
\begin{block}{Itemize with overlays}
\verb!\begin{itemize}!\\
\verb!\item Apple!\\
\verb!\item<2-> Orange!\\
\verb!\item<2-> Lemon!\\
\verb!\item<3-> Banana!\\
\verb!\end{itemize}!
\end{block}
\begin{itemize}
\item Apple
\item<2-> Orange
\item<2-> Lemon
\item<3-> Banana
\end{itemize}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\textwidth}
\vspace{-2ex}
\begin{block}{Enumerate with overlays}
\verb!\begin{enumerate}!\\
\verb!\item Apple!\\
\verb!\item<2-> Orange!\\
\verb!\item<2-> Lemon!\\
\verb!\item<3-> Banana!\\
\verb!\end{enumerate}!
\end{block}
\begin{enumerate}
\item Apple
\item<2-> Orange
\item<2-> Lemon
\item<3-> Banana
\end{enumerate}
\end{minipage}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile,c]{Alert and structure}
The \verb!\alert{}! command \alert{emphasizes} text.
\vfill
Structural \structure{emphasize} is provided by the \verb!\structure{}! command.
\end{frame}
\begin{frame}{Blocks}
\begin{block}{Some block}
Block with title and content: \texttt{block} environment with title as argument.
\end{block}
\begin{alertblock}{Careful!}
Alert block with title and content: \texttt{alertblock} environment with title as argument.
\end{alertblock}
\begin{example}
Example block with content: \texttt{example} environment.
\end{example}
\end{frame}
\begin{frame}{Theorems}
\begin{definition}
Definition block with content: \texttt{definition} environment.
\end{definition}
\begin{proof}
Proof block with content: \texttt{proof} environment.
\end{proof}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Title page}
\begin{frame}[fragile,c]{Title page}
\begin{block}{Insert a title page frame}
\verb!\begin{frame}[plain]!\\
\verb! \titlepage!\\
\verb!\end{frame}!
\end{block}
\vspace{2ex}
Title page content,
from top to bottom:
\begin{enumerate}
\item Logo images with a frametitle line below
\item Title graphic images with a line directly below
\item Title and subtitle
\item Authors
\item Institutions and date
\end{enumerate}
\end{frame}
\begin{frame}[fragile]{Title page logo and graphic}
In preamble:
\begin{block}{Specify one or more logos}
\verb!\titlelogo{\includegraphics[height=6ex]{UT_MNF_RGB}}!
\end{block}
\begin{block}{Specify one or more graphic}
\verb!\titlegraphic{\includegraphics[width=\textwidth]{efishtitle}}!
\end{block}
\vspace{3ex}
\begin{itemize}
\item Both the logo and the graphic can be more than a single image!
\item Separate them with the \verb!\hspace{0.1\textwidth}! or \verb!\hfill! commands.
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Title page titles, authors, and institutions}
In preamble:
\begin{block}{Title and subtitle}
\verb!\title{The titel of my talk}!\\
\verb!\subtitle{and whatever}!\\
\end{block}
\begin{block}{Authors and institutions}
\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}!\\
\verb!\institute{\inst{1}Somewhere \and \inst{2}Somewhere else}!
\end{block}
\begin{block}{Date}
\verb!\date[2020]{ICN 2020}!
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Section pages}
\begin{frame}[fragile,c]{Section pages}
\begin{block}{Section page}
Sectioning commands between the frames, like\\
\verb!\section{A new section}!\\
automaticallly create a special frame with the section number and title.
\end{block}
\vfill
\begin{alertblock}{Subsection pages}
Not supported yet! Coming soon ...
\end{alertblock}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Further reading}
\begin{frame}{Beamer user guide}
Read the beamer user guide at\\
\url{http://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}\\
\vspace{2ex}
In particular
\begin{itemize}
\item the tutorial (section 3)
\item quite nice and independent of beamer are the ``guidelines for creating presentations'' (section 5)
\item ``creating overlays'' (section 9)
\item you find some fancy features in section 11 (hyperlinks and zooming)
\item ``local structure'' (section 12) for more infos on lists and blocks, etc.
\end{itemize}
\end{frame}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%