General ⇒ Keep heading but remove page numbering from footer
Keep heading but remove page numbering from footer
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
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Keep heading but remove page numbering from footer
a quick fix would be:
Code: Select all
\makeatletter
\let\@oddfoot\@empty
\let\@evenfoot\@empty
\makeatother
Stefan
Re: Keep heading but remove page numbering from footer
I am really surprised the quickness of your reply.
Thanks a lot
Keep heading but remove page numbering from footer
Code: Select all
\usepackage{fancyhdr}
\pagestyle{fancy}
% your header and footer code
\fancyfoot[C]{}