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.
> <to be read again>
>                  ;
> 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

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to