<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1250"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Christophe Poulain napsal(a):
<blockquote
cite="mid:CAPDkhNMz2HXAmPeyxVJ1p1y77YZrt3jaUXWeEk3vHeZDZEcNDA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div>I'm a french user of Metapost and i've discovered this problem.</div>
<div><span style="white-space: nowrap; font-family: arial,sans-serif;"><br>
</span></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">%>------------------------</span></font></div>
<div><span style="white-space: nowrap; font-family: arial,sans-serif;">prologues:=2;</span><br>
</div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;"><br>
</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">beginfig(1);</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">
path cc;</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">
cc=fullcircle scaled 3cm;</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">
draw cc;</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">
for i=0 upto 11:</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">
label(decimal(i),point(arctime(((90-i*30)/360)*arclength cc) of cc)
of cc);</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">
endfor;</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">endfig;</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;"><br>
</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">end</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">%>--------------------------</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;"><br>
</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">There
isn't number if "the angle" is negative.</span></font></div>
<div><br>
</div>
<div><span style="white-space: nowrap; font-family: arial,sans-serif;">However,
if I compile the code below, there is no problem.</span><br>
</div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;"><br>
</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">%>----------------------</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space: nowrap;">
<div>prologues:=2;</div>
<div><br>
</div>
<div>beginfig(1);</div>
<div> path cc;</div>
<div> cc=fullcircle scaled 3cm;</div>
<div> draw cc;</div>
<div> for i=0 upto 11:</div>
<div> label(decimal(12-i),point(arctime(((90+i*30)/360)*arclength
cc) of cc) of cc);</div>
<div> endfor;</div>
<div>endfig;</div>
<div><br>
</div>
</span></font></div>
</div>
</blockquote>
<br>
There is no mistake in your code.<br>
With metapost 1.212 it compiles fine. Unfortunately, versions above 1.8
distributed with TeXlive still do have bugs. I have found another bug
with font inclusion some weeks ago which I should analyze and send an
example to the list, but as I needed correct output, I came back to
1.212 (it is not as trivial as before with the last TeXlive as the tree
has changed radically).<br>
Karel Horak<br>
<br>
<br>
</body>
</html>