From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2952 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: PDF Coloring. Date: Wed, 11 Oct 2000 11:29:37 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001011112937.019cbea0@pop.wxs.nl> References: <000801c032f6$3c5f5c40$2f450e97@nuovo> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035393723 13075 80.91.224.250 (23 Oct 2002 17:22:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:22:03 +0000 (UTC) Cc: "ConTeXt" Original-To: "Giuseppe Bilotta" In-Reply-To: <000801c032f6$3c5f5c40$2f450e97@nuovo> Xref: main.gmane.org gmane.comp.tex.context:2952 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2952 At 02:03 PM 10/10/00 +0200, Giuseppe Bilotta wrote: >Hello, I discovered some sort of bug, but I don't know if the problem is >intrinsinc the PDF spec, or depends on some ConTeXt interaction with colors. Actually it's both: an interaction between color switching and vadjust which changed the order in the vertical list so that the stopcode end up mixed. This is not an easy problem to solve. It does work ok with \margintext: \def\Rev% {\dosingleempty\doRev} \def\doRev[#1]% {\iffirstargument{\margintext{\color[blue]{#1}}}\fi \groupedcommand{\startcolor[red]}{\stopcolor}} But, i would prefer the following, \def\startRev#1% {\margintext{\color[blue]{#1}}% \startcolor[red]} \def\stopRev% {\stopcolor} \startRev{some text} bla bla \stopRev ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE 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 -------------------------------------------------------------------------