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