Why doesn't this code compile?
\usepackage{tikz}
\begin{document}
We will let $P_2\textit{n}+1 = v_0v_1v_2…v_2\textit{n}$ be a path of
length $2\textit{n}+1$. We will plant an end vertex of a path $P_a$
of length \textit{a} to $v_4\textit{i}-3$ and an end vertex of a path
$P_\textit{a}+2$ of length $\textit{a}+2$ to $v_4\textit{i}-1$ for
$\textit{i}$ = $1,2,…,\textit{n}$.
\end{document}
\documentclass{...}
command\textit
in math mode? Variables are set in italics by default in matharticle
document class. (Of course, one shouldn't be using\textit
for math-mode material, but that doesn't generate a compilation error.) Which document class do you use?