Take the 2-minute tour ×
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.

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
add comment

2 Answers 2

up vote 11 down vote accepted

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}
share|improve this answer
    
Problems if you have some red, blue, ... text, figures, ... and what you want is to invert everything. :( –  Andrestand Feb 17 at 11:50
add comment

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
add comment

Your Answer

 
discard

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.