rte.compile.latex: Function to compile a LaTeX file

Description Usage Arguments Value Examples

Description

This function will first check for the flavor of latex, type of OS and then use the proper command for pdflatex compilation

Usage

1
2
rte.compile.latex(f.in, pdf.dir.out = "PdfOut", do.clean.up = T,
  latex.compile.fct = "texi2pdf")

Arguments

f.in

The location and name of latex file

pdf.dir.out

The name of the folder for the output pdf

do.clean.up

Clean (delete) auxiliary latex files? (TRUE or NOT)

latex.compile.fct

Option for function compiling pdf ('texi2pdf' or 'custom')

Value

A flag, TRUE if the latex compilation was a sucess and FALSE if not

Examples

1
2
3
4
5
f.in <- system.file("extdata", "MyRandomTest_examdesign.tex", package = "RndTexExams")
pdf.dir.out <- 'PdfOut'

rte.compile.latex(f.in = f.in,
                 pdf.dir.out =  pdf.dir.out,latex.compile.fct = 'custom')

RndTexExams documentation built on May 2, 2019, 6:10 a.m.