# Copyright (C) 2000 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.22 2003/08/19 13:08:44 gawthrop
## Ingnore if/endif
##
## Revision 1.21 2003/08/14 10:33:46 gawthrop
## Ignore if and endif
##
## Revision 1.20 2003/08/13 15:49:39 gawthrop
## Don't sort the states when defaulting - leave in implied order
##
## Revision 1.19 2003/08/05 15:29:36 gawthrop
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.6 2004/08/26 16:15:40 geraint
## Counts abg.m instead of fig files so that dia models are also included.
##
## Revision 1.5 2004/02/10 16:11:01 gawthrop
## Removed debug
##
## Revision 1.4 2004/02/10 10:22:10 gawthrop
## Do proper arithmetic via let
## Three levels of output
## enumerate, not itemize
system=$1
filename=$2
if [ -z "$3" ]; then
let level=0;
level=0;
else
let level=$4;
level=$4;
fi
echo "level: $level"
#Top-level commands
if [ -z "$2" ]; then
filename="$1_sub.tex"
# Inform user