Permalink
Browse files

Use YAML straight in the markdown file (closes #7)

  • Loading branch information...
mrzool committed Dec 13, 2015
1 parent 13adb2a commit 4390e501534270a10d6f38efda4fdf1cb1575004
Showing with 26 additions and 25 deletions.
  1. +2 −2 README.md
  2. +0 −22 details.yml
  3. +23 −0 letter.md
  4. +1 −1 makefile
View
@@ -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 `letter.md` and write your letter in markdown.
1. Open `letter.md` 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](http://tex.stackexchange.com/a/32940/82423) to import your own signature.
View

This file was deleted.

Oops, something went wrong.
View
@@ -1,3 +1,26 @@
---
# subject: My life as a soldier
author: F. Nietzsche
city: Naumburg
from:
- Artillerieregiment, 8. Batt.
- Nordstraße 15, Naumburg
to:
- 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.
View
@@ -1,4 +1,4 @@
output.pdf : template.tex details.yml letter.md
output.pdf : template.tex letter.md
pandoc $(filter-out $<,$^ ) -o $@ --latex-engine=xelatex --template=$<
clean :

0 comments on commit 4390e50

Please sign in to comment.