Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

2 Answers 2

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:

\renewcommand*{\chapterpagestyle}{scrplain}
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
add comment
up vote 1 down vote accepted

I did get

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

\fancypagestyle{main}{% page style for normal pages
  \fancyhfoffset[R]{0.5in}
  \fancyhead[R]{\thepage}
  \renewcommand{\headrulewidth}{0pt}
  \renewcommand{\footrulewidth}{0pt}
}

\fancypagestyle{plain}{
  \fancyhfoffset[R]{0.25in}
  \fancyhead{}  % Get rid of headers and footers on plain pages...
  \fancyfoot[C]{\thepage}
  \renewcommand{\headrulewidth}{0pt}  % ...and of the lines
  \renewcommand{\footrulewidth}{0pt}
}

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

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
add comment

Your Answer

 
discard

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.