From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85726 Path: news.gmane.org!not-for-mail From: Pol Stra Newsgroups: gmane.comp.tex.context Subject: [metapost] troubles with labels Date: Sun, 29 Dec 2013 12:07:38 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1388315263 5886 80.91.229.3 (29 Dec 2013 11:07:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Dec 2013 11:07:43 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 29 12:07:51 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VxEDl-0002Gj-OF for gctc-ntg-context-518@m.gmane.org; Sun, 29 Dec 2013 12:07:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E189A101E6; Sun, 29 Dec 2013 12:07:48 +0100 (CET) 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 57jaqCkM2FXh; Sun, 29 Dec 2013 12:07:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 81ABE101E8; Sun, 29 Dec 2013 12:07:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 87339101E8 for ; Sun, 29 Dec 2013 12:07:45 +0100 (CET) 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 WH+mZy6oqi7L for ; Sun, 29 Dec 2013 12:07:44 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id BEED3101E6 for ; Sun, 29 Dec 2013 12:07:44 +0100 (CET) Original-Received: from blu0-omc2-s29.blu0.hotmail.com (blu0-omc2-s29.blu0.hotmail.com [65.55.111.104]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rBTB7ho8014609 for ; Sun, 29 Dec 2013 12:07:43 +0100 Original-Received: from BLU0-SMTP381 ([65.55.111.73]) by blu0-omc2-s29.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 29 Dec 2013 03:07:42 -0800 X-TMN: [hFneOoHrXs6+NAYNuF715pbmc7ksowGa] X-Originating-Email: [ryzz@hotmail.fr] Original-Received: from himym.localnet ([78.245.91.75]) by BLU0-SMTP381.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 29 Dec 2013 03:07:41 -0800 User-Agent: KMail/4.12 (Linux/3.12.6-1-ARCH; KDE/4.12.0; x86_64; ; ) X-OriginalArrivalTime: 29 Dec 2013 11:07:41.0567 (UTC) FILETIME=[314380F0:01CF0486] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.55.111.104; country=US; region=WA; city=Redmond; postalcode=98052; latitude=47.6801; longitude=-122.1206; metrocode=819; areacode=425; http://maps.google.com/maps?q=47.6801,-122.1206&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WL7n7HAu - 3a6deb3b5a18 - 20131229 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85726 Archived-At: Dear all, with this minimalist content of metapost file: ``` beginfig(1); dotlabel.ulft("A", origin); endfig; end. ``` And this conteXt file: ``` \starttext \startMPrun input mymp.mp; \stopMPrun \externalfigure[mprun.21][width=5cm] \stoptext ``` The resulting pdf file contains no figure. But this conteXt file works: ``` \starttext \startMPcode dotlabel.ulft("A", origin); \stopMPcode \stoptext ``` As with any metapostfile which does not contain labels. But as soon as there is label, their is no figure. Two last things: if I compile the metapost file with standalone metapost, I can include the resulting file as an external figure. But if I put a label "A'", while with displaying figure with a viewer it is ok, when included in a conteXt file, I only obtain "A" label. Also, if I try to change the font in the metapost file (for example defaultfont:="pplr8r";) it does not work in conteXt. Do you have an explanation or workaround? Thank you ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________