hence/pdf/pdf.sh
2022-06-17 15:17:13 +02:00

20 lines
368 B
Bash
Executable file

#!/usr/bin/env bash
# -*- coding: utf-8 -*-
pandoc "$1" \
-f gfm \
-t pdf \
-H pdf/chapter_break.tex \
--wrap=none \
--reference-links \
-s \
--toc \
--toc-depth 4 \
-V geometry:a4paper \
-V mainfont="Vollkorn" \
-V monofont="DejaVu Sans Mono" \
-V linkcolor:blue \
--highlight-style pdf/pygments.theme \
--pdf-engine=xelatex \
-o "$2"