Skip to content

Commit

Permalink
slight tweaks after #21, and add @efcaguab as a contributor
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Feb 22, 2018
1 parent a8c26c9 commit 22309c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Package: tinytex
Type: Package
Title: Helper Functions to Install and Maintain 'TeX Live', and Compile 'LaTeX' Documents
Version: 0.3.3
Version: 0.3.4
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person(family = "RStudio, Inc.", role = "cph"),
person("Fernando", "Cagua", role = "ctb"),
person()
)
Description: Helper functions to install and maintain the 'LaTeX' distribution
Expand Down
6 changes: 4 additions & 2 deletions R/latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#' will fall back to \code{emulation = TRUE}. You can set the global option
#' \code{options(tinytex.latexmk.emulation = FALSE)} to always avoid emulation
#' (i.e., always use the executable \command{latexmk}).
#'
#' @param file A LaTeX file path.
#' @param engine A LaTeX engine (can be set in the global option
#' \code{tinytex.engine}, e.g., \code{options(tinytex.engine = 'xelatex')}).
Expand All @@ -35,7 +34,9 @@
#' @param install_packages Whether to automatically install missing LaTeX
#' packages found by \code{\link{parse_packages}()} from the LaTeX log. This
#' argument is only for the emulation mode and TeX Live.
#' @param clean Wether to remove non essential files after compilation
#' @param clean Whether to clean up auxiliary files after compilation (can be
#' set in the global option \code{tinytex.clean}, which defaults to
#' \code{TRUE}).
#' @export
latexmk = function(
file, engine = c('pdflatex', 'xelatex', 'lualatex'),
Expand All @@ -61,6 +62,7 @@ latexmk = function(
if (missing(max_times)) max_times = getOption('tinytex.compile.max_times', max_times)
if (missing(bib_engine)) bib_engine = getOption('tinytex.bib_engine', bib_engine)
if (missing(engine_args)) engine_args = getOption('tinytex.engine_args', engine_args)
if (missing(clean)) clean = getOption('tinytex.clean', TRUE)
owd = setwd(dirname(file))
on.exit(setwd(owd), add = TRUE)
file = basename(file)
Expand Down
4 changes: 3 additions & 1 deletion man/latexmk.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22309c8

Please sign in to comment.