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

Merge pull request #11 from robjhyndman/master

Added color option to monash
This commit is contained in:
Dirk Eddelbuettel 2018-10-09 20:21:08 -04:00 committed by GitHub
commit c67b911159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 79 additions and 40 deletions

View File

@ -1,3 +1,7 @@
2018-10-09 Rob Hyndman <rob.hyndman@monash.edu>
* Added Monash theme
2018-10-02 Ista Zahn <istazahn@gmail.com>
* inst/iqssDemo/beamerfontthemeiqss.sty: Fall back to default font
@ -108,6 +112,3 @@
Example skeleton taken from my samples=rmarkdown-metropolis repo
* inst/rmarkdown/templates/metropolis/resources/template.tex:
Generic template for beamer presentations

View File

@ -3,14 +3,15 @@ Type: Package
Title: 'binb' is not 'Beamer'
Version: 0.0.2
Date: 2018-09-27
Author: Dirk Eddelbuettel and Ista Zahn
Author: Dirk Eddelbuettel, Ista Zahn and Rob Hyndman
Maintainer: Dirk Eddelbuettel <edd@debian.org>
Description: A collection of 'LaTeX' styles using 'Beamer' customization for
pdf-based presentation slides in 'RMarkdown'. At present it contains
'RMarkdown' adaptations of the LaTeX themes 'Metropolis' (formerly 'mtheme')
theme by Matthias Vogelgesang and others (now included in 'TeXLive'), and
the 'IQSS' by Ista Zahn (which is included here). Additional (free) fonts
may be needed: 'Metropolis' prefers 'Fira', and 'IQSS' requires 'Libertinus'.
theme by Matthias Vogelgesang and others (now included in 'TeXLive'), the
'IQSS' by Ista Zahn (which is included here), and the 'Monash' theme by
Rob J Hyndman. Additional (free) fonts may be needed: 'Metropolis' prefers
'Fira', and 'IQSS' requires 'Libertinus'.
URL: https://github.com/eddelbuettel/binb
BugReports: https://github.com/eddelbuettel/binb/issues
Imports: rmarkdown, knitr

View File

@ -16,6 +16,7 @@ provides functionality to use the following custom (LaTeX) themes for
([longer demo](https://eddelbuettel.github.io/binb/iqss_demo.pdf))
- [Presento](https://github.com/RatulSaha/presento) by Ratul Saha
([longer demo](https://eddelbuettel.github.io/binb/presento_demo.pdf))
- Monash by Rob J Hyndman
The original LaTeX styles been converted to be directly useable from
[RMarkdown](https://github.com/rstudio/rmarkdown)

View File

@ -1,28 +1,32 @@
%% Beamer Color Theme: Monash Blue
%% Created by Rob J Hyndman. 28 March 2017
\definecolor{MonashBlue}{RGB}{0, 99, 167}
\definecolor{Orange}{RGB}{204, 89, 0}
\definecolor{DarkGrey}{RGB}{100,100,100}
\definecolor{DarkYellow}{RGB}{230, 172, 0}
\definecolor{grey}{RGB}{191,191,191}
\definecolor{DarkGrey}{RGB}{100,100,100}
\definecolor{LightGrey}{RGB}{231,231,231}
\setbeamercolor{normal text}{fg=black!2,bg=MonashBlue}
\usebeamercolor[fg]{normal text}
\setbeamercolor{progress bar}{fg=Orange}
\setbeamercolor{frametitle}{fg=MonashBlue,bg=black!2}
\setbeamercolor{enumerate item}{fg=Orange,bg=LightGrey}
\setbeamercolor{enumerate subitem}{fg=Orange!50!yellow,bg=white}
\setbeamercolor{itemize item}{fg=Orange}
\setbeamercolor{itemize subitem}{fg=Orange!50!yellow}
\setbeamercolor{description item}{fg=DarkYellow}
\setbeamercolor{title}{fg=white,bg=MonashBlue}
\setbeamercolor{section}{fg=MonashBlue}
\setbeamercolor{subsection}{fg=MonashBlue}
\setbeamercolor{itemize}{fg=black}
\definecolor{MonashBlue}{RGB}{0, 99, 167}
\definecolor{Orange}{RGB}{204, 89, 0}
\setbeamercolor{alerted text}{fg=DarkYellow}
\setbeamercolor{block body alerted}{fg=black,bg=DarkYellow}
\setbeamercolor{block body}{fg=black,bg=black!25!white}
\setbeamercolor{structure}{fg=white}
\setbeamercolor{block title}{fg=white,bg=Orange}
\setbeamercolor{block title alerted}{fg=white,bg=black}
\setbeamercolor{block title}{fg=white,bg=Orange}
\setbeamercolor{description item}{fg=DarkYellow}
\setbeamercolor{enumerate item}{fg=Orange,bg=LightGrey}
\setbeamercolor{enumerate subitem}{fg=Orange!50!yellow,bg=white}
\setbeamercolor{frametitle}{fg=MonashBlue,bg=black!2}
\setbeamercolor{itemize item}{fg=Orange}
\setbeamercolor{itemize subitem}{fg=Orange!50!yellow}
\setbeamercolor{itemize}{fg=black}
\setbeamercolor{normal text}{fg=black!2,bg=MonashBlue}
\setbeamercolor{progress bar}{fg=Orange}
\setbeamercolor{section in toc shaded}{fg=white}
\setbeamercolor{section in toc}{fg=DarkYellow}
\setbeamercolor{section number projected}{bg=Orange,fg=white}
\setbeamercolor{section}{fg=MonashBlue}
\setbeamercolor{structure}{fg=white}
\setbeamercolor{subsection}{fg=MonashBlue}
\setbeamercolor{title}{fg=white,bg=MonashBlue}
\usebeamercolor[fg]{normal text}

View File

@ -0,0 +1,32 @@
%% Beamer Color Theme: Monash White
%% Created by Rob J Hyndman. 19 July 2017
\definecolor{DarkGrey}{RGB}{100,100,100}
\definecolor{DarkYellow}{RGB}{230, 172, 0}
\definecolor{grey}{RGB}{191,191,191}
\definecolor{LightGrey}{RGB}{231,231,231}
\definecolor{MonashBlue}{RGB}{0, 99, 167}
\definecolor{Orange}{RGB}{204, 89, 0}
\setbeamercolor{alerted text}{fg=Orange}
\setbeamercolor{block body alerted}{fg=black,bg=DarkYellow}
\setbeamercolor{block body}{fg=black,bg=black!15!white}
\setbeamercolor{block title alerted}{fg=white,bg=black}
\setbeamercolor{block title}{fg=white,bg=MonashBlue}
\setbeamercolor{description item}{fg=Orange}
\setbeamercolor{enumerate item}{fg=Orange,bg=LightGrey}
\setbeamercolor{enumerate subitem}{fg=Orange!50!yellow,bg=DarkGrey}
\setbeamercolor{frametitle}{bg=MonashBlue,fg=white}
\setbeamercolor{itemize item}{fg=Orange}
\setbeamercolor{itemize subitem}{fg=Orange!50!yellow}
\setbeamercolor{itemize}{fg=black}
\setbeamercolor{normal text}{fg=black,bg=black!2}
\setbeamercolor{progress bar}{fg=Orange}
\setbeamercolor{section in toc shaded}{fg=DarkYellow}
\setbeamercolor{section in toc}{fg=Orange}
\setbeamercolor{section number projected}{bg=Orange,fg=white}
\setbeamercolor{section}{fg=MonashBlue}
\setbeamercolor{structure}{fg=MonashBlue}
\setbeamercolor{subsection}{fg=MonashBlue}
\setbeamercolor{title}{fg=white,bg=MonashBlue}
\usebeamercolor[fg]{normal text}

View File

@ -3,7 +3,7 @@
%% Updated by Rob J Hyndman. 8 October 2018
\RequirePackage{beamerthememetropolis}
\usecolortheme{monash}
\usecolortheme{monashblue}
\usefonttheme{monash}
\metroset{progressbar=foot}
@ -45,9 +45,7 @@
\setbeamertemplate{section in toc}[square]
\setbeamerfont{section number projected}{size=\large}
\setbeamercolor{section number projected}{bg=Orange,fg=white}
\setbeamercolor{section in toc shaded}{fg=white}
\setbeamercolor{section in toc}{fg=DarkYellow}
\setbeamertemplate{section in toc shaded}[default][50]
% Figure placement
@ -57,13 +55,14 @@
\def\placefig#1#2#3#4{\begin{textblock}{.1}(#1,#2)\rlap{\includegraphics[#3]{#4}}\end{textblock}}
% Monash title page
\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}\\[0.2cm]
{\color{white}\raggedright{\insertauthor}\mbox{}\\[0.2cm]
\insertdate}
\end{textblock}}

View File

@ -5,6 +5,7 @@ date: \today
fontsize: 14pt
titlefontsize: 22pt
classoption: compress
colortheme: monashblue
toc: true
output: binb::monash
---