1

Using the article document class I have transferred a DOC template to a tex format (I am using miktex).

The template specifies a given section appearing prior to the table of contents i.e.:

\section{Mandatory section}
bla bla bla

\tableofcontents

\section{Other section}

Problem is that, once generated, the PDF document shows the table of content entry in the table of content i.e:

Mandatory section ....... 1
Content  ................ 2
Other section ........... 3

I want to remove the Content entry from the TOC, but havent found any method to do so.

Any help is high valued.

2

The template seems to incorrectly use \section instead of \section* for the table of contents. A little let magic should help here:

\let\mysection\section
\renewcommand{\section}[1]{\mysection*{#1}}
\tableofcontents
\let\section\mysection

If you can, fix the template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.