Update structure of Tex document