powered by
Converts TEX to PNG. tex2png accepts the file names of TEX fragments. It reads those fragments, wraps them like documents and makes PNG files (converted from PDF files).
tex2png
tex2png( x, stem = NULL, dir = NULL, clean = TRUE, onefile = FALSE, replace = TRUE, ... )
vector of file names
the stem of a file name (no extension)
output directory
whether to delete system files after PNG creation
whether to combine tex snippets into a single file
whether to delete the intermediate PDF files
passed to tex2pdf and ghostconvert
tex2pdf
ghostconvert
as.png.character
viewtex
if (FALSE) { file <- file.path(tempdir(),'test.tex') writeLines(as.ltable(head(Theoph)), file) tex2png(file, gs_cmd = 'mgs') }
Run the code above in your browser using DataLab