RndTexExams (version 1.4.1)

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

Description

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

Usage

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

Run this code
# NOT RUN {
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')

# }

Run the code above in your browser using DataLab