Updated tex_content parsing