Skip to content

Pandocomatic 2.2.0

Latest

Choose a tag to compare

@htdebeer htdebeer released this 19 Nov 12:17
· 2 commits to master since this release
b068329

Added a new command-line option to pandocomatic: --template. This --template option allows you to specify one or more templates to use when converting the given input files. It will tell pandocomatic to ignore any internal pandocomatic templates in the input files and only use the template given by the command-line options for its conversion process. In particular, this allows you to use external pandocomatic templates with files in other formats than pandoc's Markdown format!

The --template option does not work when converting directories.

Usage is straightforward. Assume we have specified templates "web" and "print" in configuration file my-templates.yaml, you can use them like:

  • pandocomatic --config my-templates.yaml --template web input_file.tex
  • pandocomatic --config my-templates.yaml --template web --template print input_file.odt

Feedback welcome.