<div dir="ltr">Thanks alot taco. That fixed it. <br><br><div class="gmail_quote">On Wed, Mar 2, 2011 at 2:04 AM, Taco Hoekwater <span dir="ltr"><<a href="mailto:taco@elvenkind.com">taco@elvenkind.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On 03/01/2011 08:16 AM, Vafa Khalighi wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Also if I put the definitions from <a href="http://mpdefs.mp" target="_blank">mpdefs.mp</a> <<a href="http://mpdefs.mp" target="_blank">http://mpdefs.mp</a>> directly<br>
into <a href="http://vafa.mp" target="_blank">vafa.mp</a> <<a href="http://vafa.mp" target="_blank">http://vafa.mp</a>>, no error happens. It seems the error only<br>
happens when I put my definitions inside <a href="http://mpdefs.mp" target="_blank">mpdefs.mp</a> <<a href="http://mpdefs.mp" target="_blank">http://mpdefs.mp</a>><br>
</blockquote>
<br>
In a way, metapost's label processing is blind to its environment:<br>
the btex ... etex processing happens strictly per file. Your<br>
definitions, when they are in <a href="http://mpdefs.mp" target="_blank">mpdefs.mp</a>, therefore never get the verbatimtex ... etex block prepended, and so they do not start with<br>
\documentclass etc., and that is what is producing the error.<br>
<br>
A simple solution is to copy the verbatimtex block in the<br>
<a href="http://mpdefs.mp" target="_blank">mpdefs.mp</a> as well.<br>
<br>
Best wishes,<br><font color="#888888">
Taco<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">If some one say: "You divide ten into two parts: multiply the one by
itself; it will be equal to the other taken eighty-one times."
Computation: You say, ten less thing, multiplied by itself, is a hundred
plus a square less twenty things, and this is equal to eighty-one
things. Separate the twenty things from a hundred and a square, and add
them to eighty-one. It will then be a hundred plus a square, which is
equal to a hundred and one roots. Halve the roots; the moiety is fifty
and a half. Multiply this by itself, it is two thousand five hundred and
fifty and a quarter. Subtract from this one hundred; the remainder is
two thousand four hundred and fifty and a quarter. Extract the root from
this; it is forty-nine and a half. Subtract this from the moiety of the
roots, which is fifty and a half. There remains one, and this is one of
the two parts.<br><br><b>Muḥammad ibn Mūsā al-Khwārizmī</b></div><br>
</div>