git.iko.soy/typeable/pandoc
on master help sign in
cusomizing-pandoc.md: streamline template text
commitf07ae68558aafe717130817473eb2c47fb3ab9de authorMauro Bieg <mb21@users.noreply.github.com> dateSat 17 Nov 2018, 14:39 (8 years ago) parent0466c0a
1 file changed+3−11
doc/customizing-pandoc.md+3−11
doc/customizing-pandoc.md+3−11
@@ -21,20 +21,12 @@ Pandoc comes with a default template for (almost) every output
2121format. A template is a plain text file containing variables
2222that are replaced by text generated by pandoc. For example,
2323the variable `$body$` will be replaced by the document body,
24−and `$title$` by the title from metadata. Variables will
25−be automatically populated by the contents of like-named
26−metadata fields (with proper escaping). (See
27−[YAML metadata blocks](/MANUAL.html#extension-yaml_metadata_block)
28−for documentation on setting metafields in pandoc markdown
29−documents; the command line option
30−[`--metadata`](/MANUAL.html#option--metadata) can also be
31−used.) Values for variables can also be specified directly
32−from the command line using `--variable` (which does no escaping).
24+and `$title$` by the title from metadata.
3325
3426To look at the default template for an output format, you can do
3527`pandoc -D FORMAT`, where `FORMAT` is replaced by the name of
36−the format. You can also replace the defaults with your
37−own custom templates, either by using the `--template` option
28+the format. For example `pandoc -D latex`. You can also use your
29+own template instead, either by using the `--template` option
3830or by putting the custom template in your user data directory
3931(on linux and macOS, `~/.pandoc/templates/`).
4032