diff options
author | Mauro Bieg <mb21@users.noreply.github.com> | 2018-11-17 14:39:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-17 14:39:26 +0100 |
commit | f07ae68558aafe717130817473eb2c47fb3ab9de (patch) | |
tree | 0fa48a9b99d1d26303fb38e2826c6e2dab41469d /doc/customizing-pandoc.md | |
parent | 0466c0a8b02b7d7cf0e9e9ba530e1250e24881ff (diff) | |
download | pandoc-f07ae68558aafe717130817473eb2c47fb3ab9de.tar.gz |
cusomizing-pandoc.md: streamline template text
Diffstat (limited to 'doc/customizing-pandoc.md')
-rw-r--r-- | doc/customizing-pandoc.md | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/doc/customizing-pandoc.md b/doc/customizing-pandoc.md index fc0e57edd..62094e5ce 100644 --- a/doc/customizing-pandoc.md +++ b/doc/customizing-pandoc.md @@ -21,20 +21,12 @@ Pandoc comes with a default template for (almost) every output format. A template is a plain text file containing variables that are replaced by text generated by pandoc. For example, the variable `$body$` will be replaced by the document body, -and `$title$` by the title from metadata. Variables will -be automatically populated by the contents of like-named -metadata fields (with proper escaping). (See -[YAML metadata blocks](/MANUAL.html#extension-yaml_metadata_block) -for documentation on setting metafields in pandoc markdown -documents; the command line option -[`--metadata`](/MANUAL.html#option--metadata) can also be -used.) Values for variables can also be specified directly -from the command line using `--variable` (which does no escaping). +and `$title$` by the title from metadata. To look at the default template for an output format, you can do `pandoc -D FORMAT`, where `FORMAT` is replaced by the name of -the format. You can also replace the defaults with your -own custom templates, either by using the `--template` option +the format. For example `pandoc -D latex`. You can also use your +own template instead, either by using the `--template` option or by putting the custom template in your user data directory (on linux and macOS, `~/.pandoc/templates/`). |