From a9609356ae56254ad98e568e6def8e6788e2d99f Mon Sep 17 00:00:00 2001 From: Rob J Hyndman Date: Thu, 22 Aug 2019 01:35:49 +1000 Subject: [PATCH] Added more titlepage options to Monash --- .../templates/monash/resources/template.tex | 10 ++++------ .../templates/monash/skeleton/beamerthememonash.sty | 12 ------------ 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/inst/rmarkdown/templates/monash/resources/template.tex b/inst/rmarkdown/templates/monash/resources/template.tex index 018beee..130163d 100644 --- a/inst/rmarkdown/templates/monash/resources/template.tex +++ b/inst/rmarkdown/templates/monash/resources/template.tex @@ -78,18 +78,16 @@ $if(titlefontsize)$ \setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}} $endif$ -% Change title page image -$if(titlepage)$ +% 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} -{\color{white}\raggedright\par\inserttitle} +{\color{$if(titlecolor)$$titlecolor$$else$white$endif$}\raggedright\par\inserttitle} \end{textblock} \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} \end{textblock}} -$endif$ $if(mainfont)$ \usefonttheme{serif} % use mainfont rather than sansfont for slide text diff --git a/inst/rmarkdown/templates/monash/skeleton/beamerthememonash.sty b/inst/rmarkdown/templates/monash/skeleton/beamerthememonash.sty index efc8bbb..f53396c 100644 --- a/inst/rmarkdown/templates/monash/skeleton/beamerthememonash.sty +++ b/inst/rmarkdown/templates/monash/skeleton/beamerthememonash.sty @@ -57,18 +57,6 @@ \setlength{\TPVertModule}{1cm} \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 \preto\frame{%