Files
journal/export.sh
Thaddeus Hughes 608c43a71f init
2025-10-09 20:43:40 -05:00

13 lines
387 B
Bash

#!/bin/sh
#pandoc "$mdf" -f markdown -t html -s -o "${mdf%.*}.html"
#pandoc "${mdf%.*}.html" -f html -t odt -o "${mdf%.*}.odt"
#rm "${file%.*}.html"
pandoc "$1" -f markdown \
-V "\usepackage{sectsty}\sectionfont{\clearpage}" \
-V geometry:letterpaper \
-V geometry:margin=0.75in \
-s -o "${1%.*}.pdf"
# https://learnbyexample.github.io/customizing-pandoc/#pdf-properties ???