123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/sh
- MDFILE=$1
- PDFFILE=$(basename $MDFILE .md).pdf
- FILE=$(mktemp XXXXXXXXXX-${MDFILE})
- cat <<EOF >> $FILE
- ---
- documentclass: scrartcl
- classoption:
- - DIV=14
- papersize: a5
- fontsize: 10pt
- mainfont: LucidaBrightOT
- mainFontOptions:
- - Numbers=OldStyle
- sansfont: LucidaSansOT
- mathFont: LucidaBrightMathOT
- monofont: IBMPlexMono
- monofontoptions:
- - Scale=MatchLowercase
- - StylisticSet=3
- csquotes: true
- highlight-style: monochrome
- citemethod: biblatex
- hyperrefoptions:
- - breaklinks=true
- ...
- EOF
- cat $MDFILE >> $FILE
- pandoc -f markdown -t pdf --highlight-style monochrome --pdf-engine='lualatex' -o $PDFFILE $FILE
- rm $FILE
|