- Notifications
You must be signed in to change notification settings - Fork24
eddelbuettel/binb
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
TheBeamer package is very popular for making pdfpresentations from LaTeX, and also supported from Markdown andRMarkdown. This package (currently)provides functionality to use the following custom (LaTeX) themes forBeamer directly via RMarkdown:
- Metropolis (formerly
mtheme) by Matthias Vogelgesang(longer demo) - IQSS by Ista Zahn(longer demo)
- Presento by Ratul Saha(longer demo)
- Monash by Rob J Hyndman(longer demosone andtwo)
The original LaTeX styles been converted to be directly useable fromRMarkdown
Consider the following minimal example, adapted from the original minimal example at the bottom oftheMetropolis page:
---title: A minimal exampleauthor: Matthias Vogelgesangdate: \todayinstitute: Centre for Modern Beamer Themesoutput: binb::metropolis---# First Section## First FrameHello, world!It creates athree-page pdf file whichwe converted into this animated gif
Similarly, for IQSS we use the following input adapting the example above but showing sections andsubsections for the nice headings it generates:
---title: A minimal exampleauthor: Ista Zahndate: \todayinstitute: IQSSoutput: binb::iqss---# First Section## First Sub-Section### First FrameHello, world!# Second Section## Second Subsection### Second FrameAnother planet!This creates thispdf file which weconverted into this animated gif:
The following small example adapted some of the slides from original minimal example from thePresento repo:
---author: Ratul Sahaaddress: www.ratulsaha.comtitle: PRESENTOsubtitle: clean, simple and extensibledate: \todayoutput: binb::presento---## Presento- \begin{center}\largetext{The design is \underline{clean}}\end{center} \bigskip- \begin{center}\largetext{The rules are \underline{simple}}\end{center} \bigskip- \item \begin{center}\largetext{The code is \underline{extensible}}\end{center}## Open Source Fonts- \montserratfont This is \textsc{Montserrat}\bigskip- \notosansfont This is \textsc{Noto Sans}\bigskip- \latolightfont This is Lato (light) \bigskip- \inconsolatafont This is inconsolata \bigskip- \textsc{This is Alegreya Sans small caps} \bigskip## Color Palette\begin{center} \crule[colordgray] \crule[colorhgray] \crule[colorblue] \crule[colorgreen] \crule[colororange]\end{center}____\begin{center} \hugetext{BIG BOLD TEXT} \medskip \small but background color does not work\end{center}____\tikz[overlay,remember picture] \node[opacity=0.8, at=(current page.center)]{% \includegraphics[width=\paperwidth]{images/skeleton}};\begin{textblock}{7}(7,2.5) {\color{colorblue}\hugetext{\textbf{RUN!}}}\end{textblock}From this, one can creats thispdf filewhich can be converted into this animated gif:
Below is an example of theMonash Business School themebyRob Hyndman. There also two longer Monash demos included in thepackage:longer demo andoptionsdemo.
(The source is a little longerand included in therepoand package so not shown here.)
The package is fairly new and susceptible to change, but onCRAN.
The package is onCRAN and can be installedvia a standard
install.packages("binb")and can then be used as a Markdown template via RStudio, or via code such as
library(rmarkdown)draft("myslides.Rmd",template="metropolis",package="binb",edit=FALSE)setwd("myslides")## template creates a new subdirrender("myslides.Rmd")
to create a first draft of a newmyslides.Rmd.
Once installed, the above code examples should work as expected.
Beyond the R package dependencies, a workingpandoc binary is needed. RStudio installsits own copy, otherwise do what is needed on your OS (i.e., something likesudo apt-get install pandoc pandoc-citeproc).
TheMetropolis LaTeX package is used, but we assumethat is is installed via TeXLive, MikTeX or another LaTeX bundle. The LaTeX code for theIQSS Beamer Theme and thePresentoTheme are included (and adapted forRMarkdown use).
These themes use additional (free) fonts you may need to install:
- Metropolis wantsFira Sansbut can proceed with alternate fonts;
- IQSS Beamer Theme wantsLibertinus, see theIQSS Beamer Theme page for details.
- Presento Theme wantsMontserrat,Lato Light(alsohere),Noto Sans,Algreya Sans as the small caps font andInconsolata as a monospaced font.
- Monash wantsCarlito which some systems (such as Ubuntu)provide.
If you useDebian orUbuntu, you canuse the informal font packages I created forFira and FiraSans,Libertinus,Montserrat,AlegreyaSans, respectively.
Most modern desktop systems make it easy to install additional fonts as a user. However,instructions vary so please see for your particular system.
- linl: Linl is not Letter: LaTeX letters from RMarkdown
- pinp: Pinp is not PNAS: Snazzy one-or two column short papers or vignettes
- tint: tint is not tufte: Beautiful pdf or html handout or writeups
and theminm package installing all of them.
Dirk Eddelbuettel, Ista Zahn and Rob Hyndman
GPL (>= 2) for this package.
About
Binb is not Beamer
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.



