GeneralKeep heading but remove page numbering from footer

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
shr2004
Posts: 3
Joined: Wed Sep 03, 2008 3:38 am

Keep heading but remove page numbering from footer

Post by shr2004 »

Hi
I am a moderate user of Latex. I am writing a paper using entcs class along with prentcsmacro.sty style (provided by ENTCS, Elsevier). According to the style author's name appears in the header and page number in footer starting from 2nd page. For a special circumstance, I want to remove page numbering but keep the heading. I know the currently used pagestyle is headings.
If I used \pagestyle{empty} then there will be no heading. Is there any way or command that will remove page numbering while keeping the heading?
Here is a very brief summary of the paper structure:

\documentclass{entcs}
\usepackage{prentcsmacro}
\begin{document}
\begin{frontmatter}
\title{}
\end{frontmatter}
\section{}
\end{document}

In prentcsmacro.sty file the \pagestyle{headings} is defined.

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Keep heading but remove page numbering from footer

Post by Stefan Kottwitz »

Hi,

a quick fix would be:

Code: Select all

\makeatletter
\let\@oddfoot\@empty
\let\@evenfoot\@empty
\makeatother
but in general I recommend to use the fancyhdr package in order to customize headers and footers.

Stefan
LaTeX.org admin
shr2004
Posts: 3
Joined: Wed Sep 03, 2008 3:38 am

Re: Keep heading but remove page numbering from footer

Post by shr2004 »

Excellent....it works like charm
I am really surprised the quickness of your reply.

Thanks a lot
User avatar
emime
Posts: 9
Joined: Wed Apr 15, 2009 10:43 pm

Keep heading but remove page numbering from footer

Post by emime »

The code above removes the footer completely. If you want both footer and header and no page numbering, you can conveniently use the fancy package as follows:

Code: Select all

\usepackage{fancyhdr}
\pagestyle{fancy}
% your header and footer code
\fancyfoot[C]{}
bye
Post Reply