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>
* 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>

View File

@ -1,6 +1,6 @@
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
\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 label separator}{: }
\setbeamercolor{caption name}{fg=normal text.fg}
@ -63,6 +63,8 @@ $endif$
$if(colortheme)$
\usecolortheme{$colortheme$}
$else$
\usecolortheme{monashwhite}
$endif$
$if(fonttheme)$
@ -71,6 +73,8 @@ $endif$
$if(titlefontsize)$
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}}
$else$
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{22pt}{32}}
$endif$
$if(mainfont)$

View File

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