as_preview.latex | R Documentation |
Preview spork after conversion to latex.
Creates and displays a temporary png file, after
conversion from pdf using ghostconvert
.
## S3 method for class 'latex'
as_preview(
x,
wide = 70,
long = 20,
stem = "latex_preview",
dir = tempdir(),
gs_cmd = getOption("gs_cmd", "mgs"),
morePreamble = ifelse(getOption("spork_upgreek", TRUE), "\\usepackage{upgreek}\n",
NULL),
prolog = "\\begin{center}",
epilog = "\\end{center}",
...
)
x |
spork; see |
wide |
nominal page width |
long |
nominal page length |
dir |
a working directory; see |
gs_cmd |
ghostscript command; see |
morePreamble |
additional text to insert in preamble; passed to |
prolog |
passed to |
epilog |
passed to |
... |
passed arguments |
invisible filepath
Other preview:
as.png.plotmath()
,
as.png.spork()
,
as_preview()
,
as_preview.html()
,
as_preview.plotmath()
,
as_previews()
,
as_previews.default()
,
as_previews.spork()
,
ggplot.plotmath()
,
ggplot.spork()
# library(magrittr)
# 'one joule (Omega) ~ 1 kg*m^2./s^2' %>%
# as_spork %>%
# as_latex %>%
#as_preview
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.