added example describing the theme options

This commit is contained in:
Jan Benda 2021-03-02 00:12:47 +01:00
parent b91cf27a3f
commit aa863eaba0
2 changed files with 337 additions and 0 deletions

38
Makefile Normal file
View File

@ -0,0 +1,38 @@
BASENAME=lines-example
TEXFILE=$(BASENAME).tex
PDFFILE=$(BASENAME).pdf
all: talk again watchtalk clean cleanup cleanplots help
talk: $(PDFFILE)
$(PDFFILE): $(TEXFILE) beamer*.sty
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
again :
pdflatex $(TEXFILE)
watchtalk :
while true; do ! make -q talk && make talk; sleep 0.5; done
clean :
rm -f *~
rmtex $(BASENAME)
rm -f $(PYTHONPDFFILES)
cleanup : clean
rm -f $(PDFFILE)
help :
@echo -e \
"make talk: make the pdf file of the talk.\n"\
"make again: run latex and make the pdf file of the talk,\n"\
" no matter whether you changed the .tex file or not.\n\n"\
"make watchtalk: make the pdf file of the talk\n"\
" whenever the tex file or the plots are modified.\n"\
"make clean: remove all intermediate files,\n"\
" just leave the source files and the final pdf file.\n"\
"make cleanup: remove all intermediate files as well as\n"\
" the final pdf file.\n"

299
lines-example.tex Normal file
View File

@ -0,0 +1,299 @@
\documentclass[10pt,aspectratio=169,t,ignorenonframetext]{beamer}
\usetheme[author,date,title,page,hidelogo]{lines}
\title[Beamer lines]{Lines}
\subtitle{a line-based theme for beamer}
\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}}
\usepackage{listings}
\lstset{language = tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\begin{frame}[fragile]{Lines theme}
\begin{block}{Include}
\begin{lstlisting}
\documentclass[aspectratio=169,t]{beamer}
\usetheme[author,date,title,page,hidelogo]{lines}
\end{lstlisting}
\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{Outer theme}
\begin{frame}[fragile]{Frame title line}
\begin{block}{Thin line respecting page margins}
\verb!\setbeamertemplate{frametitle line}[text][0.5pt]!
\end{block}
\begin{block}{Thick line}
\verb!\setbeamertemplate{frametitle line}[text][3pt]!
\end{block}
\begin{block}{Line over full page}
\verb!\setbeamertemplate{frametitle line}[page][1pt]!
\end{block}
\begin{block}{Color}
\verb!\setbeamercolor{frametitle line}{fg=blue}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Frame title}
\begin{block}{Title with logo}
\verb!\setbeamertemplate{frametitle}[boxlinelogo]!
\end{block}
\begin{block}{Title without logo}
\verb!\setbeamertemplate{frametitle}[boxline]!
\end{block}
\begin{block}{Color}
\verb!\setbeamercolor{frametitle}{fg=blue, bg=white}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Footline}
\begin{block}{No footline}
\verb!\setbeamertemplate{footline}[default]!
\end{block}
\end{frame}
\begin{frame}[fragile]{Footline line}
\begin{block}{Thin line respecting page margins}
\verb!\setbeamertemplate{footline line}[text][0.5pt]!
\end{block}
\begin{block}{Thick line}
\verb!\setbeamertemplate{footline line}[text][3pt]!
\end{block}
\begin{block}{Line over full page}
\verb!\setbeamertemplate{footline line}[page][1pt]!
\end{block}
\begin{block}{Color}
\verb!\setbeamercolor{footline line}{fg=black}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Footline separator}
\begin{block}{Vertical line}
\verb!\setbeamertemplate{footline separator}[text][0.5pt]!
\end{block}
\begin{block}{Full height vertical line}
\verb!\setbeamertemplate{footline separator}[full][0.5pt]!
\end{block}
\begin{block}{Just space}
\verb!\setbeamertemplate{footline separator}[space]!
\end{block}
\begin{block}{Color}
\verb!\setbeamercolor{footline separator}{fg=black}!
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Inner theme}
\begin{frame}[fragile]{Itemize and enumerate}
\begin{block}{Itemize symbol}
\verb!\setbeamertemplate{itemize item}[arrow]!
\end{block}
\begin{block}{Enumerate symbol}
\verb!\setbeamertemplate{enumerate item}[default]!
\end{block}
One of
\begin{itemize}
\item \verb!default!
\item \verb!arrow! (itemize only)
\item \verb!triangle! (itemize only)
\item \verb!circle!
\item \verb!square!
\item \verb!ball!
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Title page}
\begin{block}{Left adjusted}
\verb!\setbeamertemplate{title page}[leftlines]!
\end{block}
\begin{block}{Centered}
\verb!\setbeamertemplate{title page}[centerlines]!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page logo}
\begin{block}{In preamble --- can be more than a single image!}
\verb!\titlelogo{\includegrapjics[height=6ex]{ourlogo}}!
\end{block}
\begin{block}{Line below logo is the same as for frame titles}
\verb!\setbeamertemplate{frametitle line}[text][0.5pt]!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page graphic}
\begin{block}{In preamble --- can be more than a single image!}
\verb!\titlegraphic{\includegrapjics[width=\textwidth]{amazingimage}}!
\end{block}
\begin{block}{Line below title graphic}
\verb!\setbeamertemplate{title page graphic line}[default][1.5ex]!
\end{block}
\begin{block}{Color}
\verb!\setbeamercolor{title page graphic line}{fg=red}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page title and subtitle}
\begin{block}{In preamble}
\verb!\title{The titel of my talk}!\\
\verb!\subtitle{and whatever}!\\
\end{block}
\begin{block}{Color/Font}
\verb!\setbeamercolor{title}{fg=black}!
\end{block}
\begin{block}{Line below title and subtitle}
\verb!\setbeamertemplate{title page title line}[default][0.2ex]!
\end{block}
\begin{block}{Color}
\verb!\setbeamercolor{title page title line}{fg=red}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page: authors}
\begin{block}{In preamble}
\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}!
\end{block}
\begin{block}{Author separator}
\verb!\setbeamertemplate{title page author and}[line]!
\end{block}
One of
\begin{itemize}
\item \verb!space!
\item \verb!comma!
\item \verb!line! (a vertical line)
\item \verb!and! (an '\&')
\end{itemize}
\begin{block}{Color/Font}
\verb!\setbeamercolor{author}{fg=black}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page: institutes}
\begin{block}{In preamble}
\verb!\institute{\inst{1}Somewhere \and \inst{2}Somewhere else}!
\end{block}
\begin{block}{Institutes separator}
\verb!\setbeamertemplate{title page institute and}[line]!
\end{block}
One of
\begin{itemize}
\item \verb!default! (a linebreak)
\item \verb!space!
\item \verb!comma!
\item \verb!line! (a vertical line)
\end{itemize}
\begin{block}{Color/Font}
\verb!\setbeamercolor{institute}{fg=black}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page: date}
\begin{block}{In preamble}
\verb!\date[2020]{ICN 2020}!
\end{block}
\begin{block}{Font}
\verb!\setbeamerfont{date}{size=\normalsize}!
\end{block}
\begin{block}{Color}
Same as for institutes.
\end{block}
\end{frame}
\begin{frame}[fragile]{Section page}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section[Introduction]{Introduction of my talk with a really long title}
\begin{frame}{First slide}
Just some simple text.
\pause
And some more text later on.
\structure<+->{A header}
And we say something \alert{alerting}.
\end{frame}
\begin{frame}{Second slide}
\begin{itemize}
\item<1-> Something
\item<1-> \alert{important}
\item<2> is here.
\note<2>{What did I want to say?}
\item<3-> to be said.
\end{itemize}
\end{frame}
\begin{frame}{Alternative second slide}
% See 9.6.4 Incremental specifications in the beamer manual
% for the special meaning of '+' and '.':
\begin{itemize}[<+->]
\item \alert<.>{Really} something
\item<+-| alert@+>{important}
\item is here.
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section[results]{My main results}
\begin{frame}{Third slide}
\begin{block}{Some block}
Block text.
\end{block}
\begin{alertblock}{Careful!}
Consider this.
\end{alertblock}
\begin{example}
An example box.
\end{example}
\end{frame}
\begin{frame}{Fifth slide}
\begin{definition}
A definition box.
\end{definition}
\begin{proof}
A proof box.
\end{proof}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section[summary]{Let's summarize}
\begin{frame}{Summary}
\begin{enumerate}
\item First issue
\item Second issue
\item Third issue
\end{enumerate}
\end{frame}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%