Commit 3bdb86d8 authored by Benedikt Steinbusch's avatar Benedikt Steinbusch

set frame margins to 0.05 x paper height

parent 5d472a07
Pipeline #10848 failed with stage
in 10 seconds
......@@ -4,7 +4,10 @@
% this version does support pdflatex, xelatex and lualatex
%
\setbeamersize{text margin left=0.5cm,text margin right=0.5cm}
\newlength{\beamerfzj@margin}
\setlength{\beamerfzj@margin}{0.05\paperheight}
\setbeamersize{text margin left=\beamerfzj@margin,text margin right=\beamerfzj@margin}
% compute white border
\newlength{\myborder}
......@@ -19,7 +22,7 @@
\setlength{\myheadlineb}{\dimexpr(0.55\paperheight-\headheight-6pt+\mylen)\relax} % alignmet at the left top corner of the headline
\newlength{\hlvstart}
\setlength{\hlvstart}{\dimexpr(1cm-15pt)\relax}
\setlength{\hlvstart}{\beamerfzj@margin}
% alignment
\newcommand{\tlap}[1]{\vbox to 0pt{\vss\hbox{#1}}}
......@@ -174,9 +177,10 @@
\defbeamertemplate*{footer element1}{default}[1][\usebeamertemplate{helmholtz banner}]
{%
\tlap{%
\vspace{\dimexpr(.5cm-3pt)}%
\vspace{\beamerfzj@margin}%
%\begin{beamercolorbox}[sep=0.0cm,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
\hspace*{0.5cm}#1 % if no extra option is given, use \usebeamertemplate{helmholtz banner}
\hspace*{\beamerfzj@margin}%
\raisebox{0pt}[0pt][0pt]{#1} % if no extra option is given, use \usebeamertemplate{helmholtz banner}
%\end{beamercolorbox}%
}%
}
......@@ -184,9 +188,9 @@
\defbeamertemplate*{footer element2}{default}[1][\usebeamertemplate{date}]
{%
\tlap{%
\vspace{\dimexpr(.5cm-3pt)}%
\vspace{\beamerfzj@margin}%
%\begin{beamercolorbox}[sep=0.0cm,center,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
#1 % if no extra option is given, use \usebeamertemplate*{date}
\raisebox{0pt}[0pt][0pt]{#1} % if no extra option is given, use \usebeamertemplate*{date}
%\end{beamercolorbox}%
}%
}
......@@ -194,9 +198,9 @@
\defbeamertemplate*{footer element3}{default}[1][\usebeamertemplate*{frame number}]
{%
\tlap{%
\vspace{\dimexpr(.5cm-3pt)}%
\vspace{\beamerfzj@margin}%
%\begin{beamercolorbox}[sep=0.0cm,center,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
#1 % if no extra option is given, use \usebeamertemplate*{frame number}
\raisebox{0pt}[0pt][0pt]{#1} % if no extra option is given, use \usebeamertemplate*{frame number}
%\end{beamercolorbox}%
}%
}
......@@ -235,8 +239,8 @@
\defbeamertemplate{background canvas}{text}
{%
\vbox{%
\vskip0.05\paperheight%
\hbox{\color{fzjblue}\vrule width \paperwidth height 0.74\paperheight}%
\vskip\beamerfzj@margin%
\hbox{\color{fzjblue}\vrule width \paperwidth height 0.75\paperheight}%
}%
}
......@@ -244,8 +248,8 @@
\defbeamertemplate{background canvas}{image}
{%
\vbox{%
\vskip0.05\paperheight%
\hskip0.05\paperheight\tikz\node[draw=none,
\vskip\beamerfzj@margin%
\hskip\beamerfzj@margin\tikz\node[draw=none,
minimum width=\myborder,
minimum height=0.45\paperheight,
path picture={
......@@ -253,7 +257,7 @@
\inserttitlegraphic%
};
}]{};
\hbox{\color{fzjblue}\vrule width\paperwidth height0.29\paperheight}%
\hbox{\color{fzjblue}\vrule width\paperwidth height0.3\paperheight}%
}%
}
\defbeamertemplate*{background canvas}{empty}{}
......@@ -271,8 +275,8 @@
\defbeamertemplate*{title page}{image}
{%
\vskip\myheadlineb%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
......@@ -286,8 +290,8 @@
\defbeamertemplate{title page}{text}
{%
\vskip\myheadlinea%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
......@@ -313,8 +317,8 @@
\defbeamertemplate*{teaser page}{image}
{%
\vskip\myheadlineb%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
}
......@@ -323,8 +327,8 @@
\defbeamertemplate{teaser page}{text}
{%
\vskip\myheadlinea%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par\medskip%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
}
......@@ -345,8 +349,8 @@
\defbeamertemplate*{lecture page}{image}
{%
\vskip\myheadlineb%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\insertlecture\par%
% \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
\usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute%
......@@ -356,8 +360,8 @@
\defbeamertemplate{lecture page}{text}
{%
\vskip\myheadlinea%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\insertlecture\par\medskip%
% \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
\usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute
......@@ -378,8 +382,8 @@
\defbeamertemplate*{part page}{image}
{%
\vskip\myheadlineb%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\partname~\insertromanpartnumber:~\insertpart\par%
% \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
% \usebeamercolor[fg]{title}\usebeamerfont{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute%
......@@ -389,8 +393,8 @@
\defbeamertemplate{part page}{text}
{%
\vskip\myheadlinea%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\partname~\insertromanpartnumber:~\insertpart\par\medskip%
% \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
% \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute
......@@ -411,8 +415,8 @@
\defbeamertemplate*{section page}{image}
{%
\vskip\myheadlineb%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\insertpart\par%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsection\par\medskip%
% \usebeamercolor[fg]{title}\usebeamerfont{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute%
......@@ -422,8 +426,8 @@
\defbeamertemplate{section page}{text}
{%
\vskip\myheadlinea%
\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\insertpart\par\medskip%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsection\par\bigskip\bigskip%
% \usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute
......@@ -447,8 +451,8 @@
\nointerlineskip%
\vskip\hlvstart%
\begin{beamercolorbox}[sep=0.0cm,wd=\paperwidth]{frametitle}
{\leftskip 0.5cm%
\advance\rightskip 0.5cm%
{\leftskip \beamerfzj@margin%
\advance\rightskip \beamerfzj@margin%
\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle\strut\par%
{%
\ifx\insertframesubtitle\@empty%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment