/
tex2pdf.Rd
39 lines (33 loc) · 985 Bytes
/
tex2pdf.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pdf.R
\name{tex2pdf}
\alias{tex2pdf}
\title{Convert TEX to PDF}
\usage{
tex2pdf(x, stem = NULL, dir = NULL, clean = TRUE, onefile = FALSE, ...)
}
\arguments{
\item{x}{vector of file names}
\item{stem}{the stem of a file name (no extension)}
\item{dir}{output directory}
\item{clean}{whether to delete system files after PDF creation}
\item{onefile}{whether to combine TEX snippets into a single file}
\item{...}{passed to \code{\link{as.pdf.character}}}
}
\value{
invisible vector of paths to created files
}
\description{
Converts TEX to PDF. \code{tex2pdf} accepts the file names of TEX fragments. It reads those fragments, wraps them like documents and makes PDF files.
}
\examples{
\dontrun{
file <- file.path(tempdir(),'test.tex')
writeLines(as.ltable(head(Theoph)), file)
tex2pdf(file)
}
}
\seealso{
\code{\link{as.pdf.character}}
\code{\link{viewtex}}
}