remove unused variables in typejax
recognize amsmath environments in quadrant view