Commit 1d8914a1 authored by Bernhard Heinloth's avatar Bernhard Heinloth
Browse files

universal aspect ratio title page image

parent 338cead9
Pipeline #30616 passed with stage
in 23 seconds
...@@ -151,18 +151,20 @@ ...@@ -151,18 +151,20 @@
\titlepage \titlepage
\else \else
{ {
\def\backgroundimg{images/titlepage-#1} \usebackgroundtemplate{
\ifdimcomp{\beamer@paperwidth}{=}{16.00cm}{\ifdimcomp{\beamer@paperheight}{=}{9.00cm}{% \tikzexternaldisable%
% 16:9 \begin{tikzpicture}
\def\backgroundimg{images/titlepage-#1-highres-169} \node[anchor=north west,inner sep=0,outer sep=0] at (0, \paperheight) {\includegraphics[width=\paperwidth]{images/titlepage-#1}};
}{}}{} \fill[nWhite] (0,0) rectangle (\paperwidth, 0.3\paperheight);
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{\backgroundimg}} \end{tikzpicture}%
\tikzexternalenable%
}
\frame[plain,noframenumbering]{ \frame[plain,noframenumbering]{
\neo@colors@dark \neo@colors@dark
\setbeamercolor{title separator}{ \setbeamercolor{title separator}{
fg=black!20, fg=black!20,
bg=normal text.fg bg=normal text.fg
} }
\titlepage \titlepage
} }
} }
......
Supports Markdown
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