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

When I use the wallpaper package to put a background behind a slide or document, and then use fancyhdr to try and paginate the document the page numbers dont show up. Am I doing something wrong, or is there a process for bringing the page numbers back? Thanks

\usepackage[top=0.75in, bottom=0.75in, left=0.7in, right=2in]{geometry} 
\ULCornerWallPaper{1.0}{pillar.pdf} \topmargin=0.25in \headheight=1in \headsep=0.1in 




Image for background of MWE attached below... pillar.pdf

share|improve this question
\topmargin=0.25in \headheight=1in \headsep=0.1in is moving the text body down and so the page number is outside the page. Setup the layout only with geometry to get consistent and senseful values. – Ulrike Fischer Sep 3 '12 at 12:36
Thanks @UlrikeFischer that solved the immediate problem and showed me why I was doing wrong. – Tahnoon Pasha Sep 3 '12 at 22:00
up vote 4 down vote accepted

You may try the xwatermark package. Read the user guide.

% Redefining \xwm@f@ncypagenos for a reason:
\watermarkpaths[.](/){{}{/graphics}} % your path may be different
  text-on-top-picture,boxalign=center,pic-bounding-box=125 551 340 668,

  textalign         = center,
  show-page-numbers = true,
  show-on-page-one  = true,
  textcolor         = red,
  y-position        = -.42\paperheight,
  x-position        = 0,
  scale             = 2,
  angle             = 0,
  style             = \textsc{Page~\thepage~of~\pageref{xwmlastpage}}


enter image description here

share|improve this answer
Thanks @AhmedMusa. This is a new and interesting approach for me. Why are you redefining \xwm@fancypagenos? – Tahnoon Pasha Sep 3 '12 at 22:02
The command \cptswitchtrue used to be called \switchtrue in the catoptions package. The public version of xwatermark still uses the old command. So without redefinition, you'll get the error 'undefined control sequence ...'. – Ahmed Musa Sep 3 '12 at 23:59

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.