Skip to content
Browse files
Use YAML straight in the markdown file (closes #7)
  • Loading branch information
mrzool committed Dec 13, 2015
1 parent 13adb2a commit 4390e501534270a10d6f38efda4fdf1cb1575004
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
@@ -17,8 +17,8 @@ To install pandoc on Mac OS X, run `brew install pandoc`. To install it on Linux

## Getting started

1. Edit `details.yml` with your details, your recipient's details, and the desired settings.
2. Open `` and write your letter in markdown.
1. Open `` and fill the YAML frontmatter with your details, your recipient's details, optional subject line, and the desired settings.
2. Write your letter in markdown below.
3. Run `make` to compile the PDF.

If a file named `signature.pdf` is present in the directory, the boilerplate will automatically print it after the letter's body as a final touch. Follow [this method]( to import your own signature.

This file was deleted.

@@ -1,3 +1,26 @@
# subject: My life as a soldier
author: F. Nietzsche
city: Naumburg
- Artillerieregiment, 8. Batt.
- Nordstraße 15, Naumburg
- Carl Freiherr von Gersdorff
- Stresow-Kaserne I
- Grenadierstraße 13–16
- 13597 Spandau

# Settings
mainfont: Hoefler Text
altfont: Helvetica Neue
monofont: Courier
lang: english
fontsize: 10pt
geometry: a4paper, left=35mm, right=35mm, top=50mm, bottom=25mm
# letterhead: true

Dear Friend,

I am a bombardier in the second mounted division of the Fourth Horse Artillery.
@@ -1,4 +1,4 @@
output.pdf : template.tex details.yml
output.pdf : template.tex
pandoc $(filter-out $<,$^ ) -o $@ --latex-engine=xelatex --template=$<

clean :

0 comments on commit 4390e50

Please sign in to comment.