ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: "ConTeXt" <ntg-context@ntg.nl>
Subject: Re: PDF Coloring.
Date: Wed, 11 Oct 2000 11:29:37 +0200	[thread overview]
Message-ID: <3.0.6.32.20001011112937.019cbea0@pop.wxs.nl> (raw)
In-Reply-To: <000801c032f6$3c5f5c40$2f450e97@nuovo>

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


      parent reply	other threads:[~2000-10-11  9:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-10 12:03 Giuseppe Bilotta
2000-10-11  8:51 ` Hans Hagen
2000-10-11  9:03 ` Hans Hagen
2000-10-14 17:08   ` Giuseppe Bilotta
2000-10-15 20:01     ` Hans Hagen
2000-10-11  9:29 ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.6.32.20001011112937.019cbea0@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).