Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
4  
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. The article document class doesn't add a ToC entry to ToC by default. –  Andrey Vihrov Sep 20 '11 at 14:16
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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