ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Giuseppe Bilotta" <oblomov@freemail.it>
Subject: PDF Coloring.
Date: Tue, 10 Oct 2000 14:03:46 +0200	[thread overview]
Message-ID: <000801c032f6$3c5f5c40$2f450e97@nuovo> (raw)

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.
In the preamble I have the following code:

\def\RevNote#1{\inmargin{\startcolor[blue]#1\stopcolor}}
\def\complexRev[#1]#2{\leavevmode%
    \RevNote{#1}%
    \startcolor[red]#2\stopcolor%
}
\def\simpleRev#1{\leavevmode%
    \startcolor[red]#1\stopcolor%
}
\definecomplexorsimple\Rev

and in the text the following "application":

\Rev[some text]{some other text that spans multiple lines. Actually, it's
six or seven lines, but the important aspect is that there are more that one
line. etc etc etc}

Now, all the text should be colored in red, but for the "some text" in the
margin, that should be blue. Instead, the first lineof "some other text ..."
is red, the inmargin is blue, but the rest of the text is black, which is
wrong.

Actually, the original code used \color[red]{#1} et simil, so I thought that
it was a misuse of \color, and used \startcolor ... \stopcolor, finding that
the problem was still there.

A similar problem occurs with similar code:

\def\Miss#1{\inmargin{\startcolor[green]#1\stopcolor}}
\def\Synopsis#1%
  {{\tfxx\setupinterlinespace\startcolor[middlegreen]#1\stopcolor\par}}

When I have a \Miss{something} inside a Synopsis, the whole page gets the
color, instead of just the \Synopsis{ ... } part.

Any ideas on why is it this way?

Since we're talking colors: DVI come out black&white. How can I ensure that
color is used in DVIs too?

Giuseppe Bilotta


             reply	other threads:[~2000-10-10 12:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-10 12:03 Giuseppe Bilotta [this message]
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

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='000801c032f6$3c5f5c40$2f450e97@nuovo' \
    --to=oblomov@freemail.it \
    /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).