pdf.latex: Construct a pdf file from a "latex" file. See Hmisc::latex...

View source: R/latex.array.R

pdf.latexR Documentation

Construct a pdf file from a "latex" file. See Hmisc::latex for concepts.

Description

Construct a "pdf" file from a "latex" file. See latex for concepts.

Usage

pdf.latex(latex.object, ..., file, overwrite = TRUE, copy.mode = TRUE, copy.date = TRUE)

Arguments

latex.object

Result from a call to Hmisc::latex().

...

Optional arguments to Hmisc::dvi()

file

File name in getwd() to place resulting pdf file.

overwrite

If the file already exists, TRUE means replace it.

copy.mode, copy.date

If TRUE copy file mode and date from temporary directory to getwd().

Value

Filename of class "dvi"

Author(s)

Richard M. Heiberger <rmh@temple.edu>

See Also

latex

Examples

## you will normally need these options.  See ?Hmisc::latex for details.
options(latexcmd='pdflatex')
options(dviExtension='pdf')
options(xdvicmd='open')  ## Macintosh, Windows,      SMP linux

## Not run: 
## these examples place files in your current working directory

## matrix
tmp <- array(1:20, c(4,5), list(LETTERS[1:4], LETTERS[5:9]))
tmp

pdf.latex(latex(tmp)) ## for matrix, accept the default structure.tex and structure.pdf filenames.

pdf.latex(latex(tmp, title="tmp")) ## specify name of .tex and .pdf file.



## 3D array
tmp3 <- array(1:40, c(4,5,2), list(LETTERS[1:4], LETTERS[5:9], LETTERS[10:11]))
tmp3

pdf.latex(latex(tmp3)) ## for array, the default base filename is the
                       ##  name of the argument, hence tmp3.tex and tmp3.pdf

pdf.latex(latex(tmp3, title="somethingelse")) ## or specify somethingelse

## End(Not run)


HH documentation built on May 29, 2024, 6:24 a.m.

Related to pdf.latex in HH...