cws/build
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 23 Dec 2022 16:52:34 +0000
changeset 456 d076cb2e0b75
parent 427 6e93040e3378
child 459 d59404a41d5f
permissions -rwxr-xr-x
updated jars

#!/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