@@ -1074,6 +1074,22 @@ Some variables are set automatically by pandoc. These vary somewhat
1074depending on the output format, but include metadata fields as well
1074depending on the output format, but include metadata fields as well
1075as the following:
1075as the following:
1077+`sourcefile`, `outputfile`
1078+: source and destination filenames, as given on the command line.
1079+ `sourcefile` can also be a list if input comes from multiple files, or empty
1080+ if input is from stdin. You can use the following snippet in your template
1081+ to distinguish them:
1091+ Similarly, `outputfile` can be `-` if output goes to the terminal.
1077`title`, `author`, `date`
1093`title`, `author`, `date`
1078: allow identification of basic aspects of the document. Included
1094: allow identification of basic aspects of the document. Included
1079 in PDF metadata through LaTeX and ConTeXt. These can be set
1095 in PDF metadata through LaTeX and ConTeXt. These can be set