TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 use


to create a document with white text on black background.

I draw a border around the page using

    logical pages=1,%
    border code=\pgfsetlinewidth{2pt}\pgfstroke,%
    border shrink=\pgfpageoptionborder,%
    resized width=.95\pgfphysicalwidth,%
    resized height=.95\pgfphysicalheight,%





But I need to have white lines for the border, else they won't show up on the black page. How do I change or set the border line colours ?

share|improve this question
up vote 3 down vote accepted

Like this

share|improve this answer

enter image description here

share|improve this answer
I would always add a \relax after a \dimexpr to terminate it explicitly: \dimexpr\textheight+\footskip\relax. You never know how the length argument is used in the macro internally. – Martin Scharrer Jun 16 '11 at 15:33

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.