0

I would like that the table of contents does not show two times the word "Contents". How can I do ? The code is below .

\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
\usepackage{multicol}
\usepackage{wrapfig}
\usepackage{booktabs}
\usepackage{float}
\usepackage{tocbibind}
\usepackage[toc,page]{appendix}
\usepackage{color}
\usepackage[square]{natbib}
\usepackage{isotope}
\usepackage{siunitx}
\usepackage{tabularx}
\usepackage{mhchem}
\usepackage{version}
\usepackage{hyperref}
\usepackage{hyperref,xcolor}
\definecolor{wine-stain}{rgb}{0.5,0,0}
\hypersetup{
  colorlinks,
  linkcolor=blue,
  citecolor=blue,
  linktoc=page
}
%\hypersetup{
 %   colorlinks,
  %  citecolor=blue,
   % filecolor=blue,
    %linkcolor=blue,
%    urlcolor=blue
%    linktoc=page
%}
\begin{document}

{\centering{ {\huge\textbf{Title} \ \vspace{20pt} {\large Author} \ \vspace{20pt} \Large Subtitle \ \vspace{5pt} {\small Date} \vspace{5pt} \hrule \vspace{30pt}}}} \tableofcontents \addcontentsline{toc}{section}{Abstract} \section*{Abstract} \end{document}

1 Answers1

3

You need to change

\usepackage{tocbibind}

to

\usepackage[nottoc]{tocbibind}

The purpose of the tocbibind package is to allow the inclusion of ToC, the Bibliography, and the Index in -- you guessed it -- the table of contents.

Take a look at the user guide of the tocbibind package to familiarize yourself with the package's user options -- one of which is nottoc.

Mico
  • 506,678