1
0
mirror of https://github.com/eddelbuettel/binb synced 2024-12-22 12:39:58 +01:00

Added more titlepage options to Monash

This commit is contained in:
Rob J Hyndman 2019-08-22 01:35:49 +10:00
parent 57aa0f21d3
commit a9609356ae
2 changed files with 4 additions and 18 deletions

View File

@ -78,18 +78,16 @@ $if(titlefontsize)$
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}} \setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}}
$endif$ $endif$
% Change title page image % Title page
$if(titlepage)$
\setbeamertemplate{title page} \setbeamertemplate{title page}
{\placefig{-0.01}{-0.01}{width=1.01\paperwidth,height=1.01\paperheight}{$titlepage$} {\placefig{-0.01}{-0.01}{width=1.01\paperwidth,height=1.01\paperheight}{$if(titlepage)$$titlepage$$else$titlepage$endif$}
\begin{textblock}{7.5}(1,2.8)\usebeamerfont{title} \begin{textblock}{7.5}(1,2.8)\usebeamerfont{title}
{\color{white}\raggedright\par\inserttitle} {\color{$if(titlecolor)$$titlecolor$$else$white$endif$}\raggedright\par\inserttitle}
\end{textblock} \end{textblock}
\begin{textblock}{7.5}(1,7) \begin{textblock}{7.5}(1,7)
{\color{white}\raggedright{\insertauthor}\mbox{}\\[0.2cm] {\color{$if(titlecolor)$$titlecolor$$else$white$endif$}\raggedright{\insertauthor}\mbox{}\\[0.2cm]
\insertdate} \insertdate}
\end{textblock}} \end{textblock}}
$endif$
$if(mainfont)$ $if(mainfont)$
\usefonttheme{serif} % use mainfont rather than sansfont for slide text \usefonttheme{serif} % use mainfont rather than sansfont for slide text

View File

@ -57,18 +57,6 @@
\setlength{\TPVertModule}{1cm} \setlength{\TPVertModule}{1cm}
\def\placefig#1#2#3#4{\begin{textblock}{.1}(#1,#2)\rlap{\includegraphics[#3]{#4}}\end{textblock}} \def\placefig#1#2#3#4{\begin{textblock}{.1}(#1,#2)\rlap{\includegraphics[#3]{#4}}\end{textblock}}
% Monash title page
% For binb, one can alter the font size by setting eg 'titlefontsize: 20pt' in the YAML header
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{24}{32}}
\setbeamertemplate{title page}
{\placefig{-0.01}{-0.01}{width=1.01\paperwidth,height=1.01\paperheight}{titlepage}
\begin{textblock}{7.5}(1,2.8)\usebeamerfont{title}
{\color{white}\raggedright\par\inserttitle}
\end{textblock}
\begin{textblock}{7.5}(1,7)
{\color{white}\raggedright{\insertauthor}\mbox{}\\[0.2cm]
\insertdate}
\end{textblock}}
% Reduce vertical space around displayed equations % Reduce vertical space around displayed equations
\preto\frame{% \preto\frame{%