项目作者: cbgoodman

项目描述 :
Northern Illinois University theme for `xaringan` (remark.js)
高级语言: CSS
项目地址: git://github.com/cbgoodman/niu_xaringan.git
创建时间: 2020-08-22T23:29:46Z
项目社区:https://github.com/cbgoodman/niu_xaringan

开源协议:MIT License

下载


NIU Xaringan

A minimalist xaringan theme based on Northern Illinois University‘s branding. There are two flavors:

  1. A light theme (niu.css and niu-fonts.css) suitable for viewing on the web and small in-person presentations
  2. A dark theme (niudark.css and niudark-fonts.css) suitable for projecting on large screens.

All relevant files can be found in the /assets/ folder. Minimially, niu.css, niu-fonts.css, and
NIU_horz_3Clr.png are required to build the light (default) theme.

Prerequisites

  • A distribution of R - If you’re here, I think that’s a given. But just in case, grab the latest version here.
  • RStudio IDE - xaringan uses RMarkdown and knitr so RStudio is pretty much required.
  • xaringan - either from CRAN or the development version from Github.
    1. install.packages(xaringan)
    or
    1. devtools::install_github('yihui/xaringan')

Using niu_xaringan

Include the following information in the YAML preamble to your presentation.

Light theme:

  1. output:
  2. xaringan::moon_reader:
  3. lib_dir: libs
  4. css: [default, "assets/niu.css", "assets/niu-fonts.css"]

Dark theme:

  1. output:
  2. xaringan::moon_reader:
  3. lib_dir: libs
  4. css: [default, "assets/niudark.css", "assets/niudark-fonts.css"]

There are far more options that can be found in the example presentations here for the light theme and here for the dark theme.

Acknowledgements

Big shoutout to Garth Tarr‘s sydney_xaringan for the inspiration (which appears loosely based on the hygge.css template in xaringan). Much of the boilerplate display/testing slides are from Garth. Many thanks.