A simple letter template for Pandoc
- enclosures list
- carbon-copy list
All of which can be specified in a YAML metadata block. Additional Pandoc/LaTex options can be configured directly in the metadata block. For example:
--- author: Aaron opening: To whom it may concern, closing: Sincerely, address: - 123 Street Rd - Chicago, IL return-address: - My Home - 456 Road St. - New York, NY # ADDITIONAL ARGUMENTS links-as-notes: true ...
Note that each address component should start with a hyphen. The provided example letter can be compiled with the following command:
pandoc --template=template-letter.tex example/letter.md -o example/letter.pdf
You can see the PDF output here.
The following can be set either as variables when executing
pandoc or added to the YAML metadata.
: Name and address of the recipient; takes a list for a multi-line address.
: Writer of the letter; can take a list for a multi-line signature.
: Recipients to be carbon-copied; can take a list for multiple recipients.
: Text for the complementary close.
: Amount for closing signature block to be intended from left margin.
: Custom date (current date will be automatically inserted if not specified).
: List of enclosures.
: Image file to be used as letterhead (requires the wallpaper package), applied only to the first page.
: Text for the salutation.
: Text to be added at the end of the letter as a postscript.
: Address of the sender: takes a list to allow a multi-line address.
: Image file for a signature.
: Allows adjustment of vertical space surrounding signature.
GPL-3 for pandoc-letter and the underlying Pandoc template.