On Wed, 29 Aug 2007, Aditya Mahajan wrote:
Hi,
Found an interesting sometxt misfeature.
\startMPinclusions boolean test ; test=true ; \stopMPinclusions
\startbuffer[test] if test : label(\sometxt{True}, origin) ; fi ; label(\sometxt{False}, (10,10)) ; \stopbuffer
\processMPbuffer[test]
\blank[big]
\startMPinitializations test := false ; \stopMPinitializations
\processMPbuffer[test]
Too bad context cannnot parse metapost syntax :)
Workaround (ugly)
Another workaround, slightly less ugly (as long as you count the number of \sometxt in the if part. \startbuffer[test] if test : label(\sometxt{True}, origin) ; else : txtnext := txtnext + 1 ; fi ; label(\sometxt{False}, (10,10)) ; \stopbuffer \processMPbuffer[test] Aditya