...
 
......@@ -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{0.05\paperheight}%
\vspace{\beamerfzj@margin}%
%\begin{beamercolorbox}[sep=0.0cm,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
\hspace*{0.05\paperheight}#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{0.05\paperheight}%
\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{0.05\paperheight}%
\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}%
}%
}
......@@ -204,13 +208,13 @@
\defbeamertemplate*{footer element4}{default}
{%
%\begin{beamercolorbox}[sep=0.0cm,right,wd=.25\paperwidth,ht=1.25em,dp=0.0cm]{footline}
% \vspace{0.05\paperheight}%
% \vspace{\beamerfzj@margin}%
\raisebox{%
\dimexpr0.05\paperheight-0.0028\paperheight-0.0015\paperheight\relax% 0.0028 = 0.5*0.07*0.08
\dimexpr\beamerfzj@margin-0.0028\paperheight-0.0015\paperheight\relax% 0.0028 = 0.5*0.07*0.08
}{%
\includegraphics[height=0.08\paperheight]{fzj}%
}%
\hspace*{0.05\paperheight}%
\hspace*{\beamerfzj@margin}%
%\end{beamercolorbox}%
}
......@@ -218,10 +222,10 @@
{%
% Version with JÜLICH SUPERCOMPUTING CENTRE next to FZJ logo
% Use with \setbeamertemplate{footer element4}[jsc]
\raisebox{0.033\paperheight}{%
% ^^ This actually needs to be 0.05\paperheight minus half of the oversize of the J of the logo compared to the text
\raisebox{0.045\paperheight}{%
% ^^ This actually needs to be \beamerfzj@margin minus half of the oversize of the J of the logo compared to the text
\includegraphics[height=0.08\paperheight]{fzj-jsc}%
\hspace*{0.05\paperheight}%
\hspace*{\beamerfzj@margin}%
}%
}
......@@ -252,8 +256,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}%
}%
}
......@@ -261,8 +265,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={
......@@ -270,7 +274,7 @@
\inserttitlegraphic%
};
}]{};
\hbox{\color{fzjblue}\vrule width\paperwidth height0.29\paperheight}%
\hbox{\color{fzjblue}\vrule width\paperwidth height0.3\paperheight}%
}%
}
\defbeamertemplate*{background canvas}{empty}{}
......@@ -288,8 +292,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%
......@@ -303,8 +307,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%
......@@ -330,8 +334,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%
}
......@@ -340,8 +344,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%
}
......@@ -362,8 +366,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%
......@@ -373,8 +377,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
......@@ -395,8 +399,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%
......@@ -406,8 +410,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
......@@ -428,8 +432,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%
......@@ -439,8 +443,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
......@@ -464,8 +468,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%
......