All Projects → mrzool → Letter Boilerplate

mrzool / Letter Boilerplate

Finest letter typesetting from the command line

Projects that are alternatives of or similar to Letter Boilerplate

Invoice Boilerplate
Simple automated LaTeX invoicing system
Stars: ✭ 604 (+61.5%)
Mutual labels:  makefile, latex, yaml, pandoc, pdf, typesetting
Cv Boilerplate
Programmatic generation of high-quality CVs
Stars: ✭ 967 (+158.56%)
Mutual labels:  makefile, latex, yaml, pandoc, pdf, typesetting
Pandoc Latex Template
A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
Stars: ✭ 3,750 (+902.67%)
Mutual labels:  markdown, latex, pandoc, pdf
Open Publisher
Using Jekyll to create outputs that can be used as Pandoc inputs. In short - input markdown, output mobi, epub, pdf, and print-ready pdf. With a focus on fiction.
Stars: ✭ 242 (-35.29%)
Mutual labels:  latex, pandoc, pdf
Readteractive
Tool for writing and generating interactive books.
Stars: ✭ 23 (-93.85%)
Mutual labels:  latex, pandoc, pdf
Pandoc Letter Din5008
Pandoc template for writing Markdown letters (DIN 5008)
Stars: ✭ 77 (-79.41%)
Mutual labels:  latex, pandoc, pdf
Zettlr
A Markdown Editor for the 21st century.
Stars: ✭ 6,099 (+1530.75%)
Mutual labels:  markdown, pandoc, pdf
Crowbook
Converts books written in Markdown to HTML, LaTeX/PDF and EPUB
Stars: ✭ 399 (+6.68%)
Mutual labels:  markdown, latex, pdf
Pandoc Plantuml Filter
Pandoc filter for PlantUML code blocks
Stars: ✭ 51 (-86.36%)
Mutual labels:  markdown, latex, pandoc
Pandoc Action Example
using the pandoc document converter on GitHub Actions
Stars: ✭ 131 (-64.97%)
Mutual labels:  markdown, latex, pandoc
Pandiff
Prose diffs for any document format supported by Pandoc
Stars: ✭ 110 (-70.59%)
Mutual labels:  markdown, pandoc, pdf
Pandoc Markdown Template
Markdown templates for Pandoc
Stars: ✭ 135 (-63.9%)
Mutual labels:  markdown, latex, pandoc
Pandoc Starter
📄 My pandoc markdown templates and makefiles
Stars: ✭ 443 (+18.45%)
Mutual labels:  markdown, latex, pandoc
Oscp Exam Report Template Markdown
📙 Markdown Templates for Offensive Security OSCP, OSWE, OSCE, OSEE, OSWP exam report
Stars: ✭ 2,066 (+452.41%)
Mutual labels:  markdown, latex, pandoc
Pandoc Book Template
A simple Pandoc template to build documents and ebooks.
Stars: ✭ 214 (-42.78%)
Mutual labels:  markdown, pandoc, pdf
Panflute
An Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions
Stars: ✭ 286 (-23.53%)
Mutual labels:  markdown, pandoc
Mak
A universal notepad. (WIP)
Stars: ✭ 270 (-27.81%)
Mutual labels:  markdown, latex
Pandoc Ruby
Ruby wrapper for Pandoc
Stars: ✭ 299 (-20.05%)
Mutual labels:  markdown, pandoc
Pander
An R Pandoc Writer: Convert arbitrary R objects into markdown
Stars: ✭ 267 (-28.61%)
Mutual labels:  markdown, pandoc
Pandoc Letter
Pandoc template for writing letters in markdown
Stars: ✭ 303 (-18.98%)
Mutual labels:  markdown, pandoc

Letter Boilerplate

A boilerplate to quickly and painlessly generate high-quality letters through LaTeX.

Why settle for MS Word when you can get the job done using your text editor?

preview

Dependencies

  1. LaTeX with the following extra packages: fontspec geometry ragged2e enumitem xunicode xltxtra hyperref polyglossia footmisc (also, datetime2 plus its language modules if you want to use a custom date, see below in the settings section)
  2. Pandoc, the universal document converter.

To install LaTeX on Mac OS X, I recommend getting the smaller version BasicTeX from here and installing the additional packages with tlmgr afterwards. Same goes for Linux: install texlive-base with your package manager and add the needed additional packages later.

To install pandoc on Mac OS X, run brew install pandoc. To install it on Linux, refer to the official docs.

Getting started

  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 to import your own signature.

Note: this template needs to be compiled with XeTeX.

Note for Windows users

Although I didn't test it, you can probably use this on Windows, too. Both Pandoc and LaTeX can be installed on Windows (I recommend MiKTeX for that) and you should be able to run makefiles on Windows through Cygwin. If that's too much hassle, this command should do the trick in Powershell:

pandoc letter.md -o output.pdf --template=template.tex --pdf-engine=xelatex

Available settings

  • subject: The letter's subject (optional)
  • mainfont: Hoefler Text is the default, but every font installed on your system should work out of the box (thanks, XeTeX!)
  • altfont: Used to render the recipient address so that it stands out from the rest of the letter.
  • fontsize: Possible values here are 10pt, 11pt and 12pt.
  • lang: Sets the main language through the polyglossia package. This is important for proper hyphenation and date format.
  • geometry: A string that sets the margins through geometry. Read this to learn how this package works.
  • letterhead: include custom letterhead in the PDF (see below).
  • customdate: Allows you to specify a custom date in the format YYYY-MM-DD in case you need to pre/postdate your letter. Caveat: Requires datetime2 along with its language module (ex: if lang is set to german do tlmgr install datetime2 datetime2-german)

Custom letterhead

If you have already designed your own letterhead and want to use it with this template, including it should be easy enough. Set the letterhead option to true to activate the wallpaper package in the template. wallpaper will look for a file named letterhead.pdf in the project root folder and print it on the PDF before compiling the document. Change the fonts to match the ones in your letterhead, adjust the margins with geometry and you should be all set.

Recommended readings

Resources

  • Refer to pandoc's documentation to learn more about how templates work.
  • If you're not familiar with the YAML syntax, here's a good overview.
  • If you want to edit the template but LaTeX scares you, these docs put together by ShareLaTeX cover most of the basics and are surprisingly kind to the beginner.
  • Odds are your question already has an answer on TeX Stack Exchange. Also, pretty friendly crowd in there.
  • Need to fax that letter? Check out Phaxio and learn how to send your faxes from the command line with a simple API call.

See also

License

MIT

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].