From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5487 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: colors and text, prettyprinting Date: Tue, 04 Sep 2001 11:59:09 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20010904115020.02ddea28@server-1> References: <200109031249.OAA09750@sol.cs.uni-dortmund.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035396077 2027 80.91.224.250 (23 Oct 2002 18:01:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:01:17 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Patrick Gundlach In-Reply-To: <200109031249.OAA09750@sol.cs.uni-dortmund.de> Xref: main.gmane.org gmane.comp.tex.context:5487 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5487 At 02:49 PM 9/3/2001 +0200, Patrick Gundlach wrote: >Hi, > >is this a bug or a feature? > >% output=pdf >\setupcolors[state=start] >\starttext >\yellow >yellow?? >\stoptext > >generates endless(?) pages. Using \bgroup...\egroup or { .. } is >ok a buggy feature; i'm still breeding on a proper solution for this; it has to do with teh color reset node ending up on the next page, which means that it's non empty, which means another page ... Since you don't groupe \yellow, the stopcolor ends up after a group; try \startcolor[...] \stopcolor instead, or try [which is what we do currently] \appendtoks \startcolor[yellow]\to\everystarttext \appendtoks \stopcolor \to\everystoptext Prettyprinting works the way I wanted to. Thanks! One more >question: >How can I define something like %%\ N in TeX prettyprinting: ah, you want to become a wizzard: \installnewpretty [see verb-ini.tex for example]; beware of grouping ! Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------