I would like to customize the default LaTeX template used by rmarkdown's pdf_document. I have looked through the source code of the rmarkdown package and it does not appear to be there. The only .tex
files there are the following.
inst/rmd/latex/subtitle.tex
inst/rmd/fragment/default.tex
These are just fragments.
In the past, it seems like the template was available in inst/rmd
(see https://stackoverflow.com/a/52779863 ).
Is the default template for pdf_document just using pandoc's default template? I presume not.
jdb
February 27, 2020, 6:36pm
2
It seems as of 2019-11-25, rmarkdown is using (and patching) pandoc's default template
committed 11:45PM - 25 Nov 19 UTC
* Patch pandoc LaTeX template
Patch the pandoc LaTeX template to include the … document subtitle (unnecessary with pandoc 2.6 onwards) using `--include-in-header` rather than overwriting its built-in template, avoiding compability problems with newer versions of pandoc. Closes #1510.
* Missing quotes
* Fix changelog typo
* Ensure self-contained is set for LaTeX
* Less verbose graphics setting
* move news of #1563 to v1.18
* cosmetic
* force --self-contained regardless of the template
* factor out pandoc_path_arg(rmarkdown_system_file(...)) to system_file_arg()
* support compact titles via a header include compact-title.tex
I didn't consider ef41eb493b6a87e68bd73daa658d8b39efd9b621. I think it is a relatively minor issue and not worth the effort (if we have to bring it back, we need to test has_yaml_parameter(, 'author') and has_yaml_parameter(, 'date'), and conditionally include more titling hacks)
* mention the PR #252 which introduced the titling hacks
* cosmetic
* shouldn't change the value of the `template` argument when it is `default`
* add Andrew Dunning to the list of contributors
* also closes #1649
2 Likes
system
Closed
March 8, 2020, 10:30pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.