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

Merge pull request #13 from eddelbuettel/feature/monash_enhancements

provide better defaults for colortheme and two fontsizes
This commit is contained in:
Dirk Eddelbuettel 2018-10-10 22:06:39 -04:00 committed by GitHub
commit a7e708f046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 6 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}
@ -69,6 +69,7 @@ $if(fonttheme)$
\usefonttheme{$fonttheme$}
$endif$
% A default size of 24 is set in beamerthememonash.sty
$if(titlefontsize)$
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}}
$endif$

View File

@ -3,7 +3,8 @@
%% Updated by Rob J Hyndman. 8 October 2018
\RequirePackage{beamerthememetropolis}
\usecolortheme{monashblue}
% For binb, one can alter the color theme by by setting eg 'colortheme: monashblue' in the YAML header
\usecolortheme{monashwhite}
\usefonttheme{monash}
\metroset{progressbar=foot}
@ -55,6 +56,7 @@
\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}

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