added linesright footline

This commit is contained in:
Jan Benda 2021-03-03 16:20:59 +01:00
parent e91a6295cd
commit dfee4624a9
3 changed files with 54 additions and 1 deletions

View File

@ -179,6 +179,56 @@
\end{beamercolorbox} \end{beamercolorbox}
} }
%%%%% footline: linesright
\defbeamertemplate{footline}{linesright}{%
\usebeamerfont{footline}%
\usebeamertemplate{footline line}%
\begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=2.8ex,sep=0pt,colsep=0pt,colsep*=0pt,%
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{footline}
\hypersetup{linkcolor=}%
% page:
\if@beamer@footline@page
\usebeamertemplate{page number in head/foot}%
\fi
\hfill
\newif\if@tempsep%
\@tempsepfalse%
% author:
\if@beamer@footline@author
{\usebeamerfont{author in head/foot}%
\insertshortauthor}%
\@tempseptrue
\fi
% institute:
\if@beamer@footline@institute
\if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
{\usebeamerfont{institute in head/foot}%
\insertshortinstitute}%
\@tempseptrue
\fi
% date:
\if@beamer@footline@date
\if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
{\usebeamerfont{date in head/foot}%
\insertshortdate}%
\@tempseptrue
\fi
% title:
\if@beamer@footline@title
\if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
{\usebeamerfont{title in head/foot}%
\insertshorttitle}%
\@tempseptrue
\fi
% logo:
\if@beamer@footline@logo%
\ifx\insertlogo\@empty\else\quad \raisebox{-1ex}{\insertlogo}\fi%
\fi
\end{beamercolorbox}
}
\setbeamertemplate{footline}[linesleft] \setbeamertemplate{footline}[linesleft]

View File

@ -39,7 +39,7 @@
\setbeamertemplate{frametitle line}[page][0.75pt] % text, page \setbeamertemplate{frametitle line}[page][0.75pt] % text, page
\setbeamertemplate{page number in head/foot}[frames] % frames, framestotal, slides \setbeamertemplate{page number in head/foot}[frames] % frames, framestotal, slides
\setbeamertemplate{footline}[linesleft] % default, linesleft \setbeamertemplate{footline}[linesleft] % default, linesleft, linesright
\setbeamertemplate{footline line}[page][0.3pt] % text, page \setbeamertemplate{footline line}[page][0.3pt] % text, page
\setbeamertemplate{footline separator}[text][0.3pt] % text, full, dash, space \setbeamertemplate{footline separator}[text][0.3pt] % text, full, dash, space

View File

@ -261,6 +261,9 @@
\begin{block}{lines theme with author, title, etc. on the left} \begin{block}{lines theme with author, title, etc. on the left}
\verb!\setbeamertemplate{footline}[linesleft]! \verb!\setbeamertemplate{footline}[linesleft]!
\end{block} \end{block}
\begin{block}{lines theme with author, title, etc. on the right}
\verb!\setbeamertemplate{footline}[linesright]!
\end{block}
\end{frame} \end{frame}
\begin{frame}[fragile]{Footline line} \begin{frame}[fragile]{Footline line}