Skip to content

A very small and pracmatic system to generate beautiful PDF's from MarkDown

Notifications You must be signed in to change notification settings

pflaeging/md2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title subject author date lang toc documentclass classoption
Markdown 2 PDF Generator
Markdown 2 PDF Generator
Peter Pfläging <[email protected]>
2021-06-21 v2
en
true
article
twosides

Markdown 2 PDF Generator

What is it?

md2pdf is a small set of configs and a Makefile to help generating beautiful PDF's from markdown files.

Required

  • pandoc
  • tex / latex / xelatex
  • gnumake

HowTo

Initial setup for folder

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}

Per document

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!

Revisions

  • 2021-06-21: make it work with pandoc 2.14.0.1 and xetex from TeX Live 2021

About

A very small and pracmatic system to generate beautiful PDF's from MarkDown

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published