View source: R/writeTexToPDF.R
writeTexToPDF | R Documentation |
Function to create a pdf file from tex.
writeTexToPDF(
template_tex_str = NULL,
template_tex_file = NULL,
tex_str = NULL,
tex_file = NULL,
insertion_point = "&&tex_str",
pdf_name = NULL,
cleanup = TRUE
)
template_tex_str |
|
template_tex_file |
|
tex_str |
|
tex_file |
|
insertion_point |
|
pdf_name |
|
cleanup |
|
This function inserts a tex string (in tex_str or tex_file) into a string version of a tex template
(template_tex_str) or file (template_tex_file) and then converts the resulting tex file to a pdf. The insertion
point in the template must be indicated by the value of insertion_point
.
To use a 'template' without a '&&tex_str' insertion marker, leave tex_str and tex_file as NULLs.
The intermediate files are named "tex_DUMMY_TEX_FILE" with extensions .tex, .aux, .log, and .pdf. The pdf file is copied to the file given by pdf_name (which defaults to the tex_file name with a pdf extension, or 'tex_str.pdf' if tex_file is NULL).
Invisibly, the tex string used to create the pdf document.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.