config/scripts/md2docx
2019-05-17 12:50:01 +02:00

14 lines
330 B
Bash
Executable File

#!/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} $@