Skip to content

JustinW80/pandoc-letter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

A simple letter template for Pandoc

This template allows you to write letters in Markdown and convert them to nice looking PDFs using Pandoc and LaTeX. It's basically just a copy of Pandoc's default LaTeX template, slightly modified to accept arguments used in the LaTeX letter class, including:

  • opening
  • closing
  • address
  • return-address

All of which can be specified in a YAML 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
...

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 -V blockquote example/letter.md -o example/letter.pdf

You can see the PDF output here.

Extra features

-V blockquote : Nice looking blockquotes à la bootstrap

-V date=CUSTOMDATE : Insert a custom date in place of today's date

About

A simple letter template for Pandoc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 100.0%