config/scripts/md2docx

14 lines
330 B
Plaintext
Raw Permalink Normal View History

2019-05-17 12:49:42 +02:00
#!/bin/bash
file=$1
extra=""
shift
if [ -e listings-setup.tex ]; then
extra=" --listings -H listings-setup.tex "
fi
if [ -e custom-reference.docx ]; then
extra="$extra --reference-docx=custom-reference.docx "
fi
pandoc --toc "${file}" -o "${file%.*}.docx" --number-sections --variable urlcolor=cyan ${extra} $@