# Invert Background and Text Colours across Whole Document with pdflatex

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

-

You can do this with the xcolor package.

\documentclass{article}
\usepackage{xcolor}

\pagecolor[rgb]{0.5,0.5,0.5}
\color[rgb]{1,1,1}
\begin{document}

Hello \clearpage World

\end{document}

-

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.
-
 For which OS does this work? – doncherry Feb 5 '12 at 8:36