diff --git a/ChangeLog b/ChangeLog index 6c91f45..e265cea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,41 @@ +2019-06-23 Dirk Eddelbuettel + + * DESCRIPTION (Version, Date): Release 0.0.4 + +2019-06-20 Joseph Stachelek + + * inst/rmarkdown/templates/presento/resources/template.tex: Correctly + pull date from Rmd rather than hardcode today + +2019-05-03 Johan Larson + + * inst/rmarkdown/templates/iqss/resources/templates.tex: Support + beameroptions, use pgfpages if present + * inst/rmarkdown/templates/metropolis/resources/templates.tex: Idem + * inst/rmarkdown/templates/monash/resources/templates.tex: Idem + + * vignettes/metropolisDemo.Rmd: Use beamperoption to show notes + * vignettes/metropolisDemo.pdf: Idem + +2019-03-26 Dirk Eddelbuettel + + * README.md: Add dependencies badge + +2019-02-24 Rob Hyndman + + * inst/rmarkdown/templates/monash/resources/template.tex: Header + includes moved to later in file, outline header can be changed, a + tightoc option was added + * inst/monashDemo/monashDemo.Rmd: Added + * inst/monashDemo/monashDemo.pdf: Idem + +2018-11-21 Rob Hyndman + + * inst/rmarkdown/templates/monash/: Improved colortheme handling for + Monash theme, also improved spacing in table of contents + * R/binb.R: Updated for colortheme selection for Monash + * man/metropolis.Rd: Idem + 2018-10-15 Dirk Eddelbuettel * README.md: Small touchups @@ -21,11 +59,11 @@ 2018-10-09 Rob Hyndman - * Added Monash theme + * inst/rmarkdown/templates/monash/: Added Monash theme 2018-10-02 Ista Zahn - * inst/iqssDemo/beamerfontthemeiqss.sty: Fall back to default font + * inst/iqssDemo/beamerfontthemeiqss.sty: Fall back to default font if Libertinus is unavailable * inst/rmarkdown/templates/iqss/skeleton/beamerfontthemeiqss.sty: diff --git a/DESCRIPTION b/DESCRIPTION index eac6426..4c2f6a1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: binb Type: Package Title: 'binb' is not 'Beamer' -Version: 0.0.3 -Date: 2018-10-12 +Version: 0.0.4 +Date: 2019-06-23 Author: Dirk Eddelbuettel, Ista Zahn and Rob Hyndman Maintainer: Dirk Eddelbuettel Description: A collection of 'LaTeX' styles using 'Beamer' customization for diff --git a/README.md b/README.md index 9095767..43c14d2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## binb [![Build Status](https://travis-ci.org/eddelbuettel/binb.svg)](https://travis-ci.org/eddelbuettel/binb) [![Package-License](http://img.shields.io/badge/license-GPL--2-brightgreen.svg?style=flat)](http://www.gnu.org/licenses/gpl-2.0.html) [![CRAN](http://www.r-pkg.org/badges/version/binb)](https://cran.r-project.org/package=binb) [![Downloads](http://cranlogs.r-pkg.org/badges/binb?color=brightgreen)](http://www.r-pkg.org/pkg/binb) +## binb [![Build Status](https://travis-ci.org/eddelbuettel/binb.svg)](https://travis-ci.org/eddelbuettel/binb) [![Package-License](http://img.shields.io/badge/license-GPL--2-brightgreen.svg?style=flat)](http://www.gnu.org/licenses/gpl-2.0.html) [![CRAN](http://www.r-pkg.org/badges/version/binb)](https://cran.r-project.org/package=binb) [![Dependencies](https://tinyverse.netlify.com/badge/binb)](https://cran.r-project.org/package=binb) [![Downloads](http://cranlogs.r-pkg.org/badges/binb?color=brightgreen)](http://www.r-pkg.org/pkg/binb) Binb is not Beamer: Stylish pdf Presentations from RMarkdown diff --git a/inst/NEWS.Rd b/inst/NEWS.Rd index 237f417..42014d5 100644 --- a/inst/NEWS.Rd +++ b/inst/NEWS.Rd @@ -3,6 +3,20 @@ \newcommand{\ghpr}{\href{https://github.com/eddelbuettel/binb/pull/#1}{##1}} \newcommand{\ghit}{\href{https://github.com/eddelbuettel/binb/issues/#1}{##1}} +\section{Changes in binb version 0.0.4 (2018-06-23)}{ + \itemize{ + \item The Monash theme now has improved color theme handling (Rob + Hyndman in \ghpr{15}) + \item The Monash them has a demo, a new \code{tighttoc} option and + other small improvements (Rob Hyndman in \ghpr{16}). + \item A slide notes example was added to Metropolis, pgfpages can be + used if present, \code{beameroption} was added to three templates + (Johan Larsson in \ghpr{17}). + \item The Presento them now use the date from the yaml header + (Joseph Stachelek in \ghpr{18}) + } +} + \section{Changes in binb version 0.0.3 (2018-10-12)}{ \itemize{ \item The IQSS theme now has a fallback font if Libertinus is diff --git a/inst/rmarkdown/templates/iqss/resources/template.tex b/inst/rmarkdown/templates/iqss/resources/template.tex index 92ed029..bcbc693 100644 --- a/inst/rmarkdown/templates/iqss/resources/template.tex +++ b/inst/rmarkdown/templates/iqss/resources/template.tex @@ -1,10 +1,14 @@ \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$} +\IfFileExists{pgfpages.sty}{\usepackage{pgfpages}}{} \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: } \setbeamercolor{caption name}{fg=normal text.fg} \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ +$for(beameroption)$ +\setbeameroption{$beameroption$} +$endfor$ $if(fontfamily)$ \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} $else$ @@ -273,7 +277,7 @@ $endfor$ \AtBeginSubsection[]{} -%% +%% $if(title)$ diff --git a/inst/rmarkdown/templates/metropolis/resources/template.tex b/inst/rmarkdown/templates/metropolis/resources/template.tex index a434ae4..42a8094 100644 --- a/inst/rmarkdown/templates/metropolis/resources/template.tex +++ b/inst/rmarkdown/templates/metropolis/resources/template.tex @@ -1,10 +1,14 @@ \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$} +\IfFileExists{pgfpages.sty}{\usepackage{pgfpages}}{} \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: } \setbeamercolor{caption name}{fg=normal text.fg} \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ +$for(beameroption)$ +\setbeameroption{$beameroption$} +$endfor$ $if(fontfamily)$ \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} $else$ diff --git a/inst/rmarkdown/templates/monash/resources/template.tex b/inst/rmarkdown/templates/monash/resources/template.tex index 0118317..018beee 100644 --- a/inst/rmarkdown/templates/monash/resources/template.tex +++ b/inst/rmarkdown/templates/monash/resources/template.tex @@ -1,10 +1,14 @@ \PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere \PassOptionsToPackage{hyphens}{url} \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$} +\IfFileExists{pgfpages.sty}{\usepackage{pgfpages}}{} \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: } \setbeamercolor{caption name}{fg=normal text.fg} \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ +$for(beameroption)$ +\setbeameroption{$beameroption$} +$endfor$ $if(fontfamily)$ \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} $else$ diff --git a/inst/rmarkdown/templates/presento/resources/template.tex b/inst/rmarkdown/templates/presento/resources/template.tex index 6a8fc99..26aabe7 100644 --- a/inst/rmarkdown/templates/presento/resources/template.tex +++ b/inst/rmarkdown/templates/presento/resources/template.tex @@ -28,7 +28,7 @@ $endif$ \else \usepackage{fontspec} \fi - % DEdd Commented-out for binb use as it conflicts with presento font scaling + % DEdd Commented-out for binb use as it conflicts with presento font scaling %\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} $for(fontfamilies)$ \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$} @@ -249,7 +249,7 @@ $if(author)$ $if(address)$ \\\setnote{$address$} $endif$ } $endif$ -\newcommand{\myDetails}{\setnote{\today}} +\newcommand{\myDetails}{\setnote{$date$}} %sty file %\usepackage{config/presento} diff --git a/vignettes/metropolisDemo.Rmd b/vignettes/metropolisDemo.Rmd index c08d20a..e6a2809 100644 --- a/vignettes/metropolisDemo.Rmd +++ b/vignettes/metropolisDemo.Rmd @@ -11,6 +11,7 @@ output: in_header: metropolis/header.tex bibliography: metropolis/demo.bib biblio-style: abbrvnat +beameroption: "show notes" toc: true vignette: > %\VignetteIndexEntry{binb Metropolis Demo} @@ -325,6 +326,39 @@ Some references \citep{knuth92,ConcreteMath,Simpson,Er01,greenwade93} \scriptsize `allowframebreaks` is not used or needed, also changed `\cite` to `\citep`, and defaulted `natbib` to option `[round]`. +## Notes + +Notes can be added either using latex syntax: + +``` +\note{ + \begin{itemize} + \item \emph{This} is a note. + \end{itemize} +} +``` + +\note{ + \begin{itemize} + \item \emph{This} is a note. + \end{itemize} +} + +or with pandoc (markdown) syntax: + +``` +
+ - This is *another* note. +
+``` + +
+ - This is *another* note. +
+ +The display of the notes is controlled using the YAML argument `beameroption`. +Here we have used `beameroption: "show notes"`. + # Conclusion ## Summary diff --git a/vignettes/metropolisDemo.pdf b/vignettes/metropolisDemo.pdf index 1a26ccb..017ca84 100644 Binary files a/vignettes/metropolisDemo.pdf and b/vignettes/metropolisDemo.pdf differ