Usage
tex2image(tex, format = "png", width = 6, pt = 12, density = 350, dir = NULL, tdir = NULL, idir = NULL, width.border = 0L, col.border = "white", resize = 650, shave = 2, packages = c("amsmath", "amssymb", "amsfonts"), header, header2 = NULL, Sweave = TRUE, show = TRUE, name = "tex2image")
Arguments
tex
character vector or list of character vectors. Each character
vector is either the name of a LaTeX file or a vector containing LaTeX
code directly.
format
character. Suffix for the type of graphic to convert to.
width
numeric. Width of the text in inch.
pt
numeric. Pointsize of the text.
density
numeric. Resolution density of the image.
dir
character specifying the output directory.
tdir
character specifying a temporary directory, by default
this is chosen via tempdir
. idir
character specifying the path additional LaTeX inputs
required.
width.border
numeric. Width of the framebox border.
col.border
character. Color of framebox border.
resize
numeric. Number of pixels for resizing the image.
shave
numeric. Number of pixels to shave the framebox from the edges.
packages
character. Names of LaTeX packages to be included.
header
character. LaTeX code to be included in the header of the
LaTeX file before the beginning of the document. By default the parindent
is set to 0 and sans serif fonts (phv) are used for both text and math.
header2
character. LaTeX code to be included in the header of the
LaTeX file after the beginning of the document.
Sweave
logical. Should the LaTeX package Sweave.sty be included
in the header?
show
logical. Show the resulting image(s) using browseURL
. name
character. Base name of the image file.