R Markdown drivers to add concordance
pdf_documentC.Rd
The pdf_documentC
driver replaces the like-named rmarkdown
driver with one that outputs Commonmark rather than Pandoc Markdown.
Commonmark is a dialect of Markdown for which the Pandoc driver
for Commonmark supports output of source position information. The latex_formatC
does the same
for the markdown::latex_format
driver.
By using one of these functions as your output driver, you can get that
in your own documents.
Usage
pdf_documentC(latex_engine = "pdflatex",
sourcepos = TRUE,
defineSconcordance = TRUE,
run_latex = TRUE, ...)
latex_formatC(latex_engine = "pdflatex",
options = list(sourcepos = TRUE),
defineSconcordance = TRUE,
run_latex = TRUE, ...)
Arguments
- latex_engine
Command to convert
.tex
file to.pdf
.- sourcepos
Whether to include source position information.
- options
Options to pass to the underlying driver;
"sourcepos"
defaults toTRUE
.- defineSconcordance
If
TRUE
, insert a definition of the\Sconcordance
macro just before\begin{document}
.- run_latex
Whether to run the
latex_engine
to produce a PDF.- ...
Other arguments to pass to the base driver.