improving latex representation