# Modifications to Zettlr's export.pdf.yaml configuration file for generating LaTeX PDFs

In case anyone is interested, here are my modifications to the PDF (Latex) output defaults for Zettlr+Pandoc. This file is accessible in the Zettlr assets manager under `preferences > assets manager > Exports > PDF`

. This example shows how to augment the Zettlr+Pandoc+MikTeX configuration to include style files and various packages as needed.

variables:

# Sets the size of the document's pages.

papersize: a4 # Possible values: a0-a6, b0-b6, c0-c6,b0j, letter, executive, legal

# Further variables are documented here: https://pandoc.org/MANUAL.html#variables-for-latex

# My customizations start here

# The fontfamily: and fontfamilyoptions: settings are equivalent to

# - \usepackage[euler-digits,euler-hat-accent]{eulervm}

fontfamily: eulervm

fontfamilyoptions:

- euler-digits

- euler-hat-accent

fontsize: 12pt

header-includes:

# The following file was borrowed from https://github.com/Inventium/latexcolor.com

# (I ran out of colors)

- \input{C:/Users/fleng/Dropbox (Personal)/Zettelkasten/Templates/LatexColors.incl.tex}

- \usepackage{newpxtext}

- \usepackage{amsthm}

- \usepackage{nicematrix}

- \usepackage{tikz-cd}

- \newtheorem{thm}{Theorem}

- \newtheorem{lem}{Lemma}

- \newtheorem{prop}{Proposition}

- \newtheorem{fact}{Fact}

# This was almost needed: we copied a dash instead of a minus sign!

# - \DeclareUnicodeCharacter{2212}{\textendash}

- \usetikzlibrary{matrix}

- \newcommand\x{\times} # borrowed from StackExchange

...

pdf-engine: pdflatex # xelatex does not work well with the fonts chosen

dpi: 300

Here's some sample output. This proposition is generally considered too trivial to prove.

Another staggering example. Code borrowed from https://tex.stackexchange.com/questions/69713/matrix-change-row-or-column-background

GitHub. Erdős #2. CC BY-SA 4.0. Problems worthy of attack / prove their worth by hitting back. -- Piet Hein.

#### Howdy, Stranger!