pdf.latex | R Documentation |
Construct a "pdf"
file from a "latex"
file. See latex
for concepts.
pdf.latex(latex.object, ..., file, overwrite = TRUE, copy.mode = TRUE, copy.date = TRUE)
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 |
Filename of class "dvi"
Richard M. Heiberger <rmh@temple.edu>
latex
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.