latex parser: fixed getting name of env