Skip to content

RMarkdown Templates for UIUC Theme-Oriented Documents (e.g. UIUC Beamer)

License

Notifications You must be signed in to change notification settings

wal615/uiucthemes

 
 

Repository files navigation

Travis-CI Build StatusCRAN RStudio mirror downloads CRAN_Status_Badge

UIUC Themes for R Markdown (uiucthemes)

The uiucthemes package includes my collection of UIUC themed templates.

Presently, only the UIUC Beamer Theme is embedded within the package.

UIUC Beamer Theme - Example

Within an RMarkdown file, add the following:

---
title: "UIUC Beamer Theme"
short-title: "Beamer Slides"
author: "John and Mary Doe"
short-author: "J & M Doe"
date: 'November 05, 2017'      # Month DD, YYYY (Main Slide)
short-date: '11/05/2017' # MM/DD/YYYY (Lower Right)
institute: "University of Illinois at Urbana-Champaign"
short-institute: "UIUC"
department: "Department of Magic"                # Institute must be defined
license: "Did you license this slide deck? "
section-titles: false                            # Provides slide headings
safe-columns: true                               # Enables special latex macros for columns.
output: 
   uiucthemes::uiuc_beamer
---

# Section title     
## Subsection title 

### Frame Title

Frame content 

**Unordered List**

- [University of Illinois at Urbana-Champaign (UIUC)](http://illinois.edu)
- [Department of Statistics](http://www.stat.illinois.edu/)
- [Illinois Informatics Institute](http://www.informatics.illinois.edu/)

*Ordered List*

1. <http://thecoatlessprofessor.com>
2. <http://smac-group.com>


#### Title for block box

Content inside of a box 

### \LaTeX

\begin{exampleblock}{Binomial Theorem}
\begin{equation} 
  f\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k}
  \label{eq:binom}
\end{equation} 
\end{exampleblock}

Hello Equation \ref{eq:binom}

### Redux \LaTeX 

This theme supports special LaTeX macros `\beingcols` and `\endcols` that allows
for markdown to be blended with LaTeX without triggering the [`raw_tex`](http://pandoc.org/MANUAL.html#raw-tex) 
extension. To enable this feature, the `safe-columns` key in the YML head matter
must be set equal to `true`.

\begincols

\column{.49\linewidth}

- _Hello!_

\column{.49\linewidth}

1. **Goodbye!**

\endcols

Note: You will also need to save the ilogo.pdf file to the folder with the RMarkdown document. The need for this is negated under the instructions given at the end (RStudio creation & using rmarkdown::draft().

This generates:

Materials Referenced

Prerequisites

Using uiucthemes from RStudio

To use uiucthemes from RStudio:

  1. Install the latest RStudio.

  2. Install the uiucthemes package:

install.packages("devtools")
devtools::install_github("rstudio/rmarkdown")
devtools::install_github("coatless/uiucthemes")
  1. Use the New R Markdown dialog to create an article from one of the templates:

New R Markdown

Using uiucthemes outside of RStudio

  1. Install pandoc using the instructions for your platform.

  2. Install the rmarkdown and uiucthemes packages:

install.packages("devtools")
devtools::install_github("rstudio/rmarkdown")
devtools::install_github("coatless/uiucthemes")
  1. Use the rmarkdown::draft function to create articles:
rmarkdown::draft("slide_deck.Rmd", template = "uiuc_beamer", package = "uiucthemes")

About

RMarkdown Templates for UIUC Theme-Oriented Documents (e.g. UIUC Beamer)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TeX 80.3%
  • R 19.7%