tex2pdf {latexpdf}R Documentation

Convert TEX to PDF

Description

Converts TEX to PDF. tex2pdf accepts the file names of TEX fragments. It reads those fragments, wraps them like documents and makes PDF files.

Usage

tex2pdf(x, stem = NULL, dir = NULL, clean = TRUE, onefile = FALSE, ...)

Arguments

x

vector of file names

stem

the stem of a file name (no extension)

dir

output directory

clean

whether to delete system files after PDF creation

onefile

whether to combine TEX snippets into a single file

...

passed to as.pdf.character

Value

invisible vector of paths to created files

See Also

as.pdf.character

viewtex

Examples

## Not run: 
file <- file.path(tempdir(),'test.tex')
writeLines(as.ltable(head(Theoph)), file)
tex2pdf(file)

## End(Not run)

[Package latexpdf version 0.1.8 Index]