Commit abe7d081 authored by Benedikt Steinbusch's avatar Benedikt Steinbusch

adjust left/rightskip for title margins instead of prepending hspace

parent c13f40e5
...@@ -271,18 +271,22 @@ ...@@ -271,18 +271,22 @@
\defbeamertemplate*{title page}{image} \defbeamertemplate*{title page}{image}
{% {%
\vskip\myheadlineb% \vskip\myheadlineb%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par% \leftskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip% \advance\rightskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute% \usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\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%
} }
% title page text version % title page text version
\defbeamertemplate{title page}{text} \defbeamertemplate{title page}{text}
{% {%
\vskip\myheadlinea% \vskip\myheadlinea%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par\medskip% \leftskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip% \advance\rightskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute \usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\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\par
} }
\defbeamertemplate{title page}{empty}{} \defbeamertemplate{title page}{empty}{}
...@@ -300,16 +304,20 @@ ...@@ -300,16 +304,20 @@
\defbeamertemplate*{teaser page}{image} \defbeamertemplate*{teaser page}{image}
{% {%
\vskip\myheadlineb% \vskip\myheadlineb%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par% \leftskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip% \advance\rightskip 0.5cm%
\usebeamercolor[fg]{title}\usebeamerfont*{title}\strut{}\inserttitle\par%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip%
} }
% page text version % page text version
\defbeamertemplate{teaser page}{text} \defbeamertemplate{teaser page}{text}
{% {%
\vskip\myheadlinea% \vskip\myheadlinea%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par\medskip% \leftskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip% \advance\rightskip 0.5cm%
\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\inserttitle\par\medskip%
\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip%
} }
\defbeamertemplate{teaser page}{empty}{} \defbeamertemplate{teaser page}{empty}{}
...@@ -328,18 +336,22 @@ ...@@ -328,18 +336,22 @@
\defbeamertemplate*{lecture page}{image} \defbeamertemplate*{lecture page}{image}
{% {%
\vskip\myheadlineb% \vskip\myheadlineb%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\insertlecture\par% \leftskip 0.5cm%
% \hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip% \advance\rightskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute% \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%
} }
% part page text version % part page text version
\defbeamertemplate{lecture page}{text} \defbeamertemplate{lecture page}{text}
{% {%
\vskip\myheadlinea% \vskip\myheadlinea%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{title}\strut{}\insertlecture\par\medskip% \leftskip 0.5cm%
% \hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip% \advance\rightskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute \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
} }
\defbeamertemplate{lecture page}{empty}{} \defbeamertemplate{lecture page}{empty}{}
...@@ -357,18 +369,22 @@ ...@@ -357,18 +369,22 @@
\defbeamertemplate*{part page}{image} \defbeamertemplate*{part page}{image}
{% {%
\vskip\myheadlineb% \vskip\myheadlineb%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\partname~\insertromanpartnumber:~\insertpart\par% \leftskip 0.5cm%
% \hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\medskip% \advance\rightskip 0.5cm%
% \hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute% \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%
} }
% part page text version % part page text version
\defbeamertemplate{part page}{text} \defbeamertemplate{part page}{text}
{% {%
\vskip\myheadlinea% \vskip\myheadlinea%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\partname~\insertromanpartnumber:~\insertpart\par\medskip% \leftskip 0.5cm%
% \hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsubtitle\par\bigskip\bigskip% \advance\rightskip 0.5cm%
% \hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute \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
} }
\defbeamertemplate{part page}{empty}{} \defbeamertemplate{part page}{empty}{}
...@@ -386,18 +402,22 @@ ...@@ -386,18 +402,22 @@
\defbeamertemplate*{section page}{image} \defbeamertemplate*{section page}{image}
{% {%
\vskip\myheadlineb% \vskip\myheadlineb%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\insertpart\par% \leftskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsection\par\medskip% \advance\rightskip 0.5cm%
% \hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute% \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%
} }
% section page text version % section page text version
\defbeamertemplate{section page}{text} \defbeamertemplate{section page}{text}
{% {%
\vskip\myheadlinea% \vskip\myheadlinea%
\hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont{part}\strut{}\insertpart\par\medskip% \leftskip 0.5cm%
\hspace{0.5cm}\usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\strut{}\insertsection\par\bigskip\bigskip% \advance\rightskip 0.5cm%
% \hspace{0.5cm}\usebeamercolor[fg]{title}\usebeamerfont*{date}\insertdate\enspace\vrule width0.3pt\enspace\insertauthor\enspace\vrule width0.3pt\enspace\insertinstitute \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
} }
%------------------------------------------------ %------------------------------------------------
...@@ -418,19 +438,20 @@ ...@@ -418,19 +438,20 @@
\nointerlineskip% \nointerlineskip%
\vskip\hlvstart% \vskip\hlvstart%
\begin{beamercolorbox}[sep=0.0cm,wd=\paperwidth]{frametitle} \begin{beamercolorbox}[sep=0.0cm,wd=\paperwidth]{frametitle}
\hspace*{0.5cm}% {\leftskip 0.5cm%
\advance\rightskip 0.5cm%
\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle\strut\par% \usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle\strut\par%
{% {%
\ifx\insertframesubtitle\@empty% \ifx\insertframesubtitle\@empty%
\vskip-2pt% compensate distance to keep equal space between frametitle and text or framesubtitle and text \vskip-2pt% compensate distance to keep equal space between frametitle and text or framesubtitle and text
\else% \else%
{% {%
\hspace*{0.5cm}%
\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par}% \usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par}%
\fi \fi
}% }%
%\hspace*{1cm}\insertframetitle% %\hspace*{1cm}\insertframetitle%
%\insertframesubtitle %\insertframesubtitle
}%
\end{beamercolorbox}% \end{beamercolorbox}%
} }
......
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