#!/bin/bash kwrite hymex.tex rm -f *.font.ps lualatex --shell-escape hymex.tex if [ $? -ne 0 ]; then echo "ABORT";exit;else echo "OK";fi gs -dNOPAUSE -q -sOutputFile=hymexc.pdf -sDEVICE=pdfwrite -dBATCH *.font.ps hymex.pdf if [ $? -ne 0 ]; then echo "ABORT";exit;else echo "OK";fi rm -f tmplily* hymex.log hymex.aux