I already have set a document with text and image. On the whole document:
Is it possible to make the white background go set to black?
That is: text in white color & background in black color.
I know this is very anti-economical print-wise, but it's for artistic purposes. In this approach I would only be printing the black sections in a regular printer.
There's also a black and white image, and gray too (cc symbol). If I can keep that in original colors it'd be best. (Or not! ..oh my! I have to check how it looks)
This has been done before but not on such a big scale of page:
- for just a couple of lines
- same idea but with (undesirable) white space between lines
- for tables
- on titles/sections
- for a bit in article class
Perhaps an option to invert colors in full document?
This would change the image. But since it's only one maybe that can be inverted too.
Another chance could be to just take the .tex file and format the color of text (and leaving background unchanged): change black (standar) color of letters to white and get a proper printer and use black paper as background. It'd be great to hear ideas on this option too. Although printing with white ink on black-tainted pages may be even more expensive than the 1st option...
SeRe's answer is just great. I'm just going to add a mwe
of my own because I had some frames that went back to default and I wanted to post how I managed to customize them to be as the rest of the document. Any other ideas on how to do this are more than welcome.
\documentclass[12pt]{report}
\usepackage{xcolor}
\usepackage{pagecolor}
\usepackage{lipsum}
\usepackage{mdframed}
\pagecolor{black}
\color{white}
\begin{document}
\lipsum[2]
\begin{mdframed}[backgroundcolor=black,linecolor=white,fontcolor=white]
\texttt{\textbf{Yes! Customized.}} \\
In any right triangle, the area of the square whose side is the hypotenuse
is equal to the sum of the areas of the squares whose sides are the two
legs.\end{mdframed}
\mdfapptodefinestyle{example1}{backgroundcolor=brown!20,linecolor=red!40!black,linewidth=4pt}
\begin{mdframed}[style=mdfexample1]\textit{No: Default mdframed.} \\Not desirable white backgroundcolor and text in black.\end{mdframed}
\lipsum[3]
\end{document}