booxdown 583 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. MDFILE=$1
  3. PDFFILE=$(basename $MDFILE .md).pdf
  4. FILE=$(mktemp XXXXXXXXXX-${MDFILE})
  5. cat <<EOF >> $FILE
  6. ---
  7. documentclass: scrartcl
  8. classoption:
  9. - DIV=14
  10. papersize: a5
  11. fontsize: 10pt
  12. mainfont: LucidaBrightOT
  13. mainFontOptions:
  14. - Numbers=OldStyle
  15. sansfont: LucidaSansOT
  16. mathFont: LucidaBrightMathOT
  17. monofont: IBMPlexMono
  18. monofontoptions:
  19. - Scale=MatchLowercase
  20. - StylisticSet=3
  21. csquotes: true
  22. links-as-notes: true
  23. highlight-style: monochrome
  24. citemethod: biblatex
  25. ...
  26. EOF
  27. cat $MDFILE >> $FILE
  28. pandoc -f markdown -t pdf --pdf-engine='lualatex' -o $PDFFILE $FILE
  29. rm $FILE