From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52946 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: overprinting Date: Wed, 16 Sep 2009 13:03:44 +0200 Message-ID: <4AB0C610.6010904@gmx.net> References: <4AAD087B.40409@gmx.net> <4AAD11F7.3050105@wxs.nl> <4AAD172A.6050801@gmx.net> <4AAD1BD9.6050103@wxs.nl> <4AAD2269.8090701@gmx.net> <4AAD37DC.6000805@wxs.nl> <4AAD4C7C.6070905@gmx.net> <4AAD59CE.70907@wxs.nl> <4AAD69F6.8060209@gmx.net> <4AAF6ED1.2010209@wxs.nl> <4AAF9FDD.8030902@gmx.net> <4AAFA2BF.5010601@wxs.nl> <4AAFAB29.2030604@gmx.net> <4AB009D4.9050100@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253099054 28045 80.91.229.12 (16 Sep 2009 11:04:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 11:04:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 16 13:04:07 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MnsIx-0008IA-C4 for gctc-ntg-context-518@m.gmane.org; Wed, 16 Sep 2009 13:04:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2413C9B10; Wed, 16 Sep 2009 13:04:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2RNOWobJeZyp; Wed, 16 Sep 2009 13:04:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 66DA9C9AD9; Wed, 16 Sep 2009 13:04:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B95F5C9AD9 for ; Wed, 16 Sep 2009 13:03:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09YK4s9AlhQD for ; Wed, 16 Sep 2009 13:03:51 +0200 (CEST) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by balder.ntg.nl (Postfix) with SMTP id 499D7C9AC7 for ; Wed, 16 Sep 2009 13:03:45 +0200 (CEST) Original-Received: (qmail invoked by alias); 16 Sep 2009 11:03:44 -0000 Original-Received: from i577BD7D4.versanet.de (EHLO [192.168.1.3]) [87.123.215.212] by mail.gmx.net (mp040) with SMTP; 16 Sep 2009 13:03:44 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX19Did4fL/FD/WVFU0MC2czc9Ry03Nw8aKV5HZCy4u n0ZbPrCFkFTWtK User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <4AB009D4.9050100@wxs.nl> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:52946 Archived-At: Hi Hans, hi all, I use overprinting only for the texts (not global). Most times the texts are stored in a \[h|v]box first, before they are added to the rest (offsets, background, whatever). So thinks look like this (very simplified): \setbox\Textbox\hbox{\startoverprint Some text.\stopoverprint} Overprinting should be activated only inside of this box. Sadly mkiv adds this attribute to most of the graphics with text. The first graphics is always OK, but the following graphics are overprinted as a whole. I have compared the pdf of pdftex and luatex and the main difference is, that luatex 'optimizes' the overprinted texts by *grouping* them. Instead of two or more independent areas (one /GSoverprint ... /GSknockout for every text), like in mkii, % pdftex %---------------------------- /GSoverprint gs % text 1 BT /Fm?? first overprinted text ... /GSknockout gs /GSoverprint gs % text 2 BT /Fm?? second overprinted text ... /GSknockout gs %---------------------------- I get % luatex %---------------------------- /GSoverprint gs % text 1 and 2 BT /Fm?? first overprinted text ... /Fm?? second overprinted text ... /GSknockout gs %---------------------------- This is right from the point of overprinting, but the texts are still part of different graphics (rendering is done at different times). I guess this somehow corrupts the grouping. The first graphic in such a group is always OK, all following graphics are overprinted as a whole. I have tested this with more than two graphics (resulting in two multiple groups) and I get the same effect. No minimal yet. Any thoughts? Best wishes, Peter Hans Hagen schrieb: > Peter Rolf wrote: >> Hans Hagen schrieb: >>> Peter Rolf wrote: >>> >>>> first tests show that there are still scope problems in mkiv (e.g. >>>> a complete button is set to overprint instead of the text only). >>>> no clue yet, but i'm working on it... >>> >>> sure, as overprint is not aware of any content so you need to use >>> knockout then >>> >> mh, isn't \stopoverprint enabling knockout automatically? >> or do i need a \ExtGState entry with knockout at the document level? >> just started reading in the pdf reference manual... > > it depends ... we have none: no entry at all, knockout: some nil > entry, overprint: special entry > > the thing is that when we have globally overprint on, we need s local > knockout : > > \startoverprint > ... \bgroup ... > \startknockout > ... > \stopknockout > ... \egroup ... > \stopoverprint > > is nicer than > > \startoverprint > ... \bgroup ... > \stopoverprint > ... > \startoverprint > ... \egroup ... > \stopoverprint > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > ___________________________________________________________________________________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________