diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-12-11 10:46:36 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-12-11 10:46:36 -0800 |
commit | 2c886935e68ed948f95206b5830d79ee556fdd94 (patch) | |
tree | 70e20c579eb299358d1c5528a04b368f0f773b69 /README | |
parent | 7929099a7d3da1c9b44a2d7ca1f099f0706171fd (diff) | |
download | pandoc-2c886935e68ed948f95206b5830d79ee556fdd94.tar.gz |
Added more explanation of metadata in README.
Diffstat (limited to 'README')
-rw-r--r-- | README | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1843,6 +1843,23 @@ equivalent of the markdown in the `abstract` field: <p>This is the abstract.</p> <p>It consists of two paragraphs.</p> +Note: The example above will not work with the default templates. +The `author` variable in the templates expects a simple list or string, +and there is no `abstract` variable in most templates. To use these, +you would need to use a custom template with appropriate variables. +For example: + + $for(author)$ + $if(author.name)$ + $author.name$$if(author.affiliation)$ ($author.affiliation$)$endif$ + $else$ + $author$ + $endif$ + $endfor$ + + $if(abstract)$ + Abstract: $abstract$ + $endif$ Backslash escapes ----------------- |