Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Binb is not Beamer

NotificationsYou must be signed in to change notification settings

eddelbuettel/binb

Repository files navigation

CIPackage-LicenseCRANDependenciesDownloadsLast Commit

Motivation

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:

The original LaTeX styles been converted to be directly useable fromRMarkdown

Examples

Metropolis

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

IQSS

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:

Presento

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:

Monash

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

Status

The package is fairly new and susceptible to change, but onCRAN.

Usage

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.

Requirements

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:

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.

See Also

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

Authors

Dirk Eddelbuettel, Ista Zahn and Rob Hyndman

License

GPL (>= 2) for this package.

Releases

No releases published

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp