LaTeX forum ⇒ GeneralKeep heading but remove page numbering from footer

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

Keep heading but remove page numbering from footer

Postby shr2004 » Wed Sep 03, 2008 4:08 am

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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10224
Joined: Mon Mar 10, 2008 9:44 pm

Keep heading but remove page numbering from footer

Postby Stefan Kottwitz » Wed Sep 03, 2008 4:26 am

Hi,

a quick fix would be:
\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

Postby shr2004 » Wed Sep 03, 2008 4:31 am

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

Postby emime » Wed Apr 15, 2009 10:52 pm

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:

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


bye


Return to “General”

Who is online

Users browsing this forum: Google [Bot] and 18 guests