1

I'd like to have my page numbers go from this: 2 to this { 2 }. Basically, I just want to add some decoration to the page numbers throughout a book.

Is there an easy way to do this?

Thanks for your help.

  • What document class are you using? – egreg Oct 23 '14 at 10:39
  • One could redefine \thepage, but this would affect the way page numbers are printed everywhere. So a footer or header change is more appropiate – user31729 Oct 23 '14 at 10:41
  • I'm using the regular book... – Linter Oct 23 '14 at 10:42
2

With the fancyhdr package you can define what is displayed in the header and footer. Getting your desired page numbers would require you to define

\fancyfoot[FC]{\{ \thepage \}}

in your preamble

EDIT: The F is not needed.

  • 1
    Welcome to TeX.SX! What's F for? – egreg Oct 23 '14 at 10:55
  • @egreg, thank you. The F is actually not needed. I don't know why I've always been using it. – TheExplosiveSheep Oct 23 '14 at 11:18
  • That causes an error for me; I'll have to troubleshoot this a bit. Do I need to use \pagestyle{fancy} for this? – Linter Oct 23 '14 at 11:42

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.