[NTG-context] Code Called Twice?

2013-10-11 Thread Thangalin
Hi, I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show \MPstring{heading:title}; draw textext( \MPstring{heading:title} ) rotated 5 withcolor blue; \stopuseMPgraphic

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Philipp Gesang
···date: 2013-10-10, Thursday···from: Thangalin··· I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show \MPstring{heading:title}; draw textext(

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Marco Patzer
On 2013–10–10 Thangalin wrote: I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show \MPstring{heading:title}; draw textext( \MPstring{heading:title} ) rotated 5

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Thangalin
Hi, typeset using TeX. After it's typeset MP picks it up in a second run. That also explains why the spacing between words is correct (I didn't think MP could typeset text). Maintain a vector with the last two elements to check against. An interesting approach; I used a Boolean flag as per

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Hans Hagen
On 10/11/2013 1:00 PM, Philipp Gesang wrote: ···date: 2013-10-10, Thursday···from: Thangalin··· I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Philipp Gesang
···date: 2013-10-11, Friday···from: Hans Hagen··· On 10/11/2013 1:00 PM, Philipp Gesang wrote: ···date: 2013-10-10, Thursday···from: Thangalin··· I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle}

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Hans Hagen
On 10/12/2013 2:09 AM, Philipp Gesang wrote: Btw. the behavior of mfun_trial_run is not very intuitive. I’d expect it to work like \iftrialtypesetting, but in a single-pass context it evaluates to true: keep in mind that one really needs to process the text in order to get the dimensions