beamerlines/lines-example.tex

491 lines
14 KiB
TeX

\documentclass[10pt,aspectratio=169,t]{beamer}
\usetheme[author,institute,date,title,page,hidelogo]{lines}
\usecolortheme{aptero}
\title[Lines beamer theme usage]{Lines theme user guide}
\subtitle{a line-based theme for beamer}
\author[Benda]{Jan Benda}
\institute[T\"ubingen]{Neuroethology, University of T\"ubingen}
\date[2021]{March 2021}
\logo{}
\titlelogo{}
\titlegraphic{}
\setbeamerfont{block body}{size=\small}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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}
\vspace{2ex}
Options select content of footline and position of logo\\
(default is \texttt{[author,page]}):
\begin{itemize}
\item \texttt{author} / \texttt{hideauthor}
\item \texttt{institute} / \texttt{hideinstitute}
\item \texttt{date} / \texttt{hidedate}
\item \texttt{title} / \texttt{hidetitle}
\item \texttt{page} / \texttt{hidepage}
\item \texttt{logofootleft} / \texttt{logofootright} / \texttt{logotitleleft} / \texttt{logotitleright} / \texttt{hidelogo}
\end{itemize}
\end{frame}
\begin{frame}[c]{Files}
\vspace{1ex}
\begin{tabular}{@{}ll}
\texttt{beamerthemelines.sty} & \structure{lines} beamer theme. \\[2ex]
\texttt{beamercolorthemeaptero.sty} & Provides muted colors for beamer.
\end{tabular}
\vfill
\begin{itemize}
\setlength{\itemsep}{2ex}
\item Either copy these files into the directory of your presentation,
\item install them into your home directory:\\
\texttt{> make install} \\
\item or install them system wide:\\
\texttt{> sudo make install}
\end{itemize}
\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! \tableofcontents[hideallsubsections]!\\
\verb!\end{frame}!
\end{block}
\end{minipage}
\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 subtitle}
\framesubtitle{Here we have 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}
\vfill
\begin{alertblock}{Try to avoid subtitles!}
Keep the messages on your slides simple and clean.
\end{alertblock}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Itemize and enumerate}
\vfill
\begin{minipage}[t]{0.3\textwidth}
\vspace{-3ex}
\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.25\textwidth}
\vspace{-3ex}
\begin{block}{Enumerate}
\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}
\hfill
\begin{minipage}[t]{0.37\textwidth}
\vspace{-3ex}
\begin{block}{Cover transparency}
\verb!\setbeamercovered{transparent=50}!\\
\verb!\begin{enumerate}!\\
\verb!\item<1> Apple!\\
\verb!\item<2-> Orange!\\
\verb!\item<3> Lemon!\\
\verb!\end{enumerate}!
\end{block}
\setbeamercovered{transparent=50}
\begin{enumerate}
\item<1> Apple
\item<2-> Orange
\item<3> Lemon
\end{enumerate}
\setbeamercovered{invisible}
\end{minipage}
\end{frame}
\begin{frame}[fragile]{Nested itemize and enumerate}
\begin{minipage}[t]{0.45\textwidth}
\vspace{-3ex}
\begin{block}{Itemize}
\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{-3ex}
\begin{block}{Enumerate}
\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}[c,fragile]{Itemize with action items}
\begin{minipage}[t]{0.45\textwidth}
\vspace{-2ex}
\begin{block}{Itemize}
\verb!\begin{itemize}!\\
\verb!\item[\itemfilledarrow] Apple!\\
\verb!\item<2-| alert@3> Orange!\\
\verb!\item<2-| emph@2| uncheck@3-> Lemon!\\
\verb!\item<3-| emph@1-> Banana!\\
\verb!\item<3-| check@4> Mango!\\
\verb!\item<4-| message@1-> Cherries!\\
\verb!\item<4-> Grapes!\\
\verb!\end{itemize}!
\end{block}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\textwidth}
\begin{itemize}
\item[\itemfilledarrow] Apple
\item<2-| alert@3> Orange
\item<2-| emph@2| uncheck@3-> Lemon
\item<3-| emph@1-> Banana
\item<3-| check@4> Mango
\item<4-| message@1-> Cherries
\item<4-> Grapes
\end{itemize}
\end{minipage}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Alert and structure}
\vfill
The \verb!\alert{}! command \alert{emphasizes} text.
\vfill
Structural \structure{emphasis} is provided by the \verb!\structure{}! command.
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Block environments with title}
... add structure and color to a slide --- use them with care:
\begin{block}{Some block}
Block with title and content\\
\verb!\begin{block}{Some block}!\\
\verb! Block with title and content!\\
\verb!\end{block}!
\end{block}
\begin{alertblock}{Careful!}
\texttt{alertblock} environment with title as argument.
\end{alertblock}
\begin{exampleblock}{Example}
\texttt{exampleblock} environment with title as argument.
\end{exampleblock}
\end{frame}
\begin{frame}[fragile]{Block environments without title}
... add color to a slide in a more subtle way:
\begin{block}{}
Block with empty title.\\
\verb!\begin{block}{}!\\
\verb! Block with empty title!\\
\verb!\end{block}!
\end{block}
\begin{alertblock}{}
\texttt{alertblock} with empty title.\\
And just some text.
\end{alertblock}
\begin{exampleblock}{}
\texttt{exampleblock} with empty title.\\
And just some text.
\end{exampleblock}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Theorems --- for mathematicians}
\begin{theorem}
\texttt{theorem} environment.
\end{theorem}
\begin{definition}
\texttt{definition} environment.\\[1ex]
All theorem environments get the same color and font:
\begin{itemize}
\item \texttt{theorem title}
\item \texttt{theorem body}
\item \texttt{theorem line top/middle/bottom}
\end{itemize}
\end{definition}
%\begin{example}
% \texttt{example} environment.
%\end{example}
\begin{proof}
\texttt{proof} environment.\\
Same colors and fonts as the \texttt{block} environment.
\end{proof}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Message box}
\begin{block}{A new (non-beamer) command for highlighting messages}
\verb!\messagebox{Take home message}!
\end{block}
\vfill
\messagebox{Take home message}
\vfill
Use it!
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Quotations}
Quote something of somebody with indentation:
\begin{quotation}[Me And Myself]
A \verb!quotation! environment. There is a lot to talk about and
it really takes a lot of words to express this. Most likely this
does not fit into a single line. We might even need yet another
full new line.
Here we even start a second paragraph.
\end{quotation}
\vfill
Quote something short of somebody else without indentation:
\begin{quote}[Me And Myself]
A \verb!quote! environment. There is less to talk about and it
just takes a few words to express this. A second line is not
really needed.
\end{quote}
\vfill
Here is a poem:
\begin{verse}
A \verb!verse! environment ---\\with a second line.
\end{verse}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Title page}
\begin{frame}[fragile,c]{Title page}
\begin{block}{Title page frame}
\verb!\begin{frame}[plain]!\\
\verb! \titlepage!\\
\verb!\end{frame}!
\end{block}
\vfill
From top to bottom:
\begin{enumerate}
\item Logo images with a 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 title, authors, institutions and date}
In preamble:
\vfill
\begin{block}{Title and subtitle}
\verb!\title{The titel of my talk}!\\
\verb!\subtitle{and whatever}!\\
\end{block}
\vfill
\begin{block}{Authors}
\strut\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}!
\end{block}
\vfill
\begin{block}{Institute}
\strut\verb!\institute{\inst{1}University \and \inst{2}Scripps}!
\end{block}
\begin{block}{Date}
\strut\verb!\date[2020]{ICN 2020}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page images}
Specify them in the preamble --- can be more than a single image:
\vfill
\begin{block}{Logo}
\verb!\titlelogo{\includegraphics[height=6ex]{ourlogo}}!
\end{block}
\vfill
\begin{block}{Graphics}
\verb!\titlegraphic{\includegraphics[width=\textwidth]{amazingimage}}!
\end{block}
\vfill
You may separate images with \verb!\hspace{0.1\textwidth}! or \verb!\hfill! commands.
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Sectioning pages}
\subsection{Section page}
\frame[plain]{\subsectionpage}
\begin{frame}[c,fragile]{Section page}
Section commands between the frames, like
\begin{block}{}
\verb!\section{A new section}!
\end{block}
automaticallly create a special frame displaying the section number and title.
\vfill
\begin{block}{No automatic section pages}
\verb!\AtBeginSection{} % in preamble!
\end{block}
\vfill
\begin{block}{Manual insertion of a section page}
\verb!\frame[plain]{\sectionpage}!
\end{block}
\vfill
\begin{block}{Section graphic}
In preamble or right before a new section:\\
\verb!\sectiongraphic{\includegraphics[width=\linewidth]{amazingimage}}!
\end{block}
\end{frame}
\subsection{Subsection page}
\frame[plain]{\subsectionpage}
\begin{frame}[c,fragile]{Subsection pages}
After a subsection command
\vfill
\begin{block}{}
\verb!\subsection{A new subsection}!
\end{block}
\vfill
you may want to insert a subsection page displaying the current
section and subsection numbers and titles:
\vfill
\begin{block}{Subsection page}
\verb!\frame[plain]{\subsectionpage}!
\end{block}
\vfill
\begin{block}{Subsection graphic}
In preamble or right before a new subsection:\\
\verb!\subsectiongraphic{\includegraphics[width=\linewidth]{amazingimage}}!
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Further reading}
\begin{frame}{Beamer user guide}
Read the beamer user guide at
\begin{block}{}
\url{http://tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}
\end{block}
\vfill
In particular
\begin{itemize}
\item the tutorial (section 3)
\item the ``guidelines for creating presentations'' (section 5) --- quite nice and independent of beamer!
\item ``creating overlays'' (section 9)
\item section 11 for some fancy features (hyperlinks and zooming)
\item ``local structure'' (section 12) for more infos on lists and blocks, etc.
\end{itemize}
\end{frame}
\begin{frame}{Beamer templates}
\begin{alertblock}{}
Templates are a powerful method of beamer that allow you to modify
the appearance of your presentation.
\end{alertblock}
\vfill
Read the beamer user guide
\begin{itemize}
\item section 16.3 ``Changing the Templates Used for Different Elements of a Presentation''
\end{itemize}
\vfill
See the
\begin{block}{}
lines-manual.pdf
\end{block}
for further infos on how to adapt the templates introduced by the
\structure{lines} theme.
\end{frame}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%