title | subject | author | date | lang | toc | documentclass | classoption | |
---|---|---|---|---|---|---|---|---|
Markdown 2 PDF Generator |
Markdown 2 PDF Generator |
|
2021-06-21 v2 |
en |
true |
article |
twosides |
md2pdf is a small set of configs and a Makefile to help generating beautiful PDF's from markdown files.
- pandoc
- tex / latex / xelatex
- gnumake
Copy the following files from this repo to your destination directory:
- Makefile
- pdf.yaml
- yourlogo.png (referenced in pdf.yaml)
Adapt your pdf.yaml:
\newcommand{\company}{My Company}
\newcommand{\companylogo}{\includegraphics[height=14pt]{yourlogo.png}}
\newcommand{\titlelogo}{\includegraphics[height=60pt]{yourlogo.png}}
\newcommand{\distribution}{Distribution: my customers}
Add this (adapted) in front of your document:
---
title: "Markdown 2 PDF Generator"
subject: "Markdown 2 PDF Generator"
author:
- "Peter Pfläging <[email protected]>"
date: 2020-11-24 v1
lang: en
toc: false
---
Then run: make
Done!
- 2021-06-21: make it work with pandoc 2.14.0.1 and xetex from TeX Live 2021