Really simple question: I want to align the "Table of Contents" heading to the left, not the actual list of contents, the "Table of Contents" heading.
This is what I have:
\documentclass[envcountsame]{llncs}
\usepackage{llncsdoc}
\usepackage[hidelinks]{hyperref}
\usepackage{graphicx}
\usepackage{acronym}
\usepackage{url}
\usepackage{verbatim}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=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}
\addtocontents{toc}{\vskip -1cm}
\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?
Best Answer
I suggest you load the
tocloft
package (\usepackage{tocloft}
) and issue the instructionin 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.)