View source: R/prettifyLATEX.R
| prettifyLaTeX | R Documentation |
Prettify LaTeX code, including Sweave code, sty files,
cls files, and bib files.
prettifyLaTeX(contents = NA, tabSize = NULL, log = FALSE)
contents |
the code to be prettified; there are three possibilities for
this argument:
|
tabSize |
number of spaces of the indentation (usually |
log |
logical, whether to generate a log file (it will be named
|
The pretty code in a character string.
This function requires the command line utility latexindent.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.