more intelligently decide whether to automatically display subfigure numberings
now adds math labels to the state list