[metapost] `withprescript' writing order

Stephan Hennig mailing_list at arcor.de
Sat Feb 9 18:14:31 CET 2008


Taco Hoekwater schrieb:
> Lander wrote:
>> The `.setopacityalpha' operator comes before `gsave' in the
>> output file, but my intention is the other way round (just
>> to alter the graphics state for the first circle).  I wonder
>> whether this is a deliberate behaviour as intended by the
>> developers: because it is a "prescript", it may make sense
>> that LIFO writing order.  I find it a bit awkward, though;
> 
> I think I did that on purpose, because "picture"s can also have
> their own pre- and postscripts, as well as the pre- and posts
> of their constituent parts, and I had to resolve that case.
> The "withpostscript" is  FIFO.
> 
>> perhaps it is worth adding a line to the manual, as a
>> clarification.
> 
> I agree.

Would someone like to add a note to the relevant section (presumably
'9.5 Local specials')?  Or post one here?

Best regards,
Stephan Hennig


More information about the metapost mailing list