Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Taco Hoekwater
Hi Peter, Peter Rolf wrote: If someone can solve this problem I would be very glad. Adding a semicolon after the 'endgroup' command removes the error. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl

Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Taco Hoekwater
Taco Hoekwater wrote: Hi Peter, Peter Rolf wrote: If someone can solve this problem I would be very glad. Adding a semicolon after the 'endgroup' command removes the error. (I just looked at your pdf document). You probably want 'useMPgraphic' instead of 'uniqueMPgraphic'. Taco

Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Peter Rolf
Taco Hoekwater wrote: Taco Hoekwater wrote: Hi Peter, Peter Rolf wrote: If someone can solve this problem I would be very glad. Adding a semicolon after the 'endgroup' command removes the error. _Thank you very much, Taco!_ I have spent several hours to fix this MP error, without any

Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Taco Hoekwater
Peter Rolf wrote: BTW: Why do I need a semicolon after 'endgroup', but (in most cases) not after 'fi', 'endfor'? You need a semicolon at the end of a statement. The if and loop constructs are not statements, they are preprocessed. You get the 'extra tokens' error when Metapost sees something

Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Peter Rolf
Taco Hoekwater wrote: Peter Rolf wrote: BTW: Why do I need a semicolon after 'endgroup', but (in most cases) not after 'fi', 'endfor'? You need a semicolon at the end of a statement. The if and loop constructs are not statements, they are preprocessed. You get the 'extra tokens' error

Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Peter Rolf
Taco Hoekwater wrote: Taco Hoekwater wrote: Hi Peter, Peter Rolf wrote: If someone can solve this problem I would be very glad. Adding a semicolon after the 'endgroup' command removes the error. (I just looked at your pdf document). You probably want 'useMPgraphic' instead of

[NTG-context] TeX trigger in MP macro

2006-08-03 Thread Peter Rolf
Hi all, Currently I am using \startuniqueMPgraphic{foo} ... if (\DbgFill=0) : fill whatever fi ... \stopuniqueMPgraphic in my MP graphics. \DbgFill (0|1) is just a trigger, which prevents filling in case of visual debugging. Instead of always writing this 'long' form, it should be

Re: [NTG-context] TeX trigger in MP macro

2006-08-03 Thread Hans Hagen
Peter Rolf wrote: Hi all, Currently I am using \startuniqueMPgraphic{foo} ... if (\DbgFill=0) : fill whatever fi ... \stopuniqueMPgraphic in my MP graphics. \DbgFill (0|1) is just a trigger, which prevents filling in case of visual debugging. Instead of always writing