beamerlines/lines-example.tex
2021-03-03 16:40:06 +01:00

541 lines
16 KiB
TeX

\documentclass[10pt,aspectratio=169,t]{beamer}
\usetheme[author,institute,date,title,page,hidelogo]{lines}
\usecolortheme{aptero}
\title[Lines beamer theme]{Lines}
\subtitle{a line-based theme for beamer}
\author[Benda]{Jan Benda}
\institute[T\"ubingen]{Neuroethology, University of T\"ubingen}
\date[2021]{March 2021}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\begin{frame}[fragile]{Lines theme}
\begin{block}{Include}
\verb!\documentclass[aspectratio=169,t]{beamer}!\\
\verb!\usetheme[author,date,title,page,hidelogo]{lines}!
\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}{Alternative specification of frame title}
\verb!\begin{frame}!\\
\verb! \frametitle{The title of my slide}!\\
\verb! Some content.!\\
\verb!\end{frame}!
\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/Font}
\verb!\setbeamercolor{frametitle}{fg=blue, bg=white}!\\
\verb!\setbeamerfont{frametitle}{size=\LARGE}!
\end{block}
\end{frame}
\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}!\\
An empty foreground color hides the line:\\
\verb!\setbeamercolor{frametitle line}{fg=}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Frame subtitle}
\framesubtitle{I can not focus and add a subtitle}
\begin{block}{Frame environment with subtitle}
\verb!\begin{frame}!\\
\verb! \frametitle{The title of my slide}!\\
\verb! \framesubtitle{This is a subtitle}!\\
\verb! Some content.!\\
\verb!\end{frame}!
\end{block}
\begin{alertblock}{Try to avoid subtitles!}
Keep the messages on your slides simple and clean.
\end{alertblock}
\begin{block}{Color/Font}
\verb!\setbeamercolor{framesubtitle}{fg=blue}!\\
\verb!\setbeamerfont{framesubtitle}{size=\large}!
\end{block}
\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<2-> Apple!\\
\verb!\item<1-> Orange!\\
\verb!\item<2> Lemon!\\
\verb!\item<3-> Banana!\\
\verb!\end{enumerate}!
\end{block}
\begin{enumerate}
\item<2-> Apple
\item<1-> Orange
\item<2> Lemon
\item<3-> Banana
\end{enumerate}
\end{minipage}
\end{frame}
\begin{frame}[fragile]{Itemize and enumerate symbols}
\begin{block}{Itemize and enumerate labels}
\verb!\setbeamertemplate{itemize item}[arrow]!\\
\verb!\setbeamertemplate{itemize subitem}[dash]!\\
\verb!\setbeamertemplate{enumerate item}[arabic]!\\
\verb!\setbeamertemplate{enumerate subitem}[alph]!
\end{block}
\begin{minipage}[t]{0.3\textwidth}
One of
\begin{itemize}
\item \verb!default!
\item \verb!circle!
\item \verb!square!
\item \verb!ball!
\end{itemize}
\end{minipage}
\begin{minipage}[t]{0.3\textwidth}
\verb!itemize! only:
\begin{itemize}
\item \verb!arrow!
\item \verb!dash!
\item \verb!triangle!
\end{itemize}
\end{minipage}
\begin{minipage}[t]{0.3\textwidth}
\verb!enumerate! only:
\begin{itemize}
\item \verb!alph!
\item \verb!Alph!
\item \verb!arabic!
\item \verb!roman!
\item \verb!Roman!
\end{itemize}
\end{minipage}
\begin{block}{Color}
\verb!\setbeamercolor{item}{fg=black, bg=white}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Nested itemize and enumerate}
\begin{minipage}[t]{0.45\textwidth}
\vspace{-2ex}
\begin{block}{Itemize}\small
\verb!\begin{itemize}!\\
\verb!\item Apple!\\
\verb! \begin{itemize}!\\
\verb! \item Red!\\
\verb! \item Green!\\
\verb! \end{itemize}!\\
\verb!\item Banana!\\
\verb!\end{itemize}!
\end{block}
\begin{itemize}
\item Apple
\begin{itemize}
\item Red
\item Green
\end{itemize}
\item Banana
\end{itemize}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\textwidth}
\vspace{-2ex}
\begin{block}{Enumerate}\small
\verb!\begin{enumerate}!\\
\verb!\item Apple!\\
\verb! \begin{enumerate}!\\
\verb! \item Red!\\
\verb! \item Green!\\
\verb! \end{enumerate}!\\
\verb!\item Banana!\\
\verb!\end{enumerate}!
\end{block}
\begin{enumerate}
\item Apple
\begin{enumerate}
\item Red
\item Green
\end{enumerate}
\item Banana
\end{enumerate}
\end{minipage}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Alert and structure}
The \verb!\alert{}! command \alert{emphasizes} text.
Structural \structure{emphasis} is provided by the \verb!\structure{}! command.
\vspace{2ex}
\begin{block}{Colors/Fonts}
\verb!\setbeamercolor{alerted text}{fg=red}!
\verb!\setbeamercolor{structure}{fg=blue}!
\end{block}
\end{frame}
\begin{frame}{Blocks and theorems}
\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}
\begin{definition}
Definition block with content: \texttt{definition} environment.
\end{definition}
\begin{proof}
Proof block with content: \texttt{proof} environment.
\end{proof}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\colorpatch}[1]{%
\parbox{10ex}{\centerline{\strut#1}\textcolor{#1}{\rule{10ex}{10ex}}}
\quad}
\begin{frame}{Colors of the aptero theme}
\vspace{1ex}
\colorpatch{red}
\colorpatch{orange}
\colorpatch{yellow}
\colorpatch{lightgreen}
\colorpatch{green}
\vspace{1ex}
\colorpatch{darkgreen}
\colorpatch{cyan}
\colorpatch{lightblue}
\colorpatch{blue}
\colorpatch{purple}
\vspace{1ex}
\colorpatch{magenta}
\colorpatch{pink}
\colorpatch{white}
\colorpatch{gray}
\colorpatch{black}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Footline}
\begin{block}{no footline}
\verb!\setbeamertemplate{footline}[default]!
\end{block}
\begin{block}{lines theme with author, title, etc. on the left}
\verb!\setbeamertemplate{footline}[linesleft]!
\end{block}
\begin{block}{lines theme with author, title, etc. on the right}
\verb!\setbeamertemplate{footline}[linesright]!
\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}!
An empty foreground color hides the line:\\
\verb!\setbeamercolor{footline line}{fg=}!
\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}{em dash}
\verb!\setbeamertemplate{footline separator}[dash]!
\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}
\begin{frame}[fragile]{Footline page}
How the page in the footline is displayed can be controlled in the
following way:
\begin{block}{frame number, e.g. 12}
\verb!\setbeamertemplate{page number in head/foot}[frames]!
\end{block}
\begin{block}{frame number with total number of frames, e.g. 12 / 20}
\verb!\setbeamertemplate{page number in head/foot}[framestotal]!
\end{block}
\begin{block}{frame number with slide number, e.g. 12 -- 3}
\verb!\setbeamertemplate{page number in head/foot}[slides]!
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Title page}
\begin{frame}[fragile]{Title page templates}
\begin{block}{Title page frame}
\verb!\begin{frame}[plain]!\\
\verb! \titlepage!\\
\verb!\end{frame}!
\end{block}
\vspace{2ex}
\begin{block}{Flushed left}
\verb!\setbeamertemplate{title page}[leftlines]!
\end{block}
\begin{block}{Centered}
\verb!\setbeamertemplate{title page}[centerlines]!
\end{block}
\end{frame}
\begin{frame}[fragile,c]{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 with a line below
\item Authors
\item Institutions and date
\end{enumerate}
\end{frame}
\begin{frame}[fragile]{Title page logo}
\begin{block}{In preamble --- can be more than a single image!}
\verb!\titlelogo{\includegraphics[height=6ex]{ourlogo}}!
\end{block}
Separate them with the \verb!\hspace{0.1\textwidth}! or \verb!\hfill! commands.
\vspace{2ex}
\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{\includegraphics[width=\textwidth]{amazingimage}}!
\end{block}
Separate them with the \verb!\hspace{0.1\textwidth}! or \verb!\hfill! commands.
\vspace{2ex}
\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}!\\
Empty foreground color hides line:\\
\verb!\setbeamercolor{title page graphic line}{fg=}!
\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}!\\
Empty foreground color hides line:\\
\verb!\setbeamercolor{title page title line}{fg=}!
\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Sectioning pages}
\subsection{Section page}
\frame[plain]{\subsectionpage}
\begin{frame}[fragile]{Section page}
Section commands between the frames, like\\
\verb!\section{A new section}!\\
automaticallly create a special frame with section number and title.
\begin{block}{No automatic section pages}
\verb!\AtBeginSection{}!
\end{block}
\begin{block}{Manual insertion of a section page}
\verb!\frame[plain]{\sectionpage}!
\end{block}
\begin{block}{Colors/Fonts}
\verb!\setbeamercolor{section name}{parent={titlelike}}!
\verb!\setbeamercolor{section name separator}{parent={section name}}!
\verb!\setbeamercolor{section title}{parent={titlelike}}!
\end{block}
\end{frame}
\subsection{Subsection page}
\frame[plain]{\subsectionpage}
\begin{frame}[fragile]{Subsection pages}
After a subsection command\\
\verb!\subsection{A new subsection}!\\
you may want to insert a subsection page displaying the current
section and subsection numbers and titles:
\begin{block}{Subsection page}
\verb!\frame[plain]{\subsectionpage}!
\end{block}
\begin{block}{Colors/Fonts}
\verb!\setbeamercolor{subsection name}{parent={titlelike}}!
\verb!\setbeamercolor{subsection name separator}{parent={section name}}!
\verb!\setbeamercolor{subsection title}{parent={titlelike}}!
\end{block}
\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}
\begin{frame}{More resources}
\begin{block}{Beamer appearance cheat sheet}
\url{http://www.cpt.univ-mrs.fr/~masson/latex/Beamer-appearance-cheat-sheet.pdf}
\end{block}
\end{frame}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%