<div dir="ltr">I use this structure:<br><br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;">verbatimtex</p>
<p style="margin: 0px; text-indent: 0px;">\documentclass[10pt]{article}</p>
<p style="margin: 0px; text-indent: 0px;">\usepackage{palatino}</p>
<p style="margin: 0px; text-indent: 0px;">\begin{document}</p>
<p style="margin: 0px; text-indent: 0px;">etex;</p>(inputs and definitions)<br><p style="margin: 0px; text-indent: 0px;">beginfig(1);</p>...........<br><p style="margin: 0px; text-indent: 0px;">endfig;</p>
<p style="margin: 0px; text-indent: 0px;">verbatimtex</p>
<p style="margin: 0px; text-indent: 0px;">\end{document}</p>
<p style="margin: 0px; text-indent: 0px;">etex;</p>
<p style="margin: 0px; text-indent: 0px;">%%% the end.</p>
<p style="margin: 0px; text-indent: 0px;">bye</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">and then run mpost -tex=latex on this. Is this correct? What is the recommended way? I am asking this because when I do the same thing with some of the metapost example from "LaTeX Graphics Companion", I get errors.<br>
</p><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>