Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Zhichu Chen
On Sun, May 24, 2009 at 6:36 PM, Hans Hagen pra...@wxs.nl wrote: something like state=once would be handy but i'm not going to touch that code till i'm redoing some page-* code in mkiv I don't get it, the once made me confused. Should that just be affectedpage=current or range={1,2,15} which

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Hans Hagen
Zhichu Chen wrote: On Sun, May 24, 2009 at 6:36 PM, Hans Hagen pra...@wxs.nl wrote: something like state=once would be handy but i'm not going to touch that code till i'm redoing some page-* code in mkiv I don't get it, the once made me confused. Should that just be affectedpage=current or

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Wolfgang Schuster
Am 25.05.2009 um 08:55 schrieb Zhichu Chen: On Sun, May 24, 2009 at 6:36 PM, Hans Hagen pra...@wxs.nl wrote: something like state=once would be handy but i'm not going to touch that code till i'm redoing some page-* code in mkiv I don't get it, the once made me confused. Should that

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Zhichu Chen
On Mon, May 25, 2009 at 3:12 PM, Hans Hagen pra...@wxs.nl wrote: well, we have already state=repeat: same background each upcoming page state=start : enable background (calculate each time) state=stop  : disable backgrond so we would have state=once  : enable background and after this

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Zhichu Chen
On Mon, May 25, 2009 at 3:30 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 25.05.2009 um 08:55 schrieb Zhichu Chen: On Sun, May 24, 2009 at 6:36 PM, Hans Hagen pra...@wxs.nl wrote: something like state=once would be handy but i'm not going to touch that code till i'm

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Wolfgang Schuster
Am 25.05.2009 um 09:42 schrieb Zhichu Chen: but it shows only up in Adobe Reader I don't know what's that mean. You have to view the PDF view Adobe Reader to see effect for the chapter page, when I open the file with Preview App the chapter page has black text on a white background.

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Wolfgang Schuster
Am 25.05.2009 um 09:12 schrieb Hans Hagen: well, we have already state=repeat: same background each upcoming page state=start : enable background (calculate each time) state=stop : disable backgrond These settings have no effect on the background color, you can control with them only the

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-25 Thread Hans Hagen
Wolfgang Schuster wrote: Am 25.05.2009 um 09:12 schrieb Hans Hagen: well, we have already state=repeat: same background each upcoming page state=start : enable background (calculate each time) state=stop : disable backgrond These settings have no effect on the background color, you can

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-24 Thread Wolfgang Schuster
Am 24.05.2009 um 06:12 schrieb Zhichu Chen: As you said before, in my problem, this kind of handler could break something like hyper-links, and I assume Yue wanted those kind of stuffs. I don't think this is a problem for this example because the page dimension are always the same while

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-24 Thread Zhichu Chen
On Sun, May 24, 2009 at 4:00 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 24.05.2009 um 06:12 schrieb Zhichu Chen: As you said before, in my problem, this kind of handler could break something like hyper-links, and I assume Yue wanted those kind of stuffs. I don't think

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-24 Thread Wolfgang Schuster
Am 24.05.2009 um 10:46 schrieb Zhichu Chen: Maybe just a \start(stop)setups which changes the background back to normal and \prependtoks it to some token list. So is there an \everypage or \everyshipout token? Then using \setuphead (I don't know if it's appropriate) or \appendtoks to

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-24 Thread Zhichu Chen
On Sun, May 24, 2009 at 4:57 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 24.05.2009 um 10:46 schrieb Zhichu Chen: Maybe just a \start(stop)setups which changes the background back to normal and \prependtoks it to some token list. So is there an \everypage or

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-24 Thread Hans Hagen
Zhichu Chen wrote: As you said before, in my problem, this kind of handler could break something like hyper-links, and I assume Yue wanted those kind of stuffs. Maybe just a \start(stop)setups which changes the background back to normal and \prependtoks it to some token list. So is there an

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-23 Thread Yue Wang
anyone can help? thanks. On Thu, May 21, 2009 at 9:25 AM, Yue Wang yuleo...@gmail.com wrote: Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first page of each chapter) to be really distinctive.

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-23 Thread Zhichu Chen
On Thu, May 21, 2009 at 9:25 AM, Yue Wang yuleo...@gmail.com wrote: Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first page of each chapter) to be really distinctive. that is, I define a dark

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-23 Thread Yue Wang
On Sun, May 24, 2009 at 12:49 AM, Zhichu Chen zhichu.c...@gmail.com wrote: On Thu, May 21, 2009 at 9:25 AM, Yue Wang yuleo...@gmail.com wrote: Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-23 Thread Wolfgang Schuster
Am 21.05.2009 um 03:25 schrieb Yue Wang: Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first page of each chapter) to be really distinctive. that is, I define a dark color background, and want all

Re: [NTG-context] two newbie questions (about conditional processing)

2009-05-23 Thread Zhichu Chen
As you said before, in my problem, this kind of handler could break something like hyper-links, and I assume Yue wanted those kind of stuffs. Maybe just a \start(stop)setups which changes the background back to normal and \prependtoks it to some token list. So is there an \everypage or

[NTG-context] two newbie questions (about conditional processing)

2009-05-20 Thread Yue Wang
Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first page of each chapter) to be really distinctive. that is, I define a dark color background, and want all the text on the first page set in white. how