try to fix ampersand matching for LaTeX conversion