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.

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

Even though it seems to be a non-standard position, I'd like to place my document's page numbers vertically centered in the outer page margin – i.e. where you usually have your thumb when you skim through a book.

How can I achieve that with scrbook? As far as I can see the only predefined positions for page numbers are in the header and footer.

share|improve this question
Thanks Gonzalo and egreg, both of your solutions work. I prefer egreg's one because it goes without an additional package and because it's way beyond my LaTeX skills :) p.s. I'm sorry to post this as an answer to my own question, but SX doesn't recognize me. I guess it's because I posted the question as unregistered user and now I'm registered (even though I used the same email address - anyways). Also I'm sorry for not being able to mark the question answered and give credits :( – Matthias Jul 29 '11 at 20:38
I merged your two accounts together now (the questions was asked with an unregistered account). I also converted your post to a comment. Don't worry about it. You can now place comments here and also accept your favored answer to conclude the question. Welcome to TeX.sx! – Martin Scharrer Jul 29 '11 at 20:58
@Martin: Wow, that was quicker than quick! I was in the means of writing a mail about this, but it seems I don't need to send it anymore :) Great site, great people! – Matthias Jul 29 '11 at 21:04
Note that you can flag posts for moderator attention which will be noticed very quickly. Use the 'flag' link below each post to do so. There is also the chat and our TeX - LaTeX Meta site. – Martin Scharrer Jul 29 '11 at 21:26
up vote 6 down vote accepted

Another solution with only KOMA-Script tools (and some low level trickery):

  \vbox to 0pt{
    \hbox to 0pt{\Huge\normalfont
      \if#1o\kern 2em\else\hss\fi\thepage

I use the normal footer, putting into it a zero height box that contains a zero width box that is raised to the center of the text block; in it the page number is typeset shifted on the right or on the left depending if we are in an odd or even page.

share|improve this answer

You can use the background package; a little exampe:





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.