[metapost] Automatic labeling (fwd)
Boguslaw Jackowski
B_Jackowski at GUST.org.pl
Tue Nov 14 19:29:36 CET 2006
Mojca wrote:
> You can compile the following code with "texexec filename.tex" if you
> have ConTeXt installed:
>
> % filename.tex:
>
> \starttext
> \startMPcode
> pair v[];
> v[1]=origin;
> v[2]=(1cm,2cm);
>
> for i=1 upto 2:
> label(textext(decimal i), v[i]); % could be label(textext("abc"))
> endfor;
> \stopMPcode
> \stoptext
If you remove backslashed commands and add the command
end.
at the end, the script should work with mpost.
-- Jacko
--
BOP s. c.
ul. Bora-Komorowskiego 24, 80-377 Gdansk, Poland
tel. (+48 58) 553 46 59, fax (+48 58) 511 03 81
bop at bop.com.pl, http://www.bop.com.pl
More information about the metapost
mailing list