From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2942 Path: main.gmane.org!not-for-mail From: "Giuseppe Bilotta" Newsgroups: gmane.comp.tex.context Subject: PDF Coloring. Date: Tue, 10 Oct 2000 14:03:46 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <000801c032f6$3c5f5c40$2f450e97@nuovo> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035393713 12996 80.91.224.250 (23 Oct 2002 17:21:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:21:53 +0000 (UTC) Original-To: "ConTeXt" Xref: main.gmane.org gmane.comp.tex.context:2942 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2942 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