[Tex/LaTex] Springer llncs TOC first page number

lncspage-numberingtable of contents

I have a toc with 2 pages. The second page has a page number (II), but the first not. What have I to do? I want a page number one the first toc page (I).

Thanks

\documentclass[deutsch]{llncs}
\pagestyle{headings}
\begin{document}

\pagenumbering{Roman}
\setcounter{page}{1}
\thispagestyle{headings}
\pdfbookmark{\contentsname}{toc}\tableofcontents
\newpage
\phantomsection
\cleardoublepage 

\pagenumbering{arabic}
\setcounter{page}{1}
\maketitle

Best Answer

The llncs class defines \chapter to have no page number on the chapter start page. Since \tableofcontents is effectively using \chapter*, the empty page style applies to the toc starter page too.

This code removes the \thispagestyle temporarily for the ToC only.

\documentclass[deutsch]{llncs}
\usepackage{xpatch}

\let\classtableofcontents\tableofcontents%

\renewcommand{\tableofcontents}{%
  \begingroup%
  \xpatchcmd{\chapter}{\thispagestyle{empty}}{}{}{}%
  \classtableofcontents%
  \endgroup%
}

\usepackage{bookmark}



\pagestyle{headings}
\begin{document}


\pagenumbering{Roman}
\setcounter{page}{1}
\thispagestyle{headings}
\pdfbookmark{\contentsname}{toc}
\tableofcontents
\newpage
\phantomsection
\cleardoublepage 

\pagenumbering{arabic}
\setcounter{page}{1}
\maketitle

\end{document}

Alternatively it's possible to use

\let\classtableofcontents\tableofcontents%

\renewcommand{\tableofcontents}{%
  \begingroup%
  \let\origthispagestyle\thispagestyle
  \renewcommand{\thispagestyle}[1]{%
    }
  \classtableofcontents%
  \endgroup%
}

enter image description here