ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TeX trigger in MP macro
@ 2006-08-03 12:29 Peter Rolf
  2006-08-03 23:01 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Peter Rolf @ 2006-08-03 12:29 UTC (permalink / raw)


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 possible to use a self written mp-macro
instead. But my naive approach

def dbg_fill (expr p) =
  if (\DbgFill=0) :
    fill p ;
  fi
enddef ;

doesn't work. I get

>> DbgFill
! Unknown relation will be considered false.


How do I realize this trigger inside pure MP code and set it outside in
TeX? The trigger should be global and can change during runtime. Any
help is welcome.

Greetings, Peter

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-09-06 18:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-03 12:29 TeX trigger in MP macro Peter Rolf
2006-08-03 23:01 ` Hans Hagen
2006-08-04 10:57   ` Peter Rolf
2006-08-04 11:14     ` Taco Hoekwater
2006-08-04 11:17       ` Taco Hoekwater
2006-08-04 12:27         ` Peter Rolf
2006-08-04 12:42           ` Taco Hoekwater
2006-08-04 13:04             ` Peter Rolf
2006-08-04 14:26         ` Peter Rolf
2006-08-04 14:42           ` stange error in Live ConTeXt Taco Hoekwater
2006-08-04 16:22             ` Peter Rolf
2006-09-06 18:54             ` Patrick Gundlach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).