[metapost] problem with macro parameters
mailing_list at arcor.de
Sat Aug 20 19:22:50 CEST 2005
Stephan Hennig schrieb:
> However, ra and rb (entering and leaving angles at nodes a and b)
> evaluate to zero when called inside my macro.
Sorry, it's as simple as that: you have to provide ra and rb as strings.
prologues := 1;
def curve(suffix a,b)(expr ra,rb) =
"angleA(" & decimal ra & ")",
"angleB(" & decimal rb & ")";
source.c = (0bp, 0bp);
sink.c = (100bp, 0bp);
angA = 45;
More information about the metapost