On Wed, 20 Jan 2016 17:56:53 +0100
Pablo Rodriguez
On 01/20/2016 01:19 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 20. Januar 2016 um 13:10 [...] How can I invert the colors in the external figure without having to edit the image file?
Many thanks for your help, You have to use the Adobe Reader to view the PDF.
I’m afraid that I’m on Linux and I don’t have Adobe Reader installed.
Not just on Linux... (Adobe reader is a notorious security hole). With MetaFun, you can invert the colors using: \startMPcode draw whatever... ; currentpicture := inverted currentpicture ; \stopMPcode Unfortunately, this does *not* work with externalfigure, i.e. \startMPcode draw externalfigure("cow") ; currentpicture := inverted currentpicture ; \stopMPcode or \startMPcode draw rawtextext("\externalfigure [cow]") ; currentpicture := inverted currentpicture ; \stopMPcode as inverted (a macro) operates on all the elements of the picture. I find it easiest to use ImageMagick or gimp to invert the colors and save this in a second image file. Alan