#!/bin/bash

cp common_latex/algorithm.sty .
cp common_latex/algorithmicx.sty .
cp common_latex/algpseudocode.sty .
algpng.sh -q --ix=1 --dir=figures --in=alg_opr_onrun.tex  --out=alg_opr_onrun.png

eqpng.sh -q --ix=1 --dir=figures --in=eq_opr_spd_util.tex  \
	 --out=eq_opr_spd_util.png --padl=180 -f

eqpng.sh -q --dir=figures --in=eq_opr_spd_defs.tex  \
	 --out=eq_opr_spd_defs.png --padl=520 --padr=520 -f

eqpng.sh -q --ix=2 --dir=figures --in=eq_opr_hdg_util.tex  \
	 --out=eq_opr_hdg_util.png --padl=220 -f

eqpng.sh -q --dir=figures --in=eq_opr_hdg_defs.tex  \
	 --out=eq_opr_hdg_defs.png --padl=20 --padr=20 -f

eqpng.sh -q --ix=3 --dir=figures --in=eq_opr_coupled.tex  \
	 --out=eq_opr_coupled.png --padl=320 -f



rm -f tmp*.*

exit $?