[Tex/LaTex] Remove only pagenumbers from llncs

header-footerlncs

How do you remove only the page number from the springer llncs template, leaving the rest of the header untouched ?

\documentclass[runningheads,a4paper]{llncs}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[pdfborder={0 0 0}]{hyperref}


\urldef{\mailsa}\path|mail}@camous.de|

\newcommand{\keywords}[1]{\par\addvspace\baselineskip
\noindent\keywordname\enspace\ignorespaces#1}

\bibliographystyle{splncs03}

\begin{document}

\mainmatter

\title{title}
\titlerunning{titlerunning}
\toctitle{toctitle}

\author{author}
\authorrunning{authorrunning}
\tocauthor{tocauthor}

\institute{institute}

\maketitle

\begin{abstract}
content

\keywords{words}
\end{abstract}

\section{Introduction}
 content

\clearpage

core content

\end{document}

seems fairly simple but neither \pagestyle{empty} nor \pagenumbering{gobble} do the trick.

Best Answer

If you want to keep the runningheads document class option, I suggest you add the following instructions to your document's preamble:

\usepackage{etoolbox} % for "\patchcmd" macro
\makeatletter
\patchcmd{\ps@headings}{\rlap{\thepage}}{}{}{}
\patchcmd{\ps@headings}{\llap{\thepage}}{}{}{}
\makeatother
\pagestyle{headings} % reload the now-modified "headings" page style

Alternatively, simply drop the runningheads option: The llncs document class will then set \pagestyle{empty} automatically -- no page numbers, and nothing else in the headers and footers...