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

When using pdflatex is there a simple way to invert the colors to give white text on a black background across the whole document? I'd like the colours to be inverted whilst I write and edit the document, and then to be able to switch back to black text on a white background for the final version

share|improve this question
up vote 14 down vote accepted

You can do this with the xcolor package.



Hello \clearpage World

share|improve this answer
Problems if you have some red, blue, ... text, figures, ... and what you want is to invert everything. :( – Andrestand Feb 17 '14 at 11:50

As no LaTeX solution:

  • If you use evince as pdf viewer you can simply press Ctrl+I to invert any document. It will keep that setting for just that document even if you change and reload the document.
  • Yo can use xcalib -i -a to invert a whole screen.
share|improve this answer
For which OS does this work? – doncherry Feb 5 '12 at 8:36

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.