modify latex commands