actual debugging for replace_latex_accents