viewtex: Render and View TEX Files

Description Usage Arguments See Also Examples

View source: R/pdf.R

Description

Renders and TEX files as PDF and opens them for viewing.

Usage

1
viewtex(x, delete = TRUE, latency = 1, png = FALSE, ...)

Arguments

x

vector of file names

delete

whether temporary pdf (_doc.pdf) should persist

latency

how many seconds to wait before deleting temporary PDF,

png

view as png instead of pdf

...

passed to tex2pdf

See Also

tex2pdf

tex2png

as.pdf.character

Examples

1
2
3
4
5
6
7
file <- file.path(tempdir(),'test.tex')
writeLines(as.ltable(head(Theoph)), file)
## Not run: 
viewtex(file)
viewtex(file, png = TRUE, gs_cmd = 'mgs')

## End(Not run)

bergsmat/latexpdf documentation built on Jan. 16, 2022, 2:14 p.m.