# TeX causing run-on italicized sentences that break formatting

Total neophyte to TeX, trying to type up a term paper due tonight and I keep getting really weird errors during compile. I'm not sure if this question has been asked before, but I don't really know any of the lingo to be able to word the question properly. I've just been going about learning TeX from the internet, and so I apologize if this is an absolute shambles.

Here's a copy of the code snippet that is causing the problem, please let me know if there's anything else I need to include.

\documentclass[paper=a4, fontsize=12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[margin=1in]{geometry}
\usepackage[english]{babel}
\usepackage{mathtools,amsfonts,amsthm}
\usepackage{sectsty}
\allsectionsfont{\centering \normalfont\scshape}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyfoot[L]{}
\fancyfoot[C]{}

\renewcommand{\footrulewidth}{0pt}

\setlength{\parindent}{2em}
\setlength{\parskip}{16pt}

\begin{document}

if we start our octave at C, or N_{0}=C, then we get \{C,C,D,C,F,E,C,C,D,C,G,F\}, which we can relabel as \{0,0,2,0,5,4,0,0,2,0,7,5\} if we just use the indices of the group elements.

\end{document}

-
Welcome to TeX.SX! –  Christian Hupfer Mar 14 at 3:30
If you're using large CSV-lists (in math-mode), you may have problems breaking them across lines. To get around this, consider reading How to achieve line break in simple $formula$-mode. –  Werner Mar 14 at 3:44
Freaky—a friend of mine is doing the same thing tonight, and her thesis is also on music (coupled with CS). Welcome to TeX.SX! Note that when you want to type math, you need to wrap it in $ signs (or $$…$$, but that's much less common.) – Sean Allred Mar 14 at 4:00 ## 2 Answers If you examine the .log, you'll see the following: ! Missing$ inserted.
<inserted text>

\end{document}

-