simplified lines examples

This commit is contained in:
Jan Benda 2021-04-02 13:09:34 +02:00
parent 890c0b0a9b
commit 5e83f67fb8
2 changed files with 1178 additions and 690 deletions

View File

@ -2,7 +2,7 @@
\usetheme[author,institute,date,title,page,hidelogo]{lines} \usetheme[author,institute,date,title,page,hidelogo]{lines}
\usecolortheme{aptero} \usecolortheme{aptero}
\title[Lines beamer theme]{Lines} \title[Lines beamer theme usage]{Lines theme user guide}
\subtitle{a line-based theme for beamer} \subtitle{a line-based theme for beamer}
\author[Benda]{Jan Benda} \author[Benda]{Jan Benda}
\institute[T\"ubingen]{Neuroethology, University of T\"ubingen} \institute[T\"ubingen]{Neuroethology, University of T\"ubingen}
@ -92,37 +92,6 @@
\end{block} \end{block}
\end{frame} \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} \begin{frame}[fragile]{Frame subtitle}
\framesubtitle{Here we have a subtitle} \framesubtitle{Here we have a subtitle}
\begin{block}{Frame environment with subtitle} \begin{block}{Frame environment with subtitle}
@ -132,13 +101,10 @@
\verb! Some content.!\\ \verb! Some content.!\\
\verb!\end{frame}! \verb!\end{frame}!
\end{block} \end{block}
\vfill
\begin{alertblock}{Try to avoid subtitles!} \begin{alertblock}{Try to avoid subtitles!}
Keep the messages on your slides simple and clean. Keep the messages on your slides simple and clean.
\end{alertblock} \end{alertblock}
\begin{block}{Color/Font}
\verb!\setbeamercolor{framesubtitle}{fg=blue}!\\
\verb!\setbeamerfont{framesubtitle}{size=\large}!
\end{block}
\end{frame} \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -200,91 +166,6 @@
\end{minipage} \end{minipage}
\end{frame} \end{frame}
\newcommand{\itemizesymboldemo}[1]{
\begin{minipage}[t]{0.17\textwidth}
\setbeamertemplate{itemize item}[#1]
\texttt{#1}:
\begin{itemize}
\item Apple
\item Orange
\item Banana
\end{itemize}
\end{minipage}
\setbeamertemplate{itemize item}[arrow]
}
\begin{frame}[fragile]{Itemize symbols}
\begin{block}{Itemize item}
\verb!\setbeamertemplate{itemize item}[arrow]!\\
\verb!\setbeamertemplate{itemize subitem}[dash]!\\
\verb!\setbeamercolor{itemize item}{fg=black}!
\end{block}
\vfill
\itemizesymboldemo{default}
\itemizesymboldemo{triangle}
\itemizesymboldemo{square}
\itemizesymboldemo{circle}
\itemizesymboldemo{ball}
\vfill\vfill
\itemizesymboldemo{arrow}
\itemizesymboldemo{filledarrow}
\itemizesymboldemo{dash}
\itemizesymboldemo{check}
\itemizesymboldemo{uncheck}
\end{frame}
\newcommand{\enumeratedemo}{
\begin{enumerate}
\item Apple
\item Orange
\item Banana
\end{enumerate}
}
\newcommand{\enumeratesymboldemo}[1]{
\begin{minipage}[t]{0.17\textwidth}
\setbeamertemplate{enumerate item}[#1]
\texttt{#1}:
\enumeratedemo
\end{minipage}
\setbeamertemplate{enumerate item}[default]
}
\begin{frame}[fragile]{Enumerate symbols}
\begin{block}{Enumerate item}
\verb!\setbeamertemplate{enumerate item}[arabic]!\\
\verb!\setbeamertemplate{enumerate subitem}[alph]!\\
\verb!\setbeamercolor{enumerate item}{fg=black}!
\end{block}
\vfill
\enumeratesymboldemo{default}
\enumeratesymboldemo{square}
\enumeratesymboldemo{circle}
\enumeratesymboldemo{ball}
\vfill\vfill
\enumeratesymboldemo{alph}
\enumeratesymboldemo{Alph}
\enumeratesymboldemo{arabic}
\enumeratesymboldemo{roman}
\enumeratesymboldemo{Roman}
\end{frame}
\begin{frame}[fragile]{Custom enumerate symbols}
\begin{block}{Alph within brackets}
\verb!\setbeamertemplate{enumerate item}{(\alph{enumi})}!
\end{block}
\setbeamertemplate{enumerate item}{(\alph{enumi})}
\enumeratedemo
\begin{block}{Arabic with closing bracket}
\verb!\setbeamertemplate{enumerate item}{\arabic{enumi})}!
\end{block}
\setbeamertemplate{enumerate item}{\arabic{enumi})}
\enumeratedemo
\setbeamertemplate{enumerate item}[arabic]
\end{frame}
\begin{frame}[fragile]{Nested itemize and enumerate} \begin{frame}[fragile]{Nested itemize and enumerate}
\begin{minipage}[t]{0.45\textwidth} \begin{minipage}[t]{0.45\textwidth}
\vspace{-3ex} \vspace{-3ex}
@ -372,12 +253,6 @@
\vfill \vfill
Structural \structure{emphasis} is provided by the \verb!\structure{}! command. Structural \structure{emphasis} is provided by the \verb!\structure{}! command.
\vfill
\begin{block}{Colors/Fonts}
\verb!\setbeamercolor{alerted text}{fg=red}!\\
\verb!\setbeamercolor{structure}{fg=blue}!
\end{block}
\end{frame} \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -415,154 +290,6 @@
\end{exampleblock} \end{exampleblock}
\end{frame} \end{frame}
\newcommand{\blockdemo}{
\begin{block}{Some block}
Block with title and content.
\end{block}
}
\newcommand{\blockthemedemo}[2]{
\vspace{-1ex}
\setbeamertemplate{block begin}[#1]#2#2
\setbeamertemplate{block end}[#1]#2
\blockdemo
\setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
\setbeamertemplate{block end}[lines]{0.5pt}
}
\begin{frame}[fragile]{Themes for block environments with title}
The box of the \texttt{default} theme extends beyond \verb!\textwidth! and the title box
is wider than the body box:\\
\begin{small}
\verb!\setbeamertemplate{block begin}[default]!
\verb!\setbeamertemplate{block end}[default]!
\end{small}
\blockthemedemo{default}{}
\vfill
The box of the \texttt{rounded} theme also extends beyond \verb!\textwidth!:\\
\begin{small}
\verb!\setbeamertemplate{block begin}[rounded]!
\verb!\setbeamertemplate{block end}[rounded]!
\end{small}
\blockthemedemo{rounded}{}
\vfill
The box of the \texttt{lines} theme is as wide as \verb!\textwidth!
and the title box always has the same height:\\
\begin{small}
\verb!\setbeamertemplate{block begin}[lines]{0pt}{0pt}!
\verb!\setbeamertemplate{block end}[lines]{0pt}!
\end{small}
\blockthemedemo{lines}{{0pt}}
\end{frame}
\renewcommand{\blockthemedemo}[2]{
\vspace{-1ex}
\setbeamertemplate{block begin}[#1]#2#2
\setbeamertemplate{block end}[#1]#2
\begin{block}{}
Block without title.
\end{block}
\setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
\setbeamertemplate{block end}[lines]{0.5pt}
}
\begin{frame}[fragile]{Themes for block environments without title}
The \texttt{default} theme still shows a title box:\\
\begin{small}
\verb!\setbeamertemplate{block begin}[default]!
\verb!\setbeamertemplate{block end}[default]!
\end{small}
\blockthemedemo{default}{}
\vfill
The \texttt{rounded} theme works as expected:\\
\begin{small}
\verb!\setbeamertemplate{block begin}[rounded]!
\verb!\setbeamertemplate{block end}[rounded]!
\end{small}
\blockthemedemo{rounded}{}
\vfill
The \texttt{lines} theme works as expected and stays within \verb!\textwidth!:\\
\begin{small}
\verb!\setbeamertemplate{block begin}[lines]{0pt}{0pt}!
\verb!\setbeamertemplate{block end}[lines]{0pt}!
\end{small}
\blockthemedemo{lines}{{0pt}}
\end{frame}
\newcommand{\blockcolordemo}[4]{
\setbeamertemplate{block begin}[lines]{0pt}{0pt}
\setbeamertemplate{block end}[lines]{0pt}
\setbeamercolor{block title}{fg=#1, bg=#2}
\setbeamercolor{block body}{fg=#3, bg=#4}
\begin{small}
\texttt{\textbackslash setbeamercolor\{block title\}\{fg=#1, bg=#2\}}\\
\texttt{\textbackslash setbeamercolor\{block body\}\{fg=#3, bg=#4\}}\\
\end{small}
\blockdemo
\setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
\setbeamertemplate{block end}[lines]{0.5pt}
\setbeamercolor{block title}{fg=white, bg=blue}
\setbeamercolor{block body}{fg=normal text.fg, bg=black!15}
}
\begin{frame}[fragile]{Colors for block environments}
\blockcolordemo{white}{red}{blue}{blue!20}
\vfill
\blockcolordemo{}{}{}{}
\vfill
\blockcolordemo{black}{white}{black}{white}
\end{frame}
\newcommand{\blockfontdemo}[2]{
\setbeamertemplate{block begin}[lines]{0pt}{0pt}
\setbeamertemplate{block end}[lines]{0pt}
\begin{small}
\texttt{\textbackslash setbeamerfont\{block title\}\{size=\textbackslash #1\}}\\
\texttt{\textbackslash setbeamerfont\{block body\}\{size=\textbackslash #2\}}\\
\end{small}
\blockdemo
\setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
\setbeamertemplate{block end}[lines]{0.5pt}
\setbeamerfont{block title}{parent=normal text}
\setbeamerfont{block body}{parent=normal text}
}
\begin{frame}[fragile]{Fonts for block environments}
\setbeamerfont{block title}{size=\LARGE}
\setbeamerfont{block body}{size=\normalsize}
\blockfontdemo{Large}{normalsize}
\vfill
\setbeamerfont{block title}{size=\normalsize}
\setbeamerfont{block body}{size=\tiny}
\blockfontdemo{normalsize}{tiny}
\end{frame}
\newcommand{\blocklinedemo}[3]{
\setbeamertemplate{block begin}[lines]{2pt}{2pt}
\setbeamertemplate{block end}[lines]{2pt}
\setbeamercolor{block line top}{fg=#1}
\setbeamercolor{block line middle}{fg=#2}
\setbeamercolor{block line bottom}{fg=#3}
\begin{small}
\texttt{\textbackslash setbeamercolor\{block line top\}\{fg=#1\}}\\
\texttt{\textbackslash setbeamercolor\{block line middle\}\{fg=#2\}}\\
\texttt{\textbackslash setbeamercolor\{block line bottom\}\{fg=#3\}}
\end{small}
\blockdemo
\setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
\setbeamertemplate{block end}[lines]{0.5pt}
\setbeamercolor{block line top}{fg=}
\setbeamercolor{block line middle}{fg=}
\setbeamercolor{block line bottom}{fg=blue}
}
\begin{frame}[fragile]{Lines for block environments}
\blocklinedemo{blue!80!black}{white}{blue!50}
\vfill
\blocklinedemo{}{blue!50}{}
\vfill
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Theorems --- for mathematicians} \begin{frame}{Theorems --- for mathematicians}
\begin{theorem} \begin{theorem}
@ -595,15 +322,6 @@
\messagebox{Take home message} \messagebox{Take home message}
\vfill \vfill
Use it! Use it!
\vfill
\begin{block}{Colors/Fonts/Template}
\verb!\setbeamertemplate{message}[lines]{1pt}{1pt} % width top/bottom line!\\
\verb!\setbeamercolor{message}{fg=white, bg=red}!\\
\verb!\setbeamercolor{message line top}{fg=}!\\
\verb!\setbeamercolor{message line bottom}{fg=}!\\
\verb!\setbeamertemplate{message symbol}[circle] % default, circle, arrow!\\
\verb!\setbeamercolor{message symbol}{fg=white}!
\end{block}
\end{frame} \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -631,297 +349,16 @@
\end{verse} \end{verse}
\end{frame} \end{frame}
\newcommand{\quotedemo}{
\begin{quote}[Hamlet]
To be, or not to be.
\end{quote}
\vfill
}
\newcommand{\quotesymboldemo}[2]{
\setbeamertemplate{quote symbol}[#1]#2
\begin{small}
\texttt{\textbackslash setbeamertemplate\{quote symbol\}[#1]#2}
\end{small}
\quotedemo
\setbeamertemplate{quote symbol}[opendblquote]
}
\begin{frame}[fragile]{Quote symbol settings}
\quotesymboldemo{default}{}
\quotesymboldemo{closequote}{}
\quotesymboldemo{openquote}{}
\quotesymboldemo{closedblquote}{}
\quotesymboldemo{opendblquote}{}
\quotesymboldemo{opendblquote}{[2]}
\end{frame}
\newcommand{\quotesymbolfontdemo}[1]{
\setbeamerfont{quote symbol}{family*=#1}
\begin{small}
\texttt{\textbackslash setbeamerfont\{quote symbol\}\{family*=#1\}}
\end{small}
\quotedemo
\setbeamerfont{quote symbol}{family*=pbk}
}
\begin{frame}[fragile]{Font settings for quote symbol}
\quotesymbolfontdemo{pbk}
\quotesymbolfontdemo{pnc}
\quotesymbolfontdemo{qcs}
\quotesymbolfontdemo{phv}
\end{frame}
\newcommand{\quotesourcedemo}[1]{
\setbeamertemplate{quote source}[#1]
\begin{small}
\texttt{\textbackslash setbeamertemplate\{quote source\}[#1]}
\end{small}
\quotedemo
\setbeamertemplate{quote source}[rightline]
}
\begin{frame}[fragile]{Source settings for quote and quotation environments}
Do not print the source:\\
\quotesourcedemo{default}
Left aligned in a new line:\\
\quotesourcedemo{left}
\quotesourcedemo{leftbrackets}
\begin{alertblock}{}
In the template names, replace \texttt{quote} by
\texttt{quotation} to apply the same changes to the
\texttt{quotation} environment.
\end{alertblock}
\end{frame}
\begin{frame}[fragile]{Source settings for quote and quotation environments}
Right aligned in a separate line:
\vfill
\quotesourcedemo{right}
\quotesourcedemo{rightbrackets}
\quotesourcedemo{dashright}
\quotesourcedemo{tilderight}
\end{frame}
\begin{frame}[fragile]{Source settings for quote and quotation environments}
Right aligned within the last line if possible:
\vfill
\quotesourcedemo{rightline}
\quotesourcedemo{rightlinebrackets}
\quotesourcedemo{dashrightline}
\quotesourcedemo{tilderightline}
In case the last line is too long, the source is printed on the next line:
\begin{quote}[Hamlet by William Shakespeare]
To be, or not to be, that is the question:
Whether 'tis nobler in the mind to suffer ...
\end{quote}
\end{frame}
\newcommand{\quotecolordemo}[2]{
\setbeamercolor{quote line top}{fg=#1}
\setbeamercolor{quote line bottom}{fg=#2}
\begin{small}
\texttt{\textbackslash setbeamercolor\{quote line top\}\{fg=#1\}}\\
\texttt{\textbackslash setbeamercolor\{quote line bottom\}\{fg=#2\}}
\end{small}
\quotedemo
}
\begin{frame}[fragile]{Line settings for quote and quotation environments}
\setbeamertemplate{quote begin}[lines][2pt]
\setbeamertemplate{quote end}[lines][2pt]
\begin{small}
\verb!\setbeamertemplate{quote begin}[lines][2pt]!
\verb!\setbeamertemplate{quote end}[lines][2pt]!
\end{small}
\vfill
\quotecolordemo{}{}
\quotecolordemo{blue}{}
\quotecolordemo{}{blue}
\quotecolordemo{red}{blue}
\end{frame}
\setbeamertemplate{quote begin}[lines][0.5pt]
\setbeamertemplate{quote end}[lines][0.5pt]
\setbeamercolor{quote line top}{fg=}
\setbeamercolor{quote line bottom}{fg=}
\newcommand{\quoteboxdemo}[2]{
\setbeamercolor{quote}{fg=#1, bg=#2}
\begin{small}
\texttt{\textbackslash setbeamercolor\{quote\}\{fg=#1, bg=#2\}}\\
\end{small}
\quotedemo
\setbeamercolor{quote}{fg=normal text.fg, bg=black!15}
}
\begin{frame}[fragile]{Colors and fonts for quote and quotation environments}
\setbeamerfont{quote}{shape=\upshape}
{\small \verb!\setbeamerfont{quote}{shape=\upshape}!\\}
\quotedemo
\setbeamerfont{quote}{size=\normalsize, shape=\slshape}
\quoteboxdemo{blue}{}
\quoteboxdemo{red}{black!15}
\setbeamercolor{quote symbol}{fg=green}
{\small \verb!\setbeamercolor{quote symbol}{fg=green}!\\}
\quotedemo
\setbeamercolor{quote symbol}{fg=red}
\setbeamercolor{quote source}{fg=blue}
{\small \verb!\setbeamercolor{quote source}{fg=blue}!\\}
\quotedemo
\setbeamercolor{quote source}{fg=}
\setbeamerfont{quote source}{size=\footnotesize, shape=\itshape}
{\small \verb!\setbeamerfont{quote source}{size=\footnotesize, shape=\itshape}!\\}
\quotedemo
\setbeamercolor{quote source}{fg=}
\setbeamerfont{quote source}{size=\normalsize}
\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\footlinecolordemo}[2]{
\setbeamercolor{footline}{fg=#1, bg=#2}
\begin{small}
\texttt{\textbackslash setbeamercolor\{footline\}\{fg=#1, bg=#2\}}
\end{small}
\par
\usebeamertemplate{footline}\normalsize
\setbeamercolor{footline}{fg=black!75, bg=}
\vfill
}
\newcommand{\footlinetemplatedemo}[1]{
\setbeamertemplate{footline}[#1]
\begin{small}
\texttt{\textbackslash setbeamertemplate\{footline\}[#1]}
\end{small}
\par
\usebeamertemplate{footline}\normalsize
\setbeamertemplate{footline}[pageright]
\vfill
}
\begin{frame}[fragile]{Footline}
\footlinecolordemo{blue}{}
\footlinecolordemo{blue}{black!20}
\setbeamercolor{footline}{fg=blue}
\footlinetemplatedemo{pageright}
\footlinetemplatedemo{pageleft}
\begin{small}
\texttt{\textbackslash setbeamertemplate\{footline\}[default]}
\end{small}
\par
--- no footline ---
\end{frame}
\newcommand{\footlineboxdemo}[2]{
\setbeamertemplate{footline line}[#1]#2
\begin{small}
\texttt{\textbackslash setbeamertemplate\{footline line\}[#1]#2}
\end{small}
\par
\usebeamertemplate{footline}\normalsize
\setbeamertemplate{footline line}[text][0.5pt]
\vfill
}
\begin{frame}[fragile]{Footline line}
\setbeamercolor{footline}{fg=blue}
\footlineboxdemo{text}{[0.5pt]}
\footlineboxdemo{text}{[3pt]}
\footlineboxdemo{page}{[0.5pt]}
\end{frame}
\newcommand{\footlineseparatordemo}[2]{
\setbeamertemplate{footline separator}[#1]#2
\begin{small}
\texttt{\textbackslash setbeamertemplate\{footline separator\}[#1]#2}
\end{small}
\par
\usebeamertemplate{footline}\normalsize
\setbeamertemplate{footline separator}[text][0.5pt]
\vfill
}
\begin{frame}[fragile]{Footline separator}
\setbeamercolor{footline}{fg=blue}
\footlineseparatordemo{text}{[0.5pt]}
\footlineseparatordemo{full}{[0.5pt]}
\footlineseparatordemo{full}{[3pt]}
\footlineseparatordemo{dash}{}
\footlineseparatordemo{space}{}
\end{frame}
\newcommand{\footlinepagedemo}[1]{
\setbeamertemplate{page number in head/foot}[#1]
\begin{small}
\texttt{\textbackslash setbeamertemplate\{page number in head/foot\}[#1]}
\end{small}
\par
\usebeamertemplate{footline}\normalsize
\setbeamertemplate{page number in head/foot}[frames]
\vfill
}
\begin{frame}[fragile]{Footline page numbers}
How the page in the footline is displayed can be controlled in the
following way:
\par\vfill
Frame number with slide number:\\
\footlinepagedemo{slides}
\pause
Frame number:\\
\footlinepagedemo{frames}
\pause
Frame number with total number of frames:\\
\footlinepagedemo{framestotal}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Title page} \section{Title page}
\begin{frame}[fragile]{Title page templates} \begin{frame}[fragile,c]{Title page}
\begin{block}{Title page frame} \begin{block}{Title page frame}
\verb!\begin{frame}[plain]!\\ \verb!\begin{frame}[plain]!\\
\verb! \titlepage!\\ \verb! \titlepage!\\
\verb!\end{frame}! \verb!\end{frame}!
\end{block} \end{block}
\vspace{2ex} \vfill
\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: From top to bottom:
\begin{enumerate} \begin{enumerate}
\item Logo images with a line below \item Logo images with a line below
@ -932,118 +369,38 @@
\end{enumerate} \end{enumerate}
\end{frame} \end{frame}
\begin{frame}[fragile]{Title page logo} \begin{frame}[fragile]{Title page title, authors, institutions and date}
\begin{block}{In preamble --- can be more than a single image!} In preamble:
\verb!\titlelogo{\includegraphics[height=6ex]{ourlogo}}! \vfill
\end{block} \begin{block}{Title and subtitle}
You may separate images with \verb!\hspace{0.1\textwidth}! or \verb!\hfill! commands.
\vspace{2ex}
\begin{block}{Line below logo}
\verb!\setbeamertemplate{title page logo line}[text][0.5pt]!
\verb!\setbeamertemplate{title page logo line}[page][3pt]!
\end{block}
\begin{block}{Color}
\verb!\setbeamercolor{title page logo line}{fg=red}!\\
Empty foreground color hides line:\\
\verb!\setbeamercolor{title page logo line}{fg=}!
\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}
You may separate images with \verb!\hspace{0.1\textwidth}! or \verb!\hfill! commands.
\vspace{2ex}
\begin{block}{Line directly 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!\title{The titel of my talk}!\\
\verb!\subtitle{and whatever}!\\ \verb!\subtitle{and whatever}!\\
\end{block} \end{block}
\begin{block}{Color/Font}
\verb!\setbeamercolor{title}{fg=black}! \verb!\setbeamercolor{subtitle}{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}
\newcommand{\titlepageauthorsdemo}[1]{
\setbeamertemplate{title page author and}[#1]
\usebeamertemplate{title page author and}
\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}
\begin{small}
\texttt{\textbackslash setbeamertemplate\{title page author and\}[#1]}
\end{small}
\par
\insertauthor
\setbeamertemplate{title page author and}[line]
\vfill \vfill
} \begin{block}{Authors}
\begin{frame}[fragile]{Title page authors}
\begin{block}{In preamble}
\strut\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}! \strut\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}!
\end{block} \end{block}
\titlepageauthorsdemo{space}
\titlepageauthorsdemo{comma}
\titlepageauthorsdemo{line}
\titlepageauthorsdemo{and}
\begin{block}{Color/Font}
\verb!\setbeamercolor{author}{fg=black}!
\end{block}
\end{frame}
\newcommand{\titlepageinstitutedemo}[1]{
\setbeamertemplate{title page institute and}[#1]
\usebeamertemplate{title page institute and}
\institute{\inst{1}University \and \inst{2}Scripps}
\begin{small}
\texttt{\textbackslash setbeamertemplate\{title page institute and\}[#1]}
\end{small}
\par
\insertinstitute
\setbeamertemplate{title page institute and}[line]
\vfill \vfill
} \begin{block}{Institute}
\begin{frame}[fragile]{Title page institutes}
\begin{block}{In preamble}
\strut\verb!\institute{\inst{1}University \and \inst{2}Scripps}! \strut\verb!\institute{\inst{1}University \and \inst{2}Scripps}!
\end{block} \end{block}
\titlepageinstitutedemo{space} \begin{block}{Date}
\titlepageinstitutedemo{comma} \strut\verb!\date[2020]{ICN 2020}!
\titlepageinstitutedemo{line}
\begin{block}{Color/Font}
\verb!\setbeamercolor{institute}{fg=black}!
\end{block} \end{block}
\end{frame} \end{frame}
\begin{frame}[fragile]{Title page date} \begin{frame}[fragile]{Title page images}
\begin{block}{In preamble} Specify them in the preamble --- can be more than a single image:
\strut\verb!\date[2020]{ICN 2020}! \vfill
\end{block} \begin{block}{Logo}
\begin{block}{Font} \verb!\titlelogo{\includegraphics[height=6ex]{ourlogo}}!
\verb!\setbeamerfont{date}{size=\normalsize}!
\end{block} \end{block}
\begin{block}{Color} \vfill
Same as for institutes. \begin{block}{Graphics}
\verb!\titlegraphic{\includegraphics[width=\textwidth]{amazingimage}}!
\end{block} \end{block}
\vfill
You may separate images with \verb!\hspace{0.1\textwidth}! or \verb!\hfill! commands.
\end{frame} \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -1053,46 +410,38 @@
\frame[plain]{\subsectionpage} \frame[plain]{\subsectionpage}
\begin{frame}[fragile]{Section page} \begin{frame}[c,fragile]{Section page}
Section commands between the frames, like Section commands between the frames, like
\begin{block}{} \begin{block}{}
\verb!\section{A new section}! \verb!\section{A new section}!
\end{block} \end{block}
automaticallly create a special frame with section number and title. automaticallly create a special frame with section number and title.
\vfill
\begin{block}{No automatic section pages} \begin{block}{No automatic section pages}
\verb!\AtBeginSection{} % in preamble! \verb!\AtBeginSection{} % in preamble!
\end{block} \end{block}
\vfill
\begin{block}{Manual insertion of a section page} \begin{block}{Manual insertion of a section page}
\verb!\frame[plain]{\sectionpage}! \verb!\frame[plain]{\sectionpage}!
\end{block} \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} \end{frame}
\subsection{Subsection page} \subsection{Subsection page}
\frame[plain]{\subsectionpage} \frame[plain]{\subsectionpage}
\begin{frame}[fragile]{Subsection pages} \begin{frame}[c,fragile]{Subsection pages}
After a subsection command\\ After a subsection command\\
\begin{block}{} \begin{block}{}
\verb!\subsection{A new subsection}! \verb!\subsection{A new subsection}!
\end{block} \end{block}
\vfill
you may want to insert a subsection page displaying the current you may want to insert a subsection page displaying the current
section and subsection numbers and titles: section and subsection numbers and titles:
\vfill
\begin{block}{Subsection page} \begin{block}{Subsection page}
\verb!\frame[plain]{\subsectionpage}! \verb!\frame[plain]{\subsectionpage}!
\end{block} \end{block}
\vfill
\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} \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -1126,19 +475,12 @@
\item section 16.3 ``Changing the Templates Used for Different Elements of a Presentation'' \item section 16.3 ``Changing the Templates Used for Different Elements of a Presentation''
\end{itemize} \end{itemize}
\vfill \vfill
You find a nice summary of common beamer template/color/font names in the See the
\begin{block}{Beamer appearance cheat sheet}
\url{http://www.cpt.univ-mrs.fr/~masson/latex/Beamer-appearance-cheat-sheet.pdf}
\end{block}
\vfill
For specific option, simply look into the style file
\begin{block}{}
\url{beamerthemelines.sty}
\end{block}
and the aptero color theme file
\begin{block}{} \begin{block}{}
\url{beamercolorthemeaptero.sty} lines-manual.pdf
\end{block} \end{block}
for further infos on how to adapt the templates introduced by the
\structure{lines} theme.
\end{frame} \end{frame}
\end{document} \end{document}

1146
lines-manual.tex Normal file

File diff suppressed because it is too large Load Diff