From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64982 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Including xfig graphics Date: Fri, 07 Jan 2011 10:09:47 +0100 Message-ID: <4D26D85B.4080903@elvenkind.com> References: <20110106122113.GA32531@hal.foo> <4D26BC92.2000108@elvenkind.com> <201101071007.15632.alan.braslau@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294391421 16292 80.91.229.12 (7 Jan 2011 09:10:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 09:10:21 +0000 (UTC) Cc: ntg-context@ntg.nl, Florian Unglaub To: Alan BRASLAU Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 07 10:10:17 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 1Pb8Kv-000849-6I for gctc-ntg-context-518@m.gmane.org; Fri, 07 Jan 2011 10:10:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0FA9CA9E5; Fri, 7 Jan 2011 10:10:13 +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 0rTWy7bVKU4g; Fri, 7 Jan 2011 10:10:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1577CA9E0; Fri, 7 Jan 2011 10:10:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5DB7CA95B for ; Fri, 7 Jan 2011 10:09:59 +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 ZqTN0C+KbClC for ; Fri, 7 Jan 2011 10:09:57 +0100 (CET) Original-Received: from filter7-ams.mf.surf.net (filter7-ams.mf.surf.net [192.87.102.75]) by balder.ntg.nl (Postfix) with ESMTP id F325ECA94A for ; Fri, 7 Jan 2011 10:09:56 +0100 (CET) Original-Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by filter7-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0799smQ006810 for ; Fri, 7 Jan 2011 10:09:55 +0100 Original-Received: from boo.fritz.box (boo.demon.nl [83.163.247.99]) (authenticated bits=0) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id p0799l3t058854; Fri, 7 Jan 2011 10:09:48 +0100 (CET) (envelope-from taco@elvenkind.com) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101030 Mandriva/3.1.6-1mdv2011.0 (2011.0) Thunderbird/3.1.6 In-Reply-To: <201101071007.15632.alan.braslau@cea.fr> X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=194.109.24.27; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0DDQx9SwV - 7d7d969fbb80 - 20110107 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.75 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:64982 Archived-At: On 01/07/2011 10:07 AM, Alan BRASLAU wrote: > Hello, > > Ultimately, you will probably be more satisfied using Metapost graphics > "natively" within ConTeXt. With xfig, you can export to Metapost. > This code can probably be directly used by ConTexT, or perhaps with > minor modifications. 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 %SetFigFont macros for latex verbatimtex % \begingroup\makeatletter\ifx\SetFigFont\undefined% \gdef\SetFigFont#1#2#3#4#5{% \reset@font\fontsize{#1}{#2pt}% \fontfamily{#3}\fontseries{#4}\fontshape{#5}% \selectfont}% \fi\endgroup% \ifx\SetFigFontSize\undefined% \gdef\SetFigFontSize#1#2{% \fontsize{#1}{#2pt}% \selectfont}% \fi% etex It looks configurable-ish, but I do not feel like experimenting without a proper test case. Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________