Skip to content

Instantly share code, notes, and snippets.

@pianomanfrazier
Created June 7, 2019 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pianomanfrazier/f2a6ccf471e41ffec168715dadd3b469 to your computer and use it in GitHub Desktop.
Save pianomanfrazier/f2a6ccf471e41ffec168715dadd3b469 to your computer and use it in GitHub Desktop.
title: "Example Pandoc input file"
author: Ryan Frazier
date: June 9, 2019
mainfont: Lora
fontsize: 12pt
linkcolor: red
toc: true
geometry: "left=3cm,right=3cm,top=2cm,bottom=3cm"
---

# Header 1

This is my 1^st^ example pandoc markdown. It has [links](https://github.com) in it.

Some footnotes[^myfn].

[^myfn]: A foot note in pandoc

> And a quote
> block
> that is blocky

Instructions to make PDF with pandoc markdown

Installation

sudo apt install texlive pandoc texlive-xetex

Grab any fonts you would like to use from google fonts. I like Lora or Merriweather. For Linux put those fonts in ~/.fonts.

To Build

pandoc --pdf-engine=xelatex input.md -o output.pdf

Or put this in your .vimrc.

:noremap <leader>m :!pandoc --pdf-engine=xelatex %:p -o output.pdf<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment