improved footline separators

This commit is contained in:
Jan Benda 2021-03-03 16:15:17 +01:00
parent 96c8490144
commit e91a6295cd
3 changed files with 24 additions and 16 deletions

View File

@ -118,18 +118,20 @@
%%%%% footline separator:
\defbeamertemplate{footline separator}{text}[1][1pt]{%
{\usebeamercolor[fg]{footline separator}$\;\;$\rule[-0.55ex]{#1}{2.3ex}$\;$}}
{\usebeamercolor[fg]{footline separator}\enspace\rule[-0.55ex]{#1}{2.3ex}\thickspace}}
\defbeamertemplate{footline separator}{full}[1][1pt]{%
{\usebeamercolor[fg]{footline separator}$\;\;$\rule[-1.2ex]{#1}{4ex}$\;$}}
{\usebeamercolor[fg]{footline separator}\enspace\rule[-1.2ex]{#1}{4ex}\thickspace}}
\defbeamertemplate{footline separator}{dash}{%
{\usebeamercolor[fg]{footline separator}\thickspace{} ---\thickspace}}
\defbeamertemplate{footline separator}{space}{%
{\usebeamercolor[fg]{footline separator}$\;\;\;$}}
{\usebeamercolor[fg]{footline separator}\enspace\thickspace}}
\setbeamertemplate{footline separator}[text][0.5pt]
%%%%% footline: lines
%%%%% footline: linesleft
\defbeamertemplate{footline}{lines}{%
\defbeamertemplate{footline}{linesleft}{%
\usebeamerfont{footline}%
\usebeamertemplate{footline line}%
\begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=2.8ex,sep=0pt,colsep=0pt,colsep*=0pt,%
@ -177,7 +179,7 @@
\end{beamercolorbox}
}
\setbeamertemplate{footline}[lines]
\setbeamertemplate{footline}[linesleft]
%%%%% frametitle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -329,8 +331,8 @@
\defbeamertemplate{title page author and}{space}{\def\beamer@andtitle{\quad}}
\defbeamertemplate{title page author and}{comma}{\def\beamer@andtitle{,\quad}}
\defbeamertemplate{title page author and}{line}{\def\beamer@andtitle{$\;\;\vert\;\;\;$}}
\defbeamertemplate{title page author and}{and}{\def\beamer@andtitle{$\;$\&$\;\;$}}
\defbeamertemplate{title page author and}{line}{\def\beamer@andtitle{\enspace$\vert$\enspace\thickspace}}
\defbeamertemplate{title page author and}{and}{\def\beamer@andtitle{\thickspace\&\enspace}}
\setbeamertemplate{title page author and}[line]
@ -340,7 +342,7 @@
\defbeamertemplate{title page institute and}{default}{}
\defbeamertemplate{title page institute and}{space}{\def\beamer@andinst{\quad}}
\defbeamertemplate{title page institute and}{comma}{\def\beamer@andinst{,\quad}}
\defbeamertemplate{title page institute and}{line}{\def\beamer@andinst{$\;\;\vert\;\;\;$}}
\defbeamertemplate{title page institute and}{line}{\def\beamer@andinst{\enspace$\vert$\enspace\thickspace}}
\setbeamertemplate{title page institute and}[line]

View File

@ -39,9 +39,9 @@
\setbeamertemplate{frametitle line}[page][0.75pt] % text, page
\setbeamertemplate{page number in head/foot}[frames] % frames, framestotal, slides
\setbeamertemplate{footline}[lines] % default (no footline), lines
\setbeamertemplate{footline}[linesleft] % default, linesleft
\setbeamertemplate{footline line}[page][0.3pt] % text, page
\setbeamertemplate{footline separator}[text][0.3pt] % text, full
\setbeamertemplate{footline separator}[text][0.3pt] % text, full, dash, space
\setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball, arrow, dash
\setbeamertemplate{itemize subitem}[dash] % default, triangle, circle, square, ball, arrow, dash

View File

@ -255,9 +255,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Footline}
\begin{block}{No 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}
\end{frame}
\begin{frame}[fragile]{Footline line}
@ -284,6 +287,9 @@
\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}
@ -316,7 +322,7 @@
\verb!\end{frame}!
\end{block}
\vspace{2ex}
\begin{block}{Left adjusted}
\begin{block}{Flushed left}
\verb!\setbeamertemplate{title page}[leftlines]!
\end{block}
\begin{block}{Centered}