author: Generate a LaTeX Document

View source: R/author.R

authorR Documentation

Generate a LaTeX Document

Description

Generate a LaTeX document from a LaTeX fragment.

Usage

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

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.

Details

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

Value

A "LaTeXdocument" object.

Author(s)

Paul Murrell

See Also

LaTeXpackage.

Examples

author("this is a test")

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