I'm creating a large document. My document contains three parts : frontmatter, main, backmatter. For frontmatter I have to place page number centering, for main I have to place page number flushright, and for backmatter I have to place page number centering.

So confusing about it. Anyone could help me please ? Can I use this : How to change the position of the page number in the first page of every chapter of a book?

  • Welcome to TeX.sx! You don't have to sign with your name since it automatically appears in the lower right corner of your post. – morbusg Aug 8 '11 at 4:54
  • Yes, you could use the solution of the Link you posted. There are others for what you'd like to achieve, but the one you Linked to is the cleanest one in my opinion. – BernS Aug 8 '11 at 6:27
  • it works well in latex (miktex,texmaker,windows), but not in lyx, I'm looking for lyx ? :( – Verly Aug 8 '11 at 16:30
  • If the answer of Keks Dose was helpful, please upvote it. If not, please add more details to your question. – lockstep Sep 4 '11 at 11:54

Consider using a KOMA-Script class, you get the documentation typing texdoc komascript into a console-window.

I did not test it myself, but KOMA-Script offers the command \KOMAoption{} . I guess you could change the settings of the pagenumber for the next page at any place in the document.

Besides that, KOMA-Script offers different "styles" for front-, main- and backmatter.

  • it works well in latex (miktex,texmaker,windows), but not in lyx, I'm looking for lyx ? :( – Verly Aug 8 '11 at 16:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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