11 lines
254 B
Bash
Executable File
11 lines
254 B
Bash
Executable File
#!/bin/bash
|
|
file=$1
|
|
extra=""
|
|
shift
|
|
|
|
if [ -e listings-setup.tex ]; then
|
|
extra=" --listings -H listings-setup.tex "
|
|
fi
|
|
|
|
pandoc -s -S "${file}" --toc -o "${file%.*}.pdf" --number-sections --variable urlcolor=cyan ${extra} $@ #--latex-engine=xelatex
|