[metapost] Get started

Franck Pastor franck.pastor at mac.com
Sun Jan 15 23:26:52 CET 2012


Le 15 janv. 2012 à 15:30, abewayer a écrit :


> I don't have questions about the code but I need a help about tecnical
> use of a mp file.
> 
> Exemple:
> 
> I got a file like this:
> 
> drow (20,20)--(0,0)
> 
> Just a simple istruction, just a line.
> How can I visualize this line?
> 
> I have tried with the command $ mpost file.mp
> 
> But I obtain an output like this:
> 
> abeplace:/home/abewayer# mpost prova.mp
> This is MetaPost, version 1.208 (kpathsea version 5.0.0)
> (./prova.mp
>>> drow  
> ! Isolated expression.
> <to be read again> 
>                   (
> l.1 drow (
>          20,20)--(0,0)
> ? 


You must enter "draw", not "drow", and with a semicolon at the end of the line: 

draw (20, 20) -- (0,0);

It should remove this error message.

I agree with Dan T. Abell about the tutorial by André Heck, it is extremely valuable.

Regards,

Franck Pastor





More information about the metapost mailing list