Process escapes and ignore LaTeX environments