typeset: Generate DVI File from TeX Code

View source: R/grid.R

typesetR Documentation

Generate DVI File from TeX Code

Description

Generate a DVI File from TeX Code and return the name of the DVI file.

Usage

typeset(tex, 
        preamble=getOption("dvir.preamble"),
        postamble=getOption("dvir.postamble"),
        engine=latexEngine, tinytex=FALSE, file=NULL, quiet=TRUE) 

Arguments

tex

A character value containing LaTeX code.

preamble,postamble

LaTeX code that is placed around tex before processing.

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 tex is missing, this file is read.

quiet

Suppress TeX engine output?

Details

This function takes TeX code as input, creates a TeX document, and processes the TeX document to produce a DVI file.

Value

The name of the DVI file.

Author(s)

Paul Murrell

See Also

readDVI, grid.dvi

Examples

## Not run: 

typeset("$x - \\mu$")

## End(Not run)

pmur002/dvir documentation built on Sept. 2, 2022, 3:03 p.m.