From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46471 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: Re: error when using uniqueMPgraphics Date: Mon, 22 Dec 2008 23:33:58 -0600 Message-ID: <49507846.7080608@sil.org> References: <4946E2E2.1050108@sil.org> <49476FDB.80309@wxs.nl> <4947CEE1.6040107@wxs.nl> <4947E4A7.4060602@sil.org> <4947E764.9030205@wxs.nl> <49480147.5030109@sil.org> <49505FA8.2010002@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230010563 5246 80.91.229.12 (23 Dec 2008 05:36:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Dec 2008 05:36:03 +0000 (UTC) Cc: jelle_huisman@sil.org To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 23 06:37:09 2008 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 1LEzx5-0004EJ-Rm for gctc-ntg-context-518@m.gmane.org; Tue, 23 Dec 2008 06:37:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E7501FC36; Tue, 23 Dec 2008 06:35:53 +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 17016-04; Tue, 23 Dec 2008 06:34:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F8E71FBC6; Tue, 23 Dec 2008 06:34:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B227D1FBC6 for ; Tue, 23 Dec 2008 06:34:39 +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 17441-01 for ; Tue, 23 Dec 2008 06:34:03 +0100 (CET) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by ronja.ntg.nl (Postfix) with ESMTP id 9FB901FB95 for ; Tue, 23 Dec 2008 06:34:02 +0100 (CET) Original-Received: from mail.link77.net (mail.link77.net [172.22.0.125]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id mBN5Y1Kf014037 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 23 Dec 2008 00:34:02 -0500 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.2 (ClamAV engine v0.94.1) X-ExtScanner: Niversoft's Find_Attachments Original-Received: from [70.247.117.160] (account lars_huttar@sil.org HELO [192.168.1.100]) by mail.link77.net (CommuniGate Pro SMTP 5.2.10) with ESMTPSA id 204267200; Tue, 23 Dec 2008 00:34:01 -0500 User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) In-Reply-To: <49505FA8.2010002@sil.org> X-Enigmail-Version: 0.95.7 X-Scanned-By: MIMEDefang 2.62 on 172.22.0.51 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46471 Archived-At: On 12/22/2008 9:48 PM, Lars Huttar wrote: > On 12/16/2008 1:28 PM, Lars Huttar wrote [Re: [NTG-context] distributed > / parallel TeX?]: >> On 12/16/2008 11:37 AM, Hans Hagen wrote: >>> Lars Huttar wrote: > ... >>>> The advice I received said to define each mpgraphic using >>>> \startuseMPgraphic (we have about 18 of these), associate them with >>>> overlays using \defineoverlay (again, we have 18), and then use them in >>>> table cells using statements like >>>> \setupTABLE[c][first][background={LRtb}] >>>> Empirically, this seems to end up using one mpgraphic per table cell, >>>> hence our thousands of mpgraphics. I don't know why a new mpgraphic >>>> would be created for each cell. Can someone suggest a way to avoid this? >>> metafun manual: unique mp graphics >> Great... >> I converted our useMPgraphics to uniqueMPgraphics. This reduced our >> number of mpgraphics from 7000 to 800! >> >> Unfortunately the result doesn't look quite right... but since we may >> not need to use mpgraphics anyway thanks to your patches, I'll hold off >> on debugging the result. > > When I use uniqueMPgraphics, things run faster, but I get errors and > warnings. They look like this: > > ** WARNING ** Specified (image) object doesn't exist: MP::139 > ** WARNING ** Interpreting special command uxobj (pdf:) failed. > ** WARNING ** >> at page="32" position="(216.633, 268.835)" (in PDF) > ** WARNING ** >> xxx "pdf:uxobj @MP::139" > ** WARNING ** Error locating image file "MP::185" > ** WARNING ** Specified (image) object doesn't exist: MP::185 > ** WARNING ** Interpreting special command uxobj (pdf:) failed. > ** WARNING ** >> at page="32" position="(250.44, 268.835)" (in PDF) > ** WARNING ** >> xxx "pdf:uxobj @MP::185" > ** WARNING ** Error locating image file "MP::141" > ** WARNING ** Specified (image) object doesn't exist: MP::141 > ** WARNING ** Interpreting special command uxobj (pdf:) failed. > ** WARNING ** >> at page="32" position="(284.247, 268.835)" (in PDF) > ** WARNING ** >> xxx "pdf:uxobj @MP::141" > ** WARNING ** Error locating image file "MP::186" > ** WARNING ** Specified (image) object doesn't exist: MP::186 > ** WARNING ** Interpreting special command uxobj (pdf:) failed. > ** WARNING ** >> at page="32" position="(316.111, 268.835)" (in PDF) > ** WARNING ** >> xxx "pdf:uxobj @MP::186" > ** WARNING ** Error locating image file "MP::143" > ** WARNING ** Specified (image) object doesn't exist: MP::143 > ** WARNING ** Interpreting special command uxobj (pdf:) failed. > ** WARNING ** >> at page="32" position="(352.456, 268.835)" (in PDF) > ** WARNING ** >> xxx "pdf:uxobj @MP::143" > > > > The tex looks like: > > \startMPinitializations > numeric FrameDist, Inner, Middle, Outer ; > FrameDist := 0.6; > Middle := -0.2 ; > Inner := Middle - FrameDist; > Outer := Middle + FrameDist; > \stopMPinitializations > > % 0 double sides > \startuniqueMPgraphic{table:frame:lrtb} % all single > draw OverlayBox enlarged Middle ; > setbounds currentpicture to OverlayBox ; > \stopuniqueMPgraphic > > % 1 double side > \startuniqueMPgraphic{table:frame:Lrtb} % left double > draw OverlayBox leftenlarged Outer topenlarged Middle bottomenlarged > Middle rightenlarged Middle ; > draw OverlayBox leftenlarged Inner topenlarged Middle bottomenlarged > Middle rightenlarged Middle ; > setbounds currentpicture to OverlayBox ; > \stopuniqueMPgraphic > ... > % 0 double sides > \defineoverlay[lrtb][\uniqueMPgraphic{table:frame:lrtb}] > % 1 double side > \defineoverlay[Lrtb][\uniqueMPgraphic{table:frame:Lrtb}] > \defineoverlay[lRtb][\uniqueMPgraphic{table:frame:lRtb}] > \defineoverlay[lrTb][\uniqueMPgraphic{table:frame:lrTb}] > \defineoverlay[lrtB][\uniqueMPgraphic{table:frame:lrtB}] > > ... > > \def\setuptableone{\setupTABLE[frame=off,split=no,option=stretch,offset=0.85mm,distance=0mm,columndistance=0mm,leftmargindistance=0mm,rightmargindistance=0mm] > \setupTABLE[r][each][height=0.6cm,align={middle,lohi}] > \setupTABLE[2,3,4,5,6,7][4,5,6,7,8,9][align={flushright,lohi}] > \setupTABLE[1][4,5,6,7,8,9][align={flushleft,lohi}] > \setupTABLE[c][1][background={LRtb}] > \setupTABLE[c][2,4][background={Lrtb}] > ...} > > \bgroup > \setuptableone > \startTabTableHeader > [nc=7,height=0.8cm,align={right,lohi}]\switchtobodyfont[SansB,\countryheadersize]{Table > 1.} > ... > Sorry, I left out a couple of things I meant to say... Basically, when we run with uniqueMPgraphic instead of useMPgraphic, we get a lot fewer mpgraphic files; but the tables we produce lack the outer border. And we get the above errors. Googling the errors leads us to dvipdfmx, e.g. http://tug.org/texlive/devsrc/Build/source/texk/dvipdfmx/src/spc_pdfm.c http://dvipdfmx.sourcearchive.com/documentation/1:20050831-5/pdfximage_8c-source.html But I don't think dvipdfmx is the cause. Can anyone explain the error messages or suggest a fix? We would love to use uniqueMPgraphics for efficiency, but we can't if it gives the wrong result... Thanks, Lars ___________________________________________________________________________________ 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 ___________________________________________________________________________________