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 righ

Re: [NTG-context] Code Called Twice?

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

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Hans Hagen
On 10/11/2013 1:00 PM, Philipp Gesang 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{headin

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 pe

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} ) ro

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Philipp Gesang
· > > 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 > with

[NTG-context] Code Called Twice?

2013-10-10 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