/legtheme

Rmarkdown class for LEG documents

Primary LanguageTeXOtherNOASSERTION

legtheme 0.2.2

Build Status

LEG template for documents.

Usage

After installing (sse below), you can create a draft document from one of the themes available:

  • beamer_leg is a theme for beamer slides
  • proj_generico is a theme for a generic project or any other similar document in PDF

To create a draft for beamer_leg use:

library(rmarkdown)
draft(file = "slides.Rmd", template = "beamer_leg",
      package = "legtheme", create_dir = FALSE, edit = FALSE)

This will create (in the current directory) a file named slides.Rmd which can be further rendered with

render("slides.Rmd")

Similarly, to create a draft document for the proj_generico theme, just use:

draft(file = "proj.Rmd", template = "proj_generico",
      package = "legtheme", create_dir = FALSE, edit = FALSE)
render("proj.Rmd")

Download and install

The easiest way to install is directly from this repository with the remotes (or devtools) packages

remotes::install_github("leg-ufpr/legtheme")

In any case, there are detailed instructions below for different plataforms.

Linux/Mac

Use the remotes package (available from CRAN) to install automatically from this GitHub repository:

library(remotes)
install_github("leg-ufpr/legtheme")

Alternatively, download the package tarball: legtheme_0.2.2.tar.gz and run from a UNIX terminal (make sure you are on the container file directory):

R CMD INSTALL -l /path/to/your/R/library legtheme_0.2.2.tar.gz

Or, inside an R session:

install.packages("legtheme_0.2.2.tar.gz", repos = NULL,
                 lib.loc = "/path/to/your/R/library",
                 dependencies = TRUE)

Note that -l /path/to/your/R/library in the former and lib.loc = "/path/to/your/R/library" in the latter are optional. Only use it if you want to install in a personal library, other than the standard R library.

Windows

Download Windows binary version: legtheme_0.2.2.zip (do not unzip it under Windows), put the file in your working directory, and from inside R:

install.packages("legtheme_0.2.2.zip", repos = NULL,
                 dependencies = TRUE)

Authors

Documentation

The reference manual in PDF can be found here: legtheme-manual.pdf

License

MIT. See LICENSE