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'm writing a style file for a document that requires the page number on the first page to be at the bottom center. On the rest of the pages it needs to be in the upper right hand corner. Can anyone tell me how to do this?

share|improve this question
    
See this answer here: Change page number location –  Alan Munn May 21 '11 at 3:46

1 Answer 1

up vote 3 down vote accepted

Somewhere in the stuff for the first page, include the command \thispagestyle{plain}. That will put the page number in the center of the foot for that one page, overriding whatever pagestyle you use for the document as a whole.

share|improve this answer
    
That looks easy enough. Just wondering, though, is there no way to do it within the style file? –  Nate Glenn May 21 '11 at 7:23
    
Nevermind, it makes sense now. I just put \pagestyle{headings} and \thispagestyle{plain} in the class style and it works the way I wanted it to. Thanks. –  Nate Glenn May 21 '11 at 7:35
    
@Nate Glenn: Ah, sorry; I'm afraid that I'd misread your question, and didn't notice that you said you were writing a style file. You figured out how to make it work, though. –  Phil Hirschhorn May 21 '11 at 18:13

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.