improved replace_tex_and_web and convert_conceptgroup