LyXRemoving page numbers

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
adamski
Posts: 1
Joined: Sat Nov 27, 2010 3:46 pm

Removing page numbers

Post by adamski »

Apologies for the silly question. I'm new to using LyX and I'm struggling.

How do I remove page numbers from a document? I have tried using \thispagestyle{empty} but that also removes the header from my document.

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Removing page numbers

Post by meho_r »

Which document class are you using and which pagestyle? An example .lyx file would be nice too.

Generally, you might try constructing your headers/footers using fancyhdr, something like this (in the preamble):

Code: Select all

\usepackage{fancyhdr}
\fancyhf{}
\fancyhead[LE]{\leftmark}
\fancyhead[RO]{\rightmark}
\renewcommand{\headrulewidth}{0.4pt}
\pagestyle{fancy}
In case that you have problems with the first page of a chapter, try putting into the preamble the following:

Code: Select all

\makeatletter
\let\ps@plain\ps@empty
\makeatother
Of course, you may replace empty with fancy or any other page style you like.
Post Reply