From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65001 Path: news.gmane.org!not-for-mail From: Florian Unglaub Newsgroups: gmane.comp.tex.context Subject: Re: Including xfig graphics Date: Fri, 7 Jan 2011 16:39:45 +0100 Message-ID: <20110107153945.GA4681@mars.foo> References: <20110106122113.GA32531@hal.foo> <4D26BC92.2000108@elvenkind.com> <201101071007.15632.alan.braslau@cea.fr> <4D26D85B.4080903@elvenkind.com> 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: dough.gmane.org 1294414804 5217 80.91.229.12 (7 Jan 2011 15:40:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 15:40:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 07 16:39:58 2011 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.69) (envelope-from ) id 1PbEQ2-0000R7-Ot for gctc-ntg-context-518@m.gmane.org; Fri, 07 Jan 2011 16:39:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 37E44CA9EE; Fri, 7 Jan 2011 16:39:58 +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 O+u+6sAHZhgU; Fri, 7 Jan 2011 16:39:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70ACACA93B; Fri, 7 Jan 2011 16:39:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 409A5CA93B for ; Fri, 7 Jan 2011 16:39: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 e4Pj9t8DygfB for ; Fri, 7 Jan 2011 16:39:42 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id DEEF4CA92B for ; Fri, 7 Jan 2011 16:39:42 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p07FdfSJ014302 for ; Fri, 7 Jan 2011 16:39:42 +0100 Original-Received: by bwz16 with SMTP id 16so18352691bwz.14 for ; Fri, 07 Jan 2011 07:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=+308s1a5wHvczUecOdLzQ4zUmth3s43BEXpHqwHJsIM=; b=j9bLdUWVDMznJSHMaZpTb6KzorvFglh31rkRci2M2Iq0DPv3nPYlF1rSGyR1qLo1ka tfCrMAA3Bs1pRSlfpFTFpzLRA03dBDV7YNhcNo7c1Pt/Wa7aM5o2sowq8ix2D6Ssan7x dQ4AkJMtE8yQQO1GsVjIARpIa65o8nHOjWYXo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=MXFkhaHkhmUXJnO39z2yrpTM8hwi5GJqPs9PRsqEhWEpcqQqB15QMsXlhIkYsZ83rQ +17VAmyVD6pyop+ySF/mzNydu/Q2qf6YIGVlTEtkslHxMV+L+wsL9TQ4D8KDFZH7wMdH s19dZZ6p7yBoxM66oqF01fPyytdiqPQIUCV2Y= Original-Received: by 10.204.25.207 with SMTP id a15mr7540023bkc.111.1294414781754; Fri, 07 Jan 2011 07:39:41 -0800 (PST) Original-Received: from localhost (p54B5D787.dip.t-dialin.net [84.181.215.135]) by mx.google.com with ESMTPS id v1sm14121510bkt.5.2011.01.07.07.39.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 Jan 2011 07:39:40 -0800 (PST) Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <4D26D85B.4080903@elvenkind.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDQDDGC9 - 10ff937475f7 - 20110107 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:65001 Archived-At: On Fri, Jan 07, 2011 at 10:09:47AM +0100, Taco Hoekwater wrote: > I did a quick test, and the transfig mp code starts with this nice (!) > block of verbatimtex: > > % +MP-ADDITIONAL-HEADER > verbatimtex > %&latex > \documentclass{article} > \begin{document} > etex > % -MP-ADDITIONAL-HEADER [...] > It looks configurable-ish, but I do not feel like experimenting > without a proper test case. I tried exporting to metapost inside xfig aswell yesterday, leading to similar results as posted above. I found out that XFig uses a small shell script called 'fig2dev' to do all the exporting to other formats. This script supports an option '-o' to use plain TeX. I tried \input'ing the resulting .mp file into my ConTeXt-file: \startuseMPgraphic{foo} \input ../figures/bar.fig \stopuseMPgraphic \placefigure[here][fig:foo]{A small test}{ \useMPgraphic{foo} } This, however, doesn't work and shows the figure as 'undefined' in the PDF. My current solution now is to convert the XFig file to MetaPost with fig2dev and use mptopdf. Regards, Florian. PS: Sorry for the duplicate message, Taco. I forgot to CC to the list. -- Florian Unglaub ___________________________________________________________________________________ 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 ___________________________________________________________________________________