grid.latex | R Documentation |
Render LaTeX code in R graphics.
latexGrob(tex, x = 0.5, y = 0.5, default.units = "npc", just = "centre", rot = 0, device = names(dev.cur()), name = NULL, preamble=getOption("dvir.preamble"), postamble=getOption("dvir.postamble"), engine=latexEngine, tinytex=FALSE, file=NULL, initFonts=getOption("dvir.initFonts"), quiet=TRUE) grid.latex(...)
tex |
A character value containing LaTeX code. |
x, y |
Numeric values or units specifying where to draw the output. |
default.units |
Units to use if |
just |
Justification of the output relative to the
|
rot |
Angle of rotation (degrees). |
device |
Character value describing the name of the device that the output is to be drawn on. |
name |
Character value giving name for the grob. |
preamble,postamble |
LaTeX code that is placed around |
engine |
The TeX engine that is used for processing the LaTeX code. |
tinytex |
Should dvir attempt to use tinytex to perform the processing? |
file |
The name of a file to read LaTeX code from. If |
initFonts |
Whether to reset the font cache; set to |
quiet |
Suppress TeX engine output? |
... |
Arguments passed to |
This function takes LaTeX code as input, processes the LaTeX code to produce a DVI file, reads the DVI file, and renders the result using grid.
The default engine is the latexEngine
, which runs
latex
to generate DVI; an alternative
is the luatexEngine
, which runs dvilualatex
to generate DVI.
A "DVIgrob"
object.
Paul Murrell
readDVI
, grid.dvi
## Not run: grid.latex("$x - \\mu$") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.