From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45195 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: Clipping bug in MetaPost with MkIV Date: Thu, 30 Oct 2008 14:36:49 +0100 Message-ID: References: <115224fb0810300106m7d77614ehdeb2272707a827f5@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1049573199==" X-Trace: ger.gmane.org 1225373923 29870 80.91.229.12 (30 Oct 2008 13:38:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2008 13:38:43 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 30 14:39:45 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KvXkQ-0000PS-55 for gctc-ntg-context-518@m.gmane.org; Thu, 30 Oct 2008 14:39:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A3E841FCDE; Thu, 30 Oct 2008 14:38:29 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23300-09-5; Thu, 30 Oct 2008 14:37:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C93E81FC7B; Thu, 30 Oct 2008 14:37:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6F31F1FC0D for ; Thu, 30 Oct 2008 14:37:25 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18977-03-18 for ; Thu, 30 Oct 2008 14:36:50 +0100 (CET) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by ronja.ntg.nl (Postfix) with ESMTP id D3D751FCA1 for ; Thu, 30 Oct 2008 14:36:49 +0100 (CET) Original-Received: by fk-out-0910.google.com with SMTP id 18so469060fks.2 for ; Thu, 30 Oct 2008 06:36:49 -0700 (PDT) Original-Received: by 10.187.238.1 with SMTP id p1mr244781far.87.1225373809635; Thu, 30 Oct 2008 06:36:49 -0700 (PDT) Original-Received: by 10.187.211.5 with HTTP; Thu, 30 Oct 2008 06:36:49 -0700 (PDT) In-Reply-To: <115224fb0810300106m7d77614ehdeb2272707a827f5@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:45195 Archived-At: --===============1049573199== Content-Type: multipart/alternative; boundary="----=_Part_21459_23756135.1225373809575" ------=_Part_21459_23756135.1225373809575 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Oct 30, 2008 at 9:06 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > Hi, > > I make a hole in a MetaPost graphic and add a graphic as background but > in MkIV I get no hole but the lines I try to remove are still visible. > > All files with the two results from MkII (what I want) and MkIV are in > the attachment. > > \starttext > > \startMPcode > > picture temp ; > path mask ; > > draw (0,1cm)--(2cm,1cm) ; > draw (1cm,0)--(1cm,2cm) ; > > temp := currentpicture ; > currentpicture := nullpicture ; > mask := unitsquare scaled 2cm -- reverse fullsquare scaled 1cm shifted > (1cm,1cm) -- cycle ; > clip temp to mask ; > currentpicture := temp ; > draw fullsquare scaled 5mm shifted (1cm,1cm) ; > > temp := currentpicture ; > currentpicture := nullpicture ; > externalfigure "holz280.jpg" scaled 2cm ; > addto currentpicture also temp ; > > \stopMPcode > > \stoptext > The same results here Linux mark 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown MtxRun | current version: 2008.10.30 08:50 -- luigi ------=_Part_21459_23756135.1225373809575 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Thu, Oct 30, 2008 at 9:06 AM, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
Hi,

I make a hole in a MetaPost graphic and add a graphic as background but
in MkIV I get no hole but the lines I try to remove are still visible.

All files with the two results from MkII (what I want) and MkIV are in
the attachment.

\starttext

\startMPcode

picture temp ;
path mask ;

draw (0,1cm)--(2cm,1cm) ;
draw (1cm,0)--(1cm,2cm) ;

temp := currentpicture ;
currentpicture := nullpicture ;
mask := unitsquare scaled 2cm -- reverse fullsquare scaled 1cm shifted
(1cm,1cm) -- cycle ;
clip temp to mask ;
currentpicture := temp ;
draw fullsquare scaled 5mm shifted (1cm,1cm) ;

temp := currentpicture ;
currentpicture := nullpicture ;
externalfigure "holz280.jpg" scaled 2cm ;
addto currentpicture also temp ;

\stopMPcode

\stoptext
The same results here
Linux mark 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
MtxRun | current version: 2008.10.30 08:50

--
luigi

------=_Part_21459_23756135.1225373809575-- --===============1049573199== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1049573199==--