[Tex/LaTex] Remove Title of the paper from Table of contents

author-numbertable of contentstitles

I am writing a report using lncs package. In my table of contents, the title of the page and author's name is also appearing. How do i remove this?

\title{Evaluation of xyz}
\author{Alina}
\institute{University}
\setcounter{tocdepth}{3}
\begin{document}
\maketitle
\begin{abstract}
\end{abstract}
\tableofcontents

Above is the code I have written and in the picture you could see the result. I want to remove the title & author from table of contents and start it from introduction.
enter image description here

Best Answer

This will do the job:

\documentclass{llncs}
\usepackage{lipsum}

\title{Evaluation of xyz}
\author{Alina}
\institute{University}
\setcounter{tocdepth}{3}
\begin{document}
\let\oldaddcontentsline\addcontentsline
\def\addcontentsline#1#2#3{}
\maketitle
\def\addcontentsline#1#2#3{\oldaddcontentsline{#1}{#2}{#3}}

\begin{abstract}
\end{abstract}
\tableofcontents
\section{Introduction}
\lipsum
\end{document}

Note: The title is added to table of contents via \addcontentsline{}{}{} command in the definition of \maketitle of llncs class file. Hence, if you need to remove it, I have stored the definition of \addcontentsline to a temporary control sequence \oldaddcontentsline using \let. After \maketitle, the original definition is restored.

Edit: An easy alternative solution is to redefine \addcontentsline within a group for \maketitle:

\documentclass{llncs}
\usepackage{lipsum}

\title{Evaluation of xyz}
\author{Alina}
\institute{University}
\setcounter{tocdepth}{3}
\begin{document}
{\def\addcontentsline#1#2#3{}\maketitle}

\begin{abstract}
\end{abstract}
\tableofcontents
\section{Introduction}
\lipsum
\end{document}