parse and autocomplete \hide and \omit