example covers all topics

This commit is contained in:
Jan Benda 2021-03-02 11:19:23 +01:00
parent cf4f16ba25
commit 91e1c93674
5 changed files with 217 additions and 94 deletions

View File

@ -39,6 +39,7 @@
\setbeamercolor{titlelike}{parent={normal text}, fg=blue}
\setbeamercolor{frametitle}{parent={titlelike}}
\setbeamercolor{framesubtitle}{parent={titlelike}}
\setbeamercolor{frametitle line}{fg=blue}
\setbeamercolor{item}{parent={normal text}}

View File

@ -11,13 +11,12 @@
% font:
\RequirePackage[scaled]{helvet}
\RequirePackage{sfmath}
\renewcommand{\familydefault}{\sfdefault}
% inner fonts:
\setbeamerfont{frametitle}{size=\LARGE}
\setbeamerfont{framesubtitle}{size=\large}
\setbeamerfont{title}{size=\LARGE, shape=\bfseries}
\setbeamerfont{subtitle}{size=\Large, shape=\bfseries}

View File

@ -18,6 +18,7 @@
\mode<presentation>
%%%%% inner themes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% itemize and enumerate symbols:
\defbeamertemplate{itemize item}{arrow}{%

View File

@ -172,6 +172,13 @@
\insertframetitle\strut
\end{beamercolorbox}%
\usebeamertemplate{frametitle line}%
\ifx\insertframesubtitle\@empty\else%
\vspace{-0.5ex}
\begin{beamercolorbox}[wd=1\paperwidth,sep=0pt,%
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{framesubtitle}
\usebeamerfont{framesubtitle}\insertframesubtitle\strut
\end{beamercolorbox}%
\fi%
\vspace{-1ex}
}
\defbeamertemplate{frametitle}{boxlinelogo}%
@ -187,6 +194,13 @@
\fi%
\end{beamercolorbox}%
\usebeamertemplate{frametitle line}%
\ifx\insertframesubtitle\@empty\else%
\vspace{-0.5ex}
\begin{beamercolorbox}[wd=1\paperwidth,sep=0pt,%
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{framesubtitle}
\usebeamerfont{framesubtitle}\insertframesubtitle\strut
\end{beamercolorbox}%
\fi%
\vspace{-1ex}
}

View File

@ -9,6 +9,7 @@
%\logo{\includegraphics[height=3.5ex]{UT_BM_Rot_RGB}}
%\titlelogo{\includegraphics[height=6ex]{UT_MNF_RGB}}
%\titlegraphic{\includegraphics[width=\textwidth]{efishtitle}}
%\titlegraphic{\hfill\rule{0.4\textwidth}{30mm}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -35,7 +36,34 @@
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Outer theme}
\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}[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]{Frame title line}
\begin{block}{Thin line respecting page margins}
@ -52,18 +80,119 @@
\end{block}
\end{frame}
\begin{frame}[fragile]{Frame title}
\begin{block}{Title with logo}
\verb!\setbeamertemplate{frametitle}[boxlinelogo]!
\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 nice and clean.
\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{block}{Title without logo}
\verb!\setbeamertemplate{frametitle}[boxline]!
\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]{Itemize and enumerate symbols}
\begin{block}{Itemize symbol}
\verb!\setbeamertemplate{itemize item}[arrow]!
\end{block}
\begin{block}{Enumerate symbol}
\verb!\setbeamertemplate{enumerate item}[default]!
\end{block}
\begin{minipage}[t]{0.4\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.4\textwidth}
For itemize only:
\begin{itemize}
\item \verb!arrow!
\item \verb!triangle!
\end{itemize}
\end{minipage}
\begin{block}{Color}
\verb!\setbeamercolor{frametitle}{fg=blue, bg=white}!
\verb!\setbeamercolor{item}{fg=black, bg=white}!
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Alert and structure}
The \verb!\alert{}! command \alert{emphasizes} text.
Structural \structure{emphasize} 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.
\end{block}
\begin{alertblock}{Careful!}
Alert block with title and content: \texttt{alertblock} environment.
\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Footline}
\begin{block}{No footline}
\verb!\setbeamertemplate{footline}[default]!
@ -101,27 +230,15 @@
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Inner theme}
\section{Title page}
\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]!
\begin{frame}[fragile]{Title page templates}
\begin{block}{Title page frame}
\verb!\begin{frame}[plain]!\\
\verb! \titlepage!\\
\verb!\end{frame}!
\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}
\vspace{2ex}
\begin{block}{Left adjusted}
\verb!\setbeamertemplate{title page}[leftlines]!
\end{block}
@ -130,10 +247,23 @@
\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{\includegrapjics[height=6ex]{ourlogo}}!
\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}
@ -141,14 +271,19 @@
\begin{frame}[fragile]{Title page graphic}
\begin{block}{In preamble --- can be more than a single image!}
\verb!\titlegraphic{\includegrapjics[width=\textwidth]{amazingimage}}!
\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}!
\end{block}
\begin{block}{Empty foreground color hides line}
\verb!\setbeamercolor{title page graphic line}{fg=}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page title and subtitle}
@ -162,12 +297,12 @@
\begin{block}{Line below title and subtitle}
\verb!\setbeamertemplate{title page title line}[default][0.2ex]!
\end{block}
\begin{block}{Color}
\begin{block}{Color (empty foreground hides line)}
\verb!\setbeamercolor{title page title line}{fg=red}!
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page: authors}
\begin{frame}[fragile]{Title page authors}
\begin{block}{In preamble}
\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}!
\end{block}
@ -186,7 +321,7 @@
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page: institutes}
\begin{frame}[fragile]{Title page institutes}
\begin{block}{In preamble}
\verb!\institute{\inst{1}Somewhere \and \inst{2}Somewhere else}!
\end{block}
@ -205,7 +340,7 @@
\end{block}
\end{frame}
\begin{frame}[fragile]{Title page: date}
\begin{frame}[fragile]{Title page date}
\begin{block}{In preamble}
\verb!\date[2020]{ICN 2020}!
\end{block}
@ -217,76 +352,49 @@
\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.
\section{Section pages}
\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}[fragile]{Section page}
Sectioning commands between the frames, like\\
\verb!\section{A new section}!\\
automaticallly create a special frame with the section number and title.
\begin{frame}{Third slide}
\begin{block}{Some block}
Block text.
\begin{block}{No automatic section pages}
\verb!\AtBeginSection{}!
\end{block}
\begin{block}{Manual insertion of section page}
\verb!\frame[plain,c]{\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}
\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}
\begin{frame}[fragile,c]{Subsection pages}
\begin{alertblock}{Not supported yet!}
Coming soon ...
\end{alertblock}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section[summary]{Let's summarize}
\section{Further reading}
\begin{frame}{Summary}
\begin{enumerate}
\item First issue
\item Second issue
\item Third issue
\end{enumerate}
\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}