Commit 9313a27a authored by Leonid Bloch's avatar Leonid Bloch

Improvement of the alternative title page

Options are added for flexibility.
Signed-off-by: Leonid Bloch's avatarLeonid Bloch <leonid.bloch@esrf.fr>
parent 2f160cd3
......@@ -34,9 +34,9 @@
\begin{frame}[t]{Alternative title/subtitle page}
% Alternative title page
% Receives an image (MUST BE 500X800 OR ANY 5X8 ASPECT RATIO) and a text.
% Usage: \AlterTitPage{IMAGE WITHOUT THE FILE EXTENSION}{TEXT}
\AlterTitPage{ESRF-img}{
% Receives content (single image MUST BE 500X800 OR ANY 5X8 ASPECT RATIO), a background color, a text color, and a text.
% Usage: \AlterTitPage{IMAGE WITHOUT THE FILE EXTENSION}{COLOR FOR TEXTBOX}{TEXT}
\AlterTitPage{\includegraphics[height=0.744\paperheight]{ESRF-img}}{ESRFblue2}{white}{
\begin{center}
\vskip2.5em
\usebeamerfont{title}\inserttitle\par
......
......@@ -57,13 +57,13 @@
}
% Alternative title page
% Receives an image (MUST BE 500X800 OR ANY 5X8 ASPECT RATIO) and a text.
\newcommand{\AlterTitPage}[2]{
% Receives content (single image MUST BE 500X800 OR ANY 5X8 ASPECT RATIO), a background color, a text color, and a text.
\newcommand{\AlterTitPage}[4]{
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle (\paperwidth-33.5 pt,0.744\paperheight);
\node at (0.2325\paperheight+4.5 pt,0.372\paperheight) {\includegraphics[height=0.744\paperheight]{#1}};
\fill[ESRFblue2] (0.465\paperheight+7.5 pt,0) rectangle (\paperwidth-33.5 pt,0.744\paperheight);
\node[white,anchor=north west,text width=\paperwidth-0.465\paperheight-49 pt] at (0.465\paperheight+7.5 pt,0.744\paperheight){#2};
\node at (0.2325\paperheight+4.5 pt,0.372\paperheight) {#1};
\fill[#2] (0.465\paperheight+7.5 pt,0) rectangle (\paperwidth-33.5 pt,0.744\paperheight);
\node[#3,anchor=north west,text width=\paperwidth-0.465\paperheight-49 pt] at (0.465\paperheight+7.5 pt,0.744\paperheight){#4};
\end{tikzpicture}
}
......
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