From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9928 Path: main.gmane.org!not-for-mail From: Nigel King Newsgroups: gmane.comp.tex.context Subject: Re: metafun and \input graph Date: Fri, 29 Nov 2002 12:53:36 +0000 Sender: ntg-context-admin@ntg.nl Message-ID: References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1038574469 16370 80.91.224.249 (29 Nov 2002 12:54:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 29 Nov 2002 12:54:29 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Hkf5-0004Fr-00 for ; Fri, 29 Nov 2002 13:54:27 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id B143110AE9; Fri, 29 Nov 2002 13:56:38 +0100 (MET) Original-Received: from mailhost2.dircon.co.uk (mailhost2.dircon.co.uk [194.112.32.66]) by ref.ntg.nl (Postfix) with ESMTP id 1F59410AE6 for ; Fri, 29 Nov 2002 13:55:04 +0100 (MET) Original-Received: from [194.112.53.18] (th-en133-018.pool.dircon.co.uk [194.112.53.18]) by mailhost2.dircon.co.uk (Postfix) with ESMTP id C91C0630EA; Fri, 29 Nov 2002 12:55:02 +0000 (GMT) User-Agent: Microsoft-Entourage/10.1.1.2418 Original-To: , Hartmut Henkel In-Reply-To: Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9928 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9928 The beginning of my files typically have something like this before the first beginfig(); input metafun ; input boxes; verbatimtex \setupcolors[state=start] \setupencoding[default=texnansi] \setupbodyfont[pos,11pt,ss] \def\f#1{\framed[frame=off,align=middle]{#1}} \starttext \bf\ss etex input graph init_numbers (textext(btex $-$ etex), textext(btex $1$ etex), textext(btex ${\times}10$ etex), textext(btex ${}^-$ etex), textext(btex ${}^2$ etex)); Fe_base := textext(btex $10$ etex) ; > When I try to run some plain MetaPost foo.mp file, which includes an > \input graph command, through mptopdf, e. g. by the call `mptopdf > foo.mp' fails. Check with texexec --mptex foo.mp shows > > ! Redundant equation. > > ; > l.148 Ten_to0=1; > Ten_to1=10; Ten_to2=100; Ten_to3=1000; Ten_to4=10000; > > These are redundant, since the lines appear first in mp-form.mp and then > are again loaded from graph.mp. > > Is there a way to use mptopdf for conversion of plain/non-metafun > MetaPost files, e. g. a switch for mptopdf? I hope this helps it took me a long time to get the this point! I (with help from many others) wrote the following code for iTeXMax compilation. For other systems ${iTMInput} is the basename of the metapost source file. setenv TEX texexec mpost ${iTMInput} texexec --pdf --fig=c ${iTMInput}.[0-9] ${iTMInput}.[0-9][0-9] ${iTMInput}.[0-9][0-9][0-9] mv texexec.pdf ${iTMInput}.pdf This produces the files to be referenced in a ConTeXt document and a pdf with all the pictures to review them. Nigel