title: latex undefined control sequence with tableofcontents
body: <p>I was using \documentclass{amsmath} for awhile with no issues, but I recently wanted to switch to the normal \documentclass{article} because I thought it looked nicer. However, now my \tableofcontents command produces this error:</p>
  
  <pre><code>! Undefined control sequence.
  &lt;argument&gt; \tocsection 
                         {}{1}{Purpose}
  l.1 ...ne {section}{\tocsection {}{1}{Purpose}}{4}
  
  ?
  </code></pre>
  
  <p>I'm writing a research paper with latex, and Purpose is the first section (the command I'm using is <code>\section{Purpose}</code>). It's saying line 1 has the error, which is <code>\documentclass{article}</code>. Can anyone help me with this error?</p>