Skip to content

Instantly share code, notes, and snippets.

Created June 7, 2019 16:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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]( 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


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