TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know this has been covered but I can't get any solutions that I've seen to work. Page numbers for my thesis are upper right but the first page of each chapter should have it bottom center. I tried using ERT (in LYX) \thispagestyle{plain} and also loading \usepackage{sectsty} and then using \chapterfont{\pagestyle{plain}} after the chapter heading.

I looked at Modifying plain page style and questions on changing position of page number on the first page of every chapter of a book and page number position

I'm using the class from CU Boulder

EDIT: I don't go to CU but I am trying to use the class for my thesis.

share|improve this question

If you are using Koma-Script, you can use the scrpage2 package, and then define your own styles scrheadings and scrplain (see the Koma-Script manual). You can then assign them to all pages but the chapter pages, or to the chapter pages specifically:

share|improve this answer
I don't believe I'm using Koma-Script....how do I tell? Is it included in .cls? I'm using LyX so I've missed some of that stuff. – Dominik Apr 21 '11 at 16:39
Koma-Script provides several classes to replace the standard LaTeX classes --- scrbook replaces book, scrartcl replaces article, etc. These classes are generally more configurable than the traditional LaTeX classes. See mirrors.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf for documentation. – ℝaphink Apr 21 '11 at 21:35
up vote 1 down vote accepted

I did get

\fancyhf{}  % Delete current setting for header and footer

\fancypagestyle{main}{% page style for normal pages

  \fancyhead{}  % Get rid of headers and footers on plain pages...
  \renewcommand{\headrulewidth}{0pt}  % ...and of the lines

  \fancyhead{}  % Get rid of headers and footers on empty pages...
  \renewcommand{\headrulewidth}{0pt}  % ...and of the lines

to work with \pagestyle{main} as ERT before any main text and \thispagestyle{plain} as ERT after each chapter heading.

thanks meho_r

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.