I am using TeXworks to try and create a PDF file. The problem is that it seems that the \tableofcontents is making the pdf generation fail. Here is part of my code which seems to be causing the trouble:
\tableofcontents
\addtocontents{toc}{entry text}
\thispagestyle{empty}
\clearpage
As soon as I remove that from the script, the pdf is generated. I am very new to LaTeX so I am definitely doing something that I shouldn't. Anyone can tell me what is there problem or where can I look?
I have reduced my code to this (and still managed to replicate the error
\documentclass[a4paper,12pt]{article}
\begin{document}
\tableofcontents
\addtocontents{toc}{\protect\thispagestyle{empty}}
\clearpage
\setcounter{page}{1}
{\Huge Sample Text}
\section{Introduction}
\section{Background}
\section{Aims and Objectives}
\section{Rationale}
\section{Methodology}
\section{Work Packages}
\section{Relevance to Beneficiaries}
\section{Justification of resources}
\begin{thebibliography}{12}
\end{thebibliography}
\end{document}
The error I get:
{section}{\numberline{1}Introduction}{1} Thanks

\end{bibliography}– Seamus Jan 10 '11 at 20:25