Skip to content

Instantly share code, notes, and snippets.

@sudoaza
Last active December 20, 2022 03:32
Show Gist options
  • Save sudoaza/11ec6418eef54b6a2a8fd41e91999546 to your computer and use it in GitHub Desktop.
Save sudoaza/11ec6418eef54b6a2a8fd41e91999546 to your computer and use it in GitHub Desktop.
Format markdown nicely into pdf with pandoc
---
title:
author:
date:
include-before:
- ...
toc: true
toc-depth: 2
toccolor: darkgray
numbersections: true
geometry: margin=2.5cm
mainfont: Roboto-Regular.otf
mainfontoptions:
- BoldFont=Roboto-Bold.otf
- ItalicFont=Roboto-Italic.otf
fontsize: 11pt
urlcolor: blue
breaklines: true
normalize: true
smart: true
output:
pdf_document:
extra_dependencies: ["float"]
header-includes: |
\usepackage{fancyhdr}
\usepackage{float}
\usepackage{fvextra}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines}
\pagestyle{fancy}
\floatplacement{figure}{H}
---
here goes markdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment