Sudarsan N.S Acharya writes:
 > I was surprised to see that the 
 > pdf generator could change the color of a text (i,e the axes, headings, 
 > xlabel,ylabel of a graph)inside the pdf image (according to the "text color" 
 > defined in the LaTeX file).

Actually it does not change anything. But some pdf documents,
which one includes, assume that the current color is black. This
assumption is perfectly within the specification. The documents only
switch to black explicitly, when there were other colors in betwenn.
Thus you can use this as a feature:
If you have a black only figure, which does not switch to black color
at all, you can change the color by setting another color before
including.

 > To add to my surprise, i had a legend box inside 
 > the pdf image which also contained some text, but the color of these texts 
 > weren't altered by the pdf generator.

These items were processed after other colors had been displayed in
between. Because there is no color stack in pdf the switch back to
black must be made explicitly. This can lead to these strange effects,
because in most pdf generators you do not have control about the
order, in which items are processed and prepared for output.

I hope this could explain the behaviour.
        Klaus

P.S. Further discussions - if needed - should be done off list,
because this is not a PPower4 feature or problem.
-- 
        Klaus Guntermann        <[EMAIL PROTECTED]>
        FG Systemprogrammierung, FB Informatik, TU Darmstadt
        Wilhelminenstr. 7, 64283 Darmstadt, Germany

Reply via email to