adding allow_latex field