script: add md2pdf
This commit is contained in:
parent
d687abebb6
commit
e145523147
9
scripts/md2pdf
Executable file
9
scripts/md2pdf
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
file=$1
|
||||||
|
extra=""
|
||||||
|
shift
|
||||||
|
if [ -e listing-setup.tex ]; then
|
||||||
|
extra=" --listings -H listing-setup.tex "
|
||||||
|
fi
|
||||||
|
|
||||||
|
pandoc -s -S ${file} --toc -o ${file%.*}.pdf --variable urlcolor=cyan ${extra} $@
|
Loading…
Reference in New Issue
Block a user