Last active
December 20, 2022 03:32
-
-
Save sudoaza/11ec6418eef54b6a2a8fd41e91999546 to your computer and use it in GitHub Desktop.
Format markdown nicely into pdf with pandoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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