13 lines
387 B
Bash
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 ??? |