From e91a6295cdd6cae23aa172f2b363e1ad660dc0e0 Mon Sep 17 00:00:00 2001 From: Jan Benda Date: Wed, 3 Mar 2021 16:15:17 +0100 Subject: [PATCH] improved footline separators --- beamerthemelines.sty | 20 +++++++++++--------- beamerthemeut.sty | 10 +++++----- lines-example.tex | 10 ++++++++-- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/beamerthemelines.sty b/beamerthemelines.sty index d228cf8..2ffcea9 100644 --- a/beamerthemelines.sty +++ b/beamerthemelines.sty @@ -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] diff --git a/beamerthemeut.sty b/beamerthemeut.sty index 06a1e25..c94e9d5 100644 --- a/beamerthemeut.sty +++ b/beamerthemeut.sty @@ -39,12 +39,12 @@ \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 line}[page][0.3pt] % text, page -\setbeamertemplate{footline separator}[text][0.3pt] % text, full +\setbeamertemplate{footline}[linesleft] % default, linesleft +\setbeamertemplate{footline line}[page][0.3pt] % text, page +\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 +\setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball, arrow, dash +\setbeamertemplate{itemize subitem}[dash] % default, triangle, circle, square, ball, arrow, dash \setbeamertemplate{enumerate item}[arabic] % default, circle, square, ball, alph, Alph, arabic, roman, Roman \setbeamertemplate{enumerate subitem}[alph] % default, circle, square, ball, alph, arabic, roman diff --git a/lines-example.tex b/lines-example.tex index d5297b5..d25cbdb 100644 --- a/lines-example.tex +++ b/lines-example.tex @@ -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}