I want to use the beamer package with a white on black style to create presentations. I included a simple switch to choose black on white for printout. Is there any possibility to also invert the colors of included graphics (maybe only black on white) or define some substitution rules for colors in included graphics?
|
|
|||||||||||||||
|
|
If you use PNG or another bitmap file, you can preprocess your file with imagemagick. convert -negate out.png in.png This also works for PDFs. However, the vector data is rasterised and that's not what you aim for. Edit: You can preprocess the file with inkscape. Load the pdf file, then select Extensions → Colour → Negative, and the paper size of the size of your imported PDF. This yields a non-rasterised, inverted PDF. |
|||||||
|
|
If you use METAPOST to generate graphics, then you can use metafun to change the color. See Section 8.5 of the metafun manual, which has an example of converting a colored image to black and white at the end of the section (on page 205). |
|||||
|
|
Not a LaTeX solution but AFAIK FoxIt Reader can change colors at the preferences: |
|||
|
|