[metapost] enumeration

Steve MC Han hmc0907 at yahoo.com
Sun Nov 1 23:17:21 CET 2009


Nice!
 
Thanks Karel!
 
Where can I find all the numbers attached to the specific characters?

Best,
Steve
 

--- On Sun, 11/1/09, Karel <horakk at math.cas.cz> wrote:


From: Karel <horakk at math.cas.cz>
Subject: Re: [metapost] enumeration
To: "Steve MC Han" <hmc0907 at yahoo.com>
Cc: "Aditya Mahajan" <adityam at umich.edu>, metapost at tug.org
Date: Sunday, November 1, 2009, 10:31 AM


Steve MC Han napsal(a):
> Thank you for your response.
>  One other question: Is there any way, labeling with alphbetical order? i,e,
>  If we want numbering each corner of a octagon, we would do this
>  for i:=0 upto 7:
> label(decimal(i), u*dir(360/8));
> endfor;
>  But how could we label with A,B,C,... instead of 1,2,3....
>  

Try

for i=1 upto 8: label(char(64+i),u*dir(360i/8)); endfor


Best wishes,
Karel Horak



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20091101/b04a043a/attachment.html>


More information about the metapost mailing list