Re: [NTG-context] loop textext and \MPstring{… }

2009-08-13 Thread Andreas Harder
Am 13.08.2009 um 05:00 schrieb Aditya Mahajan:You just need to work a little harder.\startbuffer[1]This is a test\stopbuffer\startbuffer[2]Another test\stopbuffer\startbuffer[3]And again\stopbuffer\startluacode userdata = userdata or {} function userdata.shift(i) return "(" .. i .. "cm ," .. i ..

Re: [NTG-context] loop textext and \MPstring{… }

2009-08-13 Thread Andreas Harder
Am 12.08.2009 um 23:22 schrieb Hans Hagen: Mojca Miklavec wrote: On Wed, Aug 12, 2009 at 12:51, Andreas Harder wrote: Am 12.08.2009 um 07:40 schrieb Aditya Mahajan: Another way to do this is to use \TeXtext{1}{ABC} etc. and then call draw sometxt(i) For Sec 4.5 of Mojca's my way on

Re: [NTG-context] loop textext and \MPstring{… }

2009-08-12 Thread Andreas Harder
Am 12.08.2009 um 07:40 schrieb Aditya Mahajan: On Tue, 11 Aug 2009, Andreas Harder wrote: Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext \startMPpage[offset=1ex,width=\paperwidth,height=\paperheight] for i=1 upto 3: draw

Re: [NTG-context] loop textext and \MPstring{…}

2009-08-12 Thread Aditya Mahajan
On Wed, 12 Aug 2009, Andreas Harder wrote: Am 12.08.2009 um 07:40 schrieb Aditya Mahajan: On Tue, 11 Aug 2009, Andreas Harder wrote: Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext

Re: [NTG-context] loop textext and \MPstring{… }

2009-08-12 Thread Andreas Harder
Am 12.08.2009 um 15:25 schrieb Aditya Mahajan: On Wed, 12 Aug 2009, Andreas Harder wrote: Am 12.08.2009 um 07:40 schrieb Aditya Mahajan: On Tue, 11 Aug 2009, Andreas Harder wrote: Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI}

Re: [NTG-context] loop textext and \MPstring{…}

2009-08-12 Thread Mojca Miklavec
On Wed, Aug 12, 2009 at 12:51, Andreas Harder wrote: Am 12.08.2009 um 07:40 schrieb Aditya Mahajan: Another way to do this is to use \TeXtext{1}{ABC} etc. and then call draw sometxt(i) For Sec 4.5 of Mojca's my way on sometxt http://dl.contextgarden.net/myway/sometxt.pdf Thank you

Re: [NTG-context] loop textext and \MPstring{… }

2009-08-12 Thread Hans Hagen
Aditya Mahajan wrote: On Wed, 12 Aug 2009, Andreas Harder wrote: Am 12.08.2009 um 07:40 schrieb Aditya Mahajan: On Tue, 11 Aug 2009, Andreas Harder wrote: Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext

Re: [NTG-context] loop textext and \MPstring{…}

2009-08-12 Thread Hans Hagen
Mojca Miklavec wrote: On Wed, Aug 12, 2009 at 12:51, Andreas Harder wrote: Am 12.08.2009 um 07:40 schrieb Aditya Mahajan: Another way to do this is to use \TeXtext{1}{ABC} etc. and then call draw sometxt(i) For Sec 4.5 of Mojca's my way on sometxt

Re: [NTG-context] loop textext and \MPstring{… }

2009-08-12 Thread Andreas Harder
Am 12.08.2009 um 20:34 schrieb Mojca Miklavec: I'm sure that there's a workaround (or at least a dozen of other ways), but I have no time (and my computer is being repaired again) to inspect right now. Some tips? MKIV is both very powerful and fast, so you could probably also define strings

Re: [NTG-context] loop textext and \MPstring{…}

2009-08-12 Thread Aditya Mahajan
On Wed, 12 Aug 2009, Andreas Harder wrote: In the real world“ I've stripped quotes form another document and stored them in buffer-environments (attachment). Save them as lua tables. Much easier to manipulate than tex objects. With your solution I've no idea how to incorporate them in a

[NTG-context] loop textext and \MPstring{… }

2009-08-11 Thread Andreas Harder
Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext \startMPpage[offset=1ex,width=\paperwidth,height=\paperheight] for i=1 upto 3: draw textext(\MPstring{i}) shifted(i*cm,i*cm) ; endfor; \stopMPpage \stoptext There is no

Re: [NTG-context] loop textext and \MPstring{… }

2009-08-11 Thread Hans Hagen
Andreas Harder wrote: Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext \startMPpage[offset=1ex,width=\paperwidth,height=\paperheight] for i=1 upto 3: draw textext(\MPstring{i}) shifted(i*cm,i*cm) ; endfor; \stopMPpage

Re: [NTG-context] loop textext and \MPstring{…}

2009-08-11 Thread Aditya Mahajan
On Tue, 11 Aug 2009, Andreas Harder wrote: Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext \startMPpage[offset=1ex,width=\paperwidth,height=\paperheight] for i=1 upto 3: draw textext(\MPstring{i}) shifted(i*cm,i*cm) ;