All Projects → aaronwolen → Pandoc Letter

aaronwolen / Pandoc Letter

Licence: gpl-3.0
Pandoc template for writing letters in markdown

Projects that are alternatives of or similar to Pandoc Letter

Pandoc Latex Template
A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
Stars: ✭ 3,750 (+1137.62%)
Mutual labels:  markdown, pandoc, latex-template
Pandoc Markdown Template
Markdown templates for Pandoc
Stars: ✭ 135 (-55.45%)
Mutual labels:  markdown, pandoc
Panflute
An Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions
Stars: ✭ 286 (-5.61%)
Mutual labels:  markdown, pandoc
Awesome Scientific Writing
⌨️ A curated list of awesome tools, demos and resources to go beyond LaTeX
Stars: ✭ 162 (-46.53%)
Mutual labels:  markdown, pandoc
Oscp Exam Report Template Markdown
📙 Markdown Templates for Offensive Security OSCP, OSWE, OSCE, OSEE, OSWP exam report
Stars: ✭ 2,066 (+581.85%)
Mutual labels:  markdown, pandoc
Pandiff
Prose diffs for any document format supported by Pandoc
Stars: ✭ 110 (-63.7%)
Mutual labels:  markdown, pandoc
Pandoc Action Example
using the pandoc document converter on GitHub Actions
Stars: ✭ 131 (-56.77%)
Mutual labels:  markdown, pandoc
Tufte Pandoc Css
Starter files for using Pandoc Markdown with Tufte CSS
Stars: ✭ 215 (-29.04%)
Mutual labels:  markdown, pandoc
Pandoc Book Template
A simple Pandoc template to build documents and ebooks.
Stars: ✭ 214 (-29.37%)
Mutual labels:  markdown, pandoc
Pandoc Markdown Book Template
A template for creating epub books from markdown using pandoc.
Stars: ✭ 191 (-36.96%)
Mutual labels:  markdown, pandoc
Markdown Cv
Simple Markdown CV / Resume
Stars: ✭ 97 (-67.99%)
Mutual labels:  markdown, pandoc
Pander
An R Pandoc Writer: Convert arbitrary R objects into markdown
Stars: ✭ 267 (-11.88%)
Mutual labels:  markdown, pandoc
Science.md
An easy framework for drafting scientific documents: Write (Markdown), Compile (PDF, Word, HTML), Share.
Stars: ✭ 90 (-70.3%)
Mutual labels:  markdown, pandoc
Patat
Terminal-based presentations using Pandoc
Stars: ✭ 1,725 (+469.31%)
Mutual labels:  markdown, pandoc
Linl
Linl Is Not Letter -- Markdown-based LaTeX Letter Template
Stars: ✭ 84 (-72.28%)
Mutual labels:  markdown, pandoc
Pandoc Sidenote
Convert Pandoc Markdown-style footnotes into sidenotes
Stars: ✭ 78 (-74.26%)
Mutual labels:  markdown, pandoc
Markdeck
presentations as code - author cool slide decks, text-only, offline-ready, collaborative
Stars: ✭ 1,159 (+282.51%)
Mutual labels:  markdown, pandoc
Ieee Pandoc Template
IEEE paper template for pandoc
Stars: ✭ 76 (-74.92%)
Mutual labels:  markdown, pandoc
Rmarkdown
Dynamic Documents for R
Stars: ✭ 2,319 (+665.35%)
Mutual labels:  markdown, pandoc
Manubot
Python utilities for Manubot: Manuscripts, open and automated
Stars: ✭ 260 (-14.19%)
Mutual labels:  markdown, pandoc

A simple letter template for Pandoc

Build Status Package-License

Authors: Aaron Wolen and Andrew Dunning

This template allows you to write letters in Markdown and convert them to nice looking PDFs using Pandoc and LaTeX. It accepts arguments used in the LaTeX letter class, including:

  • opening
  • closing
  • address
  • return-address
  • postscript
  • 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.

Features

The following can be set either as variables when executing pandoc or added to the YAML metadata.

address : Name and address of the recipient; takes a list for a multi-line address.

subject : Subject of the letter.

author : Writer of the letter; can take a list for a multi-line signature.

blockquote : Changes style of block quotations to match bootstrap (requires the mdframed package).

cc : Recipients to be carbon-copied; can take a list for multiple recipients.

closing : Text for the complementary close.

closing-indentation : Amount for closing signature block to be intended from left margin.

date : Custom date (current date will be automatically inserted if not specified).

encl : List of enclosures.

letterhead : Image file to be used as letterhead (requires the wallpaper package), applied only to the first page.

opening : Text for the salutation.

ps : Text to be added at the end of the letter as a postscript.

return-address : Address of the sender: takes a list to allow a multi-line address.

signature : Image file for a signature.

signature-before, signature-after : Allows adjustment of vertical space surrounding signature.

signature-width : Specify width of signature image file.

Running with Docker

This requires Docker to be installed.

After cloning the repository build the container. cd to the cloned directory and run

  docker build --tag=pandoc-letter .

This has to be executed only once per machine.

To create a letter run

    docker run --volume <path_to_folder_with_letter.md>:/data pandoc-letter --template=template-letter.tex letter.md -o letter.pdf

Make sure you insert the full folder path where letter.md resides.

Images, Attachments

To insert an image into the body of your letter:

![](lalune.jpg){ width=50% }

The curly brackets are optional. This inserts the image into the location of the command, above the signature.

The recommended way to attach images on a new page after the signature is to compile a separate pdf file by other means than pandoc-letter, and then attach the two pdf files with whatever utilities you are familiar with.

License

GPL-3 for pandoc-letter and the underlying Pandoc template.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].