This is what I have:

\documentclass[envcountsame]{llncs}
\usepackage{llncsdoc}
\usepackage{graphicx}
\usepackage{acronym}
\usepackage{url}
\usepackage{verbatim}
\hypersetup{
citecolor=black,
filecolor=black,
urlcolor=black
}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\makeatletter
\renewcommand*\l@author[2]{}
\renewcommand*\l@title[2]{}
\makeatletter
\title{...}
\author{...}
\begin{document}
\begin{center}
\email{...}
\end{center}
\begin{abstract}
Abstract here
\end{abstract}
\begingroup
\let\clearpage\relax
\tableofcontents*
\endgroup

...

\end{document}


Right now, it looks like this:

I want the title "Table of Contents" to be left-aligned, just like "1 - Introduction". How can I do it?

• Which class of document do you use? – Bernard Nov 7 '15 at 22:23
• Welcome! By default, it is formatted as an unnumbered chapter (for book) or section (for article) etc. So you need to show us the code you are using to make it come out non-default. – cfr Nov 8 '15 at 0:01
• Right, sorry! I edited the question – luispcosta Nov 8 '15 at 11:06
• You are submitting to Lecture notes in computer science, are you sure you are allowed to do any layout changes? – Johannes_B Nov 8 '15 at 11:07
• Are you sure that you need to include llncsdoc? – Johannes_B Nov 8 '15 at 11:09

I suggest you load the tocloft package (\usepackage{tocloft}) and issue the instruction

\renewcommand{\cfttoctitlefont}{\Large\bfseries}


in the preamble. To change the font size choose, e.g., \huge or \large instead of \Large.

Here's the full code that aligns the Table of Contents header to the left. (Note that while the header if flush-left, the entries are indented by a certain amount -- which is the default with or without the tocloft package.)

\documentclass[envcountsame]{llncs}
\usepackage{llncsdoc,graphicx,acronym,url,verbatim}

\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\Large\bfseries}

\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
%\makeatletter
%\renewcommand*\l@author[2]{}
%\renewcommand*\l@title[2]{}
%\makeatletter
%\title{...}
%\author{...}

\begin{document}

%\begin{center}
%\email{...}
%\end{center}

\begin{abstract}
Abstract here
\end{abstract}

\begingroup
\let\clearpage\relax
\tableofcontents
\endgroup

\bigskip\hrule  % just to illustrate width of text block

\section{A}
\section{B}

\end{document}

• I can't load the tocloft package, I always get an error Undefined control sequence. l.2 \authcount. Do I need to include it in a specific part of the preamble ? – luispcosta Nov 8 '15 at 11:33
• @riotvan - It should be loaded before hyperref. – Mico Nov 8 '15 at 11:49
• Nope, still get the same error. – luispcosta Nov 8 '15 at 12:28
• @riotvan - I'm afraid I don't have access to the file llncsdoc.sty. Where might it be obtained from? – Mico Nov 8 '15 at 14:17
• you can get the styles here: springer.com/computer/lncs?SGWID=0-164-6-793341-0, its the llncs2e.zip file – luispcosta Nov 8 '15 at 15:00