<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Fieger, Andreas wrote:
<blockquote
cite="midB0614CF7AF0A9842952B2D275D0BBCF103CFC8@fs1.sbarometer.muc"
type="cite">
<pre wrap="">Klaus,
you use vardef showpoint(expr t, P)(text T) and
assing the text T to a picture lab.
Can't you define vardef showpoint(expr t, P, T) and
then use dotlabel.top(T, (P*u)) directly?
For me
vardef foo(expr p) =
if picture p:
label(p, origin);
else:
label(btex not a picture etex, origin);
fi
enddef;
beginfig(1);
foo(btex mein L\"ab\"ol" etex);
endfig;
works (or am I missing the point?)
Best,
Andreas
</pre>
</blockquote>
Andreas,<br>
<br>
thank you. Your point is correct.<br>
I wrote the macro showpoint because when testing I might want to see
the points I have defined.<br>
So with one parameter I can turn that on or off.<br>
<br>
I tried your example, without success.<br>
Now I found out that there is a metapost version 0.901 and I have only
version 0.641.<br>
Before I make anymore noise, I will update my system and then I might
come back.<br>
<br>
<div class="moz-signature">-- <br>
<p><font face="Helvetica, Arial"> <font size="3">K. Jantzen</font><br>
<b><font color="blue" size="4"><br>
</font></b><a href="http://www.jantzen-software.de"></a></font></p>
</div>
</body>
</html>