hence/pdf/pdf.sh

21 lines
368 B
Bash
Raw Normal View History

2022-06-17 11:38:12 +00:00
#!/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"
2022-06-17 13:17:13 +00:00