diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:15:33 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:15:33 +0000 |
commit | 5ba6c0911cb44c3a095bc3cedc51e4afa79c6b30 (patch) | |
tree | 7b6d47fe8c560e9cf4121da03754a254c49a7079 /man/man1/pandoc.1.md | |
parent | 16f0604beca57b17c6e1fa330930a903a4fd81c7 (diff) | |
download | pandoc-5ba6c0911cb44c3a095bc3cedc51e4afa79c6b30.tar.gz |
Added $for$ to template system.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1720 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'man/man1/pandoc.1.md')
-rw-r--r-- | man/man1/pandoc.1.md | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/man/man1/pandoc.1.md b/man/man1/pandoc.1.md index eb8aa3fdc..dad9eb9d3 100644 --- a/man/man1/pandoc.1.md +++ b/man/man1/pandoc.1.md @@ -253,6 +253,8 @@ the string `$title$` in will be replaced by the document title. +To write a literal `$` in a template, use `$$`. + Some variables are set automatically by pandoc. These vary somewhat depending on the output format, but include: @@ -266,12 +268,10 @@ depending on the output format, but include: : body of document `title` : title of document, as specified in title block -`authors` -: authors of document, as specified in title block +`author` +: author of document, as specified in title block `date` : date of document, as specified in title block -`css` -: links to CSS files, as specified using `-c/--css` Variables may be set at the command line using the `-V/--variable` option. This allows users to include custom variables in their @@ -290,7 +290,17 @@ value; otherwise it will include `Y`. `X` and `Y` are placeholders for any valid template text, and may include interpolated variables or other conditionals. The `$else$` section may be omitted. -To write a literal `$` in a template, use `$$`. +When variables can have multiple values (for example, `author` in +a multi-author document), you can use the `$for$` keyword: + + $for(author)$ + <meta name="author" content="$author$" /> + $endfor$ + +You can optionally specify a separator to be used between +consecutive items: + + $for(author)$$author$$sep$, $endfor$ # SEE ALSO |