Created
September 5, 2021 14:17
-
-
Save vleugelcomplement/b2fbc331bea0ec2f94e5bb2826b40378 to your computer and use it in GitHub Desktop.
Custom tweaks for https://github.com/elauksap/focus-beamertheme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\cslet{beamer@@tmpop@title page@focus}\relax | |
\setbeamerfont{author}{size=\LARGE, shape=\scshape} | |
\setbeamerfont{institute}{size=\footnotesize, shape=\scshape} | |
\defbeamertemplate*{title page}{focus}{% | |
\vspace{-1.\baselineskip} | |
\begin{minipage}[b][0.275\paperheight]{\textwidth} | |
\vspace{\baselineskip} | |
\usebeamerfont{title} | |
\usebeamercolor[main]{frametitle} | |
\inserttitle | |
\end{minipage} | |
% \vspace{1.\baselineskip} | |
% \begin{minipage}[t][0.15\paperheight]{\textwidth} | |
% \usebeamerfont{subtitle} | |
% \usebeamercolor[fg]{frametitle} | |
% \insertsubtitle | |
% \end{minipage} | |
% | |
% Set the title graphic in a zero-height box, so that | |
% the position of other elements is not affected. | |
{\vfuzz=9999pt\vbox to 0pt { | |
\raggedleft | |
\inserttitlegraphic | |
}} | |
\vspace*{0pt plus 100fill} | |
\def\beamer@andtitle{\\[0.4em]} | |
\quad\begin{minipage}[t]{0.55\textwidth} | |
\usebeamerfont{author} | |
\insertauthor | |
\end{minipage} | |
\vspace*{\baselineskip} | |
\def\beamer@andinst{\\[0.25em]} | |
\begin{minipage}[t]{0.55\textwidth} | |
\usebeamerfont{institute} | |
\insertinstitute | |
\end{minipage} | |
\vspace*{0pt plus 100fill} | |
\begin{minipage}[t]{\textwidth} | |
\usebeamerfont{date} | |
\centering | |
\insertdate | |
\end{minipage} | |
\vspace*{0pt plus 100fill} | |
\addtocounter{framenumber}{-1} | |
} | |
\let \beamer@@tmpop@footline@fullbar \relax | |
\defbeamertemplate*{footline}{fullbar}{% | |
% If not appendix. | |
\ifnum\mainend<0% From package appendixnumberbeamer. | |
% | |
\settowidth{\focus@pbar@leftoffset}{1}% | |
\addtolength{\focus@pbar@leftoffset}{1.5em}% | |
% | |
\settowidth{\focus@pbar@rightoffset}{\inserttotalframenumber}% | |
\addtolength{\focus@pbar@rightoffset}{1.5em}% | |
% | |
% If not title page. | |
\ifnum\c@framenumber>0% | |
\begin{tikzpicture}[ | |
inner xsep=0.5em, inner ysep=0.5ex, | |
lighter/.style = { | |
fill = main!10!bg, | |
rounded corners = 2pt, | |
font = \tiny | |
}, | |
darker/.style = { | |
fill = main!20!bg, | |
rounded corners = 2pt, | |
font = \tiny | |
} | |
] | |
\clip (0,0) rectangle ++(\paperwidth,\the\focus@pbar@height); | |
\node [darker, anchor=west] (author) at (0,0.4*\focus@pbar@height) {\strut\insertshortauthor}; | |
\node [lighter, anchor=west] (date) at (author.east) {\strut\insertshortdate}; | |
\node [darker, anchor=west] (title) at (date.east) {\strut\insertshorttitle}; | |
\node[anchor=east, footline.fg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut\insertframenumber}; | |
\node[footline.fg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut/}; | |
\node[anchor=west, footline.fg] at ({\paperwidth-\the\focus@pbar@rightoffset},{0.5*\focus@pbar@height}) {\strut\inserttotalframenumber}; | |
\end{tikzpicture}% | |
\fi% | |
\fi% | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment