<!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: Coerces statquote objects to strings suitable for LaTeX</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="https://rpkg.net/assets/examples.css" />
</head><body>

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

<h2>Coerces statquote objects to strings suitable for LaTeX</h2>

<h3>Description</h3>

<p>This function coerces statquote objects to strings suitable for rendering in LaTeX.
Quotes and (potential LaTeX) sources are placed within suitable &quot;<code>epigraph</code>&quot; output
format via the <code>sprintf</code> function.
</p>


<h3>Usage</h3>

<pre>
as.latex(quotes, form = "\\epigraph{%s}{%s}\n\n", cite = TRUE)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>quotes</code></td>
<td>
<p>an object of class <code>statquote</code> returned from functions such as
<code>search_quotes</code> or <code>statquote</code></p>
</td></tr>
<tr valign="top"><td><code>form</code></td>
<td>
<p>structure of the LaTeX output for the text (first argument)
and source (second argument) passed to <code>sprintf</code></p>
</td></tr>
<tr valign="top"><td><code>cite</code></td>
<td>
<p>logical; should the <code>cite</code> field be included in the source output?</p>
</td></tr>
</table>


<h3>Value</h3>

<p>character vector of formatted LaTeX quotes
</p>


<h3>Author(s)</h3>

<p>Phil Chalmers
</p>


<h3>See Also</h3>

<p><code>as.data.frame.statquote</code>, <code>as.markdown</code>
</p>


<h3>Examples</h3>

<pre>

ll &lt;- search_quotes("Tukey")
as.latex(ll)

</pre>


</body></html>
