rticles icon indicating copy to clipboard operation
rticles copied to clipboard

Update LaTeX templates

Open cderv opened this issue 4 years ago • 2 comments

Pandoc 2.14 has updated its tex template. https://pandoc.org/releases.html

We should have a look to see what may need to be modified in our templates

cderv avatar Jun 02 '21 13:06 cderv

Three ideas:

  1. Check if the diff of a new Pandoc releases is relevant semi-automatically for all templates.
  2. Add test cases, i.e. check if existing templates yield the same, expected output with a new Pandoc release (this would spot changes in variables passed from Pandoc to the template etc.).
  3. Modularize, like Quarto is doing. Basically, they seem to break down each new Pandoc LaTeX template into what they call partials (sub-templates) and compile the entire template by importing those.

See also the GitHub repository and instructions for new formats.

This allows replacing just e.g. the TeX code for tables. The basic mechanism is that Quarto uses the default "partial" to assemble the complete template, unless a format includes a modified partial.

The advantage of this is that the individual adjustments become much more independent from the evolution of the Pandoc template as a whole.

The downside is that you may need to tweak RStudio to implement the mechanism (but that sounds not too difficult).

mfhepp avatar Jul 23 '22 16:07 mfhepp

Some updates has been done. Ideas for improvement has been moved to new issue to track

cderv avatar May 02 '23 10:05 cderv

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

github-actions[bot] avatar Oct 30 '23 03:10 github-actions[bot]