17 Sep
2011
17 Sep
'11
9:20 a.m.
In article
Does the following workaround work for you?
def mydraw text t = def f = begingroup t endgroup enddef; if picture f : draw f ; fi enddef; mydraw externalfigure "abc.png" xyscaled (5cm,8cm);
This may be better: def mydraw text t = _mydraw begingroup t endgroup enddef; def _mydraw primary f = if picture f : draw f ; fi enddef; mydraw externalfigure "abc.png" xyscaled (5cm,8cm); Nicola