mirror of
https://github.com/eddelbuettel/binb
synced 2024-12-22 12:39:58 +01:00
Merge pull request #13 from eddelbuettel/feature/monash_enhancements
provide better defaults for colortheme and two fontsizes
This commit is contained in:
commit
a7e708f046
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
* 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>
|
||||||
|
|
||||||
* Added Monash theme
|
* Added Monash theme
|
||||||
|
@ -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}
|
||||||
@ -69,6 +69,7 @@ $if(fonttheme)$
|
|||||||
\usefonttheme{$fonttheme$}
|
\usefonttheme{$fonttheme$}
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
|
% A default size of 24 is set in beamerthememonash.sty
|
||||||
$if(titlefontsize)$
|
$if(titlefontsize)$
|
||||||
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}}
|
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{$titlefontsize$}{32}}
|
||||||
$endif$
|
$endif$
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
%% Updated by Rob J Hyndman. 8 October 2018
|
%% Updated by Rob J Hyndman. 8 October 2018
|
||||||
|
|
||||||
\RequirePackage{beamerthememetropolis}
|
\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}
|
\usefonttheme{monash}
|
||||||
|
|
||||||
\metroset{progressbar=foot}
|
\metroset{progressbar=foot}
|
||||||
@ -55,6 +56,7 @@
|
|||||||
\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
|
% 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}}
|
\setbeamerfont{title}{series=\bfseries,parent=structure,size=\fontsize{24}{32}}
|
||||||
\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}{titlepage}
|
||||||
|
@ -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
|
||||||
---
|
---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user