provide better defaults for colortheme and two fontsizes

This commit is contained in:
Dirk Eddelbuettel 2018-10-09 20:10:11 -05:00
parent b806cf63da
commit bae1fe7e26
3 changed files with 10 additions and 5 deletions

View File

@ -1,6 +1,10 @@
2018-10-09 Dirk Eddelbuettel <edd@debian.org> 2018-10-09 Dirk Eddelbuettel <edd@debian.org>
* DESCRIPTION (Version, Date): Rolled minor version * DESCRIPTION (Version, Date): Rolled minor version
* inst/rmarkdown/templates/monash/resources/template.tex: Provide
better fallbacks for fontsize, titlefontsize, colortheme
* inst/rmarkdown/templates/monash/skeleton/skeleton.Rmd: Idem
2018-10-09 Rob Hyndman <rob.hyndman@monash.edu> 2018-10-09 Rob Hyndman <rob.hyndman@monash.edu>

View File

@ -1,6 +1,6 @@
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere \PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
\PassOptionsToPackage{hyphens}{url} \PassOptionsToPackage{hyphens}{url}
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(colorlinks)$dvipsnames,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} \documentclass[$if(fontsize)$$fontsize$,$else$14pt,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(colorlinks)$dvipsnames,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
\setbeamertemplate{caption}[numbered] \setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption label separator}{: } \setbeamertemplate{caption label separator}{: }
\setbeamercolor{caption name}{fg=normal text.fg} \setbeamercolor{caption name}{fg=normal text.fg}
@ -63,6 +63,8 @@ $endif$
$if(colortheme)$ $if(colortheme)$
\usecolortheme{$colortheme$} \usecolortheme{$colortheme$}
$else$
\usecolortheme{monashwhite}
$endif$ $endif$
$if(fonttheme)$ $if(fonttheme)$
@ -71,6 +73,8 @@ $endif$
$if(titlefontsize)$ $if(titlefontsize)$
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}} \setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}}
$else$
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{22pt}{32}}
$endif$ $endif$
$if(mainfont)$ $if(mainfont)$

View File

@ -2,10 +2,7 @@
title: Monash Beamer Class Demonstration title: Monash Beamer Class Demonstration
author: Rob J Hyndman author: Rob J Hyndman
date: \today date: \today
fontsize: 14pt
titlefontsize: 22pt
classoption: compress classoption: compress
colortheme: monashblue
toc: true toc: true
output: binb::monash output: binb::monash
--- ---