On 10/15/2013 1:46 PM, Hans Hagen wrote:
On 10/15/2013 12:09 PM, Alan BRASLAU wrote:
Hello,
How does one draw a dashed arrow (without getting a dashed arrowhead)?
Minimal example:
\startMPpage drawarrow origin--(1cm,1cm) ; drawarrow origin--(-1cm,1cm) dashed evenly ; \stopMPpage
Is this a bug?
more a side effect
def _finarr text t = if autoarrows : set_ahlength (t) fi ; draw arrowpath _apth t ; % arrowpath added fill arrowhead _apth t ; begingroup ; save dashed ; def dashed expr d = enddef ; draw arrowhead _apth t ; endgroup ; enddef;
or: def _finarr text t = if autoarrows : set_ahlength (t) fi ; draw arrowpath _apth t ; % arrowpath added fill arrowhead _apth t ; draw arrowhead _apth t dashed nullpicture ; enddef; ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------