From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46467 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: error when using uniqueMPgraphics Date: Mon, 22 Dec 2008 21:48:56 -0600 Message-ID: <49505FA8.2010002@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> 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 1230004321 26366 80.91.229.12 (23 Dec 2008 03:52:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Dec 2008 03:52:01 +0000 (UTC) Cc: jelle_huisman@sil.org To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 23 04:53:08 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 1LEyKS-00018X-2H for gctc-ntg-context-518@m.gmane.org; Tue, 23 Dec 2008 04:53:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 73B671FC78; Tue, 23 Dec 2008 04:51: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 10871-02-19; Tue, 23 Dec 2008 04:50:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B23161FB3C; Tue, 23 Dec 2008 04:50:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 286821FA4C for ; Tue, 23 Dec 2008 04:50:40 +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 10871-02-18 for ; Tue, 23 Dec 2008 04:49:40 +0100 (CET) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by ronja.ntg.nl (Postfix) with ESMTP id 9D0B71FBBA for ; Tue, 23 Dec 2008 04:49:00 +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 mBN3mxhY006344 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 22 Dec 2008 22:48:59 -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 204259707; Mon, 22 Dec 2008 22:48:58 -0500 User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) In-Reply-To: <49480147.5030109@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:46467 Archived-At: 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.} ... ___________________________________________________________________________________ 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 ___________________________________________________________________________________