ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* PDF Coloring.
@ 2000-10-10 12:03 Giuseppe Bilotta
  2000-10-11  8:51 ` Hans Hagen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Giuseppe Bilotta @ 2000-10-10 12:03 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-10-15 20:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-10 12:03 PDF Coloring 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 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).