R: Compiles a LaTeX file

compileLaTeX {R.rsp} | R Documentation

## Compiles a LaTeX file

### Description

Compiles a LaTeX file to either PDF or DVI.

### Usage

    ## Default S3 method:
    compileLaTeX(filename, path=NULL, format=c("pdf", "dvi"), clean=FALSE, quiet=TRUE,
      texinputs=NULL, ..., outPath=".", verbose=FALSE)

### Arguments

`filename, path` | The filename and (optional) path of the LaTeX document to be compiled. Only *.tex and *.ltx filename extensions are allowed.
`format` | A `character` string specifying the output format.
`clean, quiet, texinputs` | Additional arguments passed to `texi2dvi`.
`...` | Not used.
`outPath` | The output and working directory.
`verbose` | See `Verbose`.

### Value

Returns the pathname of the generated (PDF or DVI) document.

### Supported filename extensions

Internally `texi2dvi` is used, which in turn uses `Sys.which("texi2dvi")` if available. Most known implementation of the latter will only recognize LaTeX documents with filename extensions *.tex and *.ltx (case sensitive). (Any other filenames will be compiled with 'texinfo', which is not a LaTeX compiler.)

### Author(s)

Henrik Bengtsson

### See Also

Internally, `texi2dvi` is used. To compile Sweave LaTeX documents, `compileSweave`().

[Package R.rsp version 0.41.0 Index]