Could anyone please show me how to get this page number formatting:

enter image description here

  • Is the 3 the chapter, and 11 the page number?
    – cmhughes
    Jan 7, 2013 at 16:50
  • No, 3 is the page number, and 11 is the number of pages. Thanks for your interest.
    – f10w
    Jan 7, 2013 at 17:36

1 Answer 1


The code should be well-commented I hope.

enter image description here



\color{black!60!white}% background box color
\rule[0.05in]{0.8in}{1in}% background box raise, width, height
\hfil\strut\raisebox{0.25in}{% number raise
\sffamily\bfseries\color{white}% number color
\Huge% number fontsize
\kern0.1em% distance number-bar
\rule{1pt}{1.4ex}% bar size
\kern0.15em% distance bar-totalnumber
\Large% totalnumber fontsize
\fancyheadoffset[LE,RO]{1.2in}% protrusion 

\usepackage{lipsum}% just for dummy text




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.