cws/build
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 08 Dec 2022 22:19:21 +0000
changeset 451 a4c2a9462c2e
parent 424 3c81352ec565
child 456 873d0b16aaa9
permissions -rwxr-xr-x
updated

#!/bin/bash
set -euo pipefail

fls=${1:-"core_cw01.tex core_cw02.tex core_cw03.tex main_cw01.tex main_cw02.tex main_cw03.tex main_cw04.tex main_cw05.tex"} 

for f in $fls; do
    echo -e "making $f"
    xelatex $f
    mv "${f%.tex}.pdf" tmp.pdf
    gs -o "${f%.tex}.pdf" -dNoOutputFonts -sDEVICE=pdfwrite tmp.pdf 
done    


# prevent PDF from being copied
###  gs -o "${f%.tex}.pdf" -dNoOutputFonts -sDEVICE=pdfwrite tmp.pdf