Filter out latex commands