Learn R Programming

xdvir (version 0.1-2)

author: Generate a LaTeX Document

Description

Generate a LaTeX document from a LaTeX fragment.

Usage

author(tex,
       width=NA,
       engine=getOption("xdvir.engine"),
       packages=NULL)

Value

A "LaTeXdocument" object.

Arguments

tex

LaTeX code. See Details.

width

Either NA or a numeric value. The latter is assumed to be a number of inches.

engine

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

packages

The LaTeX packages to be used.

Author

Paul Murrell

Details

author() can be used to generate a complete LaTeX document from a LaTeX fragment, either as a character vector or an external file.

See Also

LaTeXpackage.

Examples

Run this code
author("this is a test")

Run the code above in your browser using DataLab