I'm trying to add a table of contents into my paper but it comes up with undefined control sequence everytime. I read online it may be a clash with some of the packages used in my preamble, so I'll give my preamble here.
\documentclass[a4paper,12pt]{amsart}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{ellipsis}
\usepackage{soul}
\usepackage{amsthm}
\usepackage{amsmath,amssymb}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{caption}
\usepackage{rotating}
\usepackage{pdflscape}
\begin{document}
\tableofcontents
This results in the error undefined control sequence. l.14 \contentsfinish.
\section{test}\end{document}to your example, I have no compilation problems. Please post a full minimal example that display your problem. – daleif Apr 13 '12 at 8:27hyperrefat the end of your preamble, cf. tex.stackexchange.com/questions/1863/… – doncherry Apr 13 '12 at 8:29