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

I am using winedt on windows.
My question is how to make a book page style like the following pic with variations of displaying either chapter or section headers, according to page number, beside a vertical margin.

An example of the required page style

Thanks for help in advance.

@Herbert: The following pic is what I get after copy>paste in a new file

Herbert syntax output

I really appreciate your help, however, what I need is a page style analogous to my first attached pic in my question.

share|improve this question
Good question! But the answer will have very little to do with your operating system or text editor (which is why I removed those tags). What document class are you using? – Matthew Leingang Mar 15 '11 at 15:16
I am using "scrbook" class from "KOMA–Script". – Diaa Abidou Mar 15 '11 at 16:12

That can be done with package fancyhdr which allows to write page numbers and running headers elsewhere.




               \llap{\thepage\ \rule[-13mm]{.6pt}{18mm}\hspace{1mm}}
           \hfill{\normalfont\today}% %<------ svn 
               {\normalfont\today}%<------ svn 
           ~\hfill \rlap{\hspace{1mm}\rule[-13mm]{.6pt}{18mm}\ \thepage}%



share|improve this answer
I am sorry, but would you show me an example of Latex syntax ?. – Diaa Abidou Mar 15 '11 at 21:01
@Diaa; see example – Herbert Mar 15 '11 at 21:39

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.