You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
573 B
Bash
25 lines
573 B
Bash
#!/bin/bash
|
|
|
|
NAMES=()
|
|
NAMES+=(user/app-openpgp)
|
|
NAMES+=(developer/gpgcard-addon)
|
|
|
|
OPTIONS=()
|
|
OPTIONS+=("--standalone")
|
|
OPTIONS+=("--from=rst")
|
|
OPTIONS+=("--to=latex")
|
|
OPTIONS+=("--variable=papersize:A4")
|
|
OPTIONS+=("--variable=geometry:margin=1in")
|
|
OPTIONS+=("--variable=fontsize:10pt")
|
|
OPTIONS+=("--toc")
|
|
OPTIONS+=("--number-sections")
|
|
OPTIONS+=("--template=template.latex")
|
|
|
|
for name in "${NAMES[@]}"; do
|
|
rm -f "${name}.pdf"
|
|
dir=$(dirname "${name}")
|
|
file=$(basename "${name}")
|
|
|
|
(cd "${dir}"; pandoc ${OPTIONS[@]} --output="${file}.pdf" "${file}.rst")
|
|
done
|