Learn R Programming

xdvir (version 0.1-2)

typeset: Typeset a LaTeX Document

Description

Typeset a LaTeX document, either from a character value or from an external file.

Usage

typeset(tex,
        engine=getOption("xdvir.engine"),
        ...)
# S3 method for LaTeXdocument
typeset(tex,
        engine=NULL,
        texFile=NULL,
        ...)
# S3 method for character
typeset(tex,
        engine=NULL,
        texFile=NULL,
        sig=FALSE, 
        ...)

Value

A "DVI" object as produced by readDVI.

Arguments

tex

LaTeX code. See Details.

engine

The TeX engine that should be used to typeset the LaTeX. May be the name of a TeX engine (character) or a "TeXengine" object.

texFile

Name of a file to use for LaTeX code.

sig

Add a signature to the DVI output?

...

Arguments passed to other typeset methods.

Author

Paul Murrell

Details

typeset() expects input to be either a "TeXdocument", as generated by author, or a character value containing LaTeX code.

See Also

LaTeXpackage.

Examples

Run this code
if (FALSE) {
# Requires TeX installation
tex <- author("this is a test")
typeset(tex)
}

Run the code above in your browser using DataLab