Skip to content

dougalstanton/scripts

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Scripts

General repository of small scripts and applications

writeletter

Aid to writing letters using PanDoc + LaTeX to create a PDF output file. Includes two support files for copying into ~/.pandoc:

  • input/letter.markdown

    The raw letter template, which contains a YAML metadata block with all the variables needed to write a basic letter. It should be edited to contain your name and address for ease of use.

    The content of the letter goes below the block. You don't need to write a sign-off at the end as that will be dealt with automatically.

  • templates/letter.latex

    The LaTeX template use for converting to a PDF, essentially using the standard "letter" class that comes with your TeX distribution.

    If you inserted a recipient's name in the metadata your letter you'll get "Dear $name" and "Yours sincerely", otherwise "Dear Sir or Madam" and "Yours faithfully". If you want to fiddle with any of this stuff it's all in this template file.

To invoke manually:

pandoc --to latex --template letter in.markdown -o out.pdf

To use the support script:

writeletter new in.markdown
# creates a fresh markdown file
writeletter make in.markdown
# converts to PDF (appends .pdf to name)

About

General repository of small scripts and applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages