# [Tex/LaTex] Removing headers but keeping page numbers in the same time

I wrote my diploma in LaTeX using Lyx, but now I have big problem to fit the output to universities' standards.

I need to remove Part/Section… title from header, I found that using:

 \pagestyle{empty}


does the job, but it also removes page numbers, and I spent more than an hour trying to fit them together, especially that in some pages I need no page numbers, while in others has to start from some number, so I'm using:

\setcounter{page}{3}


which also conflicts with the first command.

Any help will be highly appreciated, because I need to print it today, thank you in advance.

First of all, to change the behaviour of a single page, you have to use \thispagestyle instead of \pagestyle, which changes the style from the current page till the end of your document.

Moreover, to have just the page number in the page, you have to use the style plain and not the style empty.

This means that, to have a single page with only the page number you have to put, in that page:

\thispagestyle{plain}


The valid options, for both \thispagestyle and \pagestyle commands are:

• plain - Just a plain page number.
• empty - Produces empty heads and feet - no page numbers.
• headings - Puts running headings on each page. The document style specifies what goes in the headings.
• myheadings - You specify what is to go in the heading with the \markboth or the \markright commands.