correct way to declare italic in LaTeX is \itshape, not \textit. Durr.