pdf.latex {HH} | R 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 |
... |
Optional arguments to |
file |
File name in |
overwrite |
If the file already exists, |
copy.mode , copy.date |
If |
Value
Filename of class "dvi"
Author(s)
Richard M. Heiberger <rmh@temple.edu>
See Also
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)
[Package HH version 3.1-52 Index]