<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Construct a pdf file from a &quot;latex&quot; file.  See Hmisc::latex...</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for pdf.latex"><tr><td>pdf.latex</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>
Construct a pdf file from a &quot;latex&quot; file.  See Hmisc::latex for concepts.
</h2>

<h3>Description</h3>

<p>Construct a <code>"pdf"</code> file from a <code>"latex"</code> file.  See <code>latex</code> for concepts.
</p>


<h3>Usage</h3>

<pre>
pdf.latex(latex.object, ..., file, overwrite = TRUE, copy.mode = TRUE, copy.date = TRUE)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>latex.object</code></td>
<td>

<p>Result from a call to <code>Hmisc::latex()</code>.
</p>
</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>

<p>Optional arguments to <code>Hmisc::dvi()</code>
</p>
</td></tr>
<tr valign="top"><td><code>file</code></td>
<td>

<p>File name in <code>getwd()</code> to place resulting pdf file.
</p>
</td></tr>
<tr valign="top"><td><code>overwrite</code></td>
<td>

<p>If the file already exists, <code>TRUE</code> means replace it.
</p>
</td></tr>
<tr valign="top"><td><code>copy.mode, copy.date</code></td>
<td>

<p>If <code>TRUE</code> copy file mode and date from temporary directory to <code>getwd()</code>.
</p>
</td></tr>
</table>


<h3>Value</h3>

<p>Filename of class <code>"dvi"</code>
</p>


<h3>Author(s)</h3>

<p> Richard M. Heiberger &lt;rmh@temple.edu&gt; </p>


<h3>See Also</h3>

<p><code>latex</code>
</p>


<h3>Examples</h3>

<pre>
## 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 &lt;- 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 &lt;- 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)

</pre>


</body></html>
