typeset: Typeset a LaTeX Document

View source: R/typeset.R

typesetR Documentation

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 class 'LaTeXdocument'
typeset(tex,
        engine=NULL,
        texFile=NULL,
        ...)
## S3 method for class 'character'
typeset(tex,
        engine=NULL,
        texFile=NULL,
        sig=FALSE, 
        ...)

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.

Details

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

Value

A "DVI" object as produced by readDVI.

Author(s)

Paul Murrell

See Also

LaTeXpackage.

Examples

## Not run: 
# Requires TeX installation
tex <- author("this is a test")
typeset(tex)

## End(Not run)

xdvir documentation built on Aug. 8, 2025, 7:12 p.m.