<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi, I’m looking for a little metapost guidance.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I want to redefine the map-connection line, making the line thicker, dashed, with a dot at the start and larger arrowhead at the end.  Also a nicer generic arrowhead shape.<o:p></o:p></p><p class=MsoNormal>As the default Therion metapost uses a standard arrow definition for ‘line arrow’ and for ‘line map-connection’ I would like to maintain that efficiency, except I would like the map-connection arrows heads to be two or three times larger than the standard arrow head.<o:p></o:p></p><p class=MsoNormal>So far, with the slightly modified standard Therion code below, I have achieved all of that except for the difference in arrowhead sizes.<o:p></o:p></p><p class=MsoNormal><img width=473 height=68 style='width:4.927in;height:.7083in' id="Picture_x0020_1" src="cid:image001.png@01D3C6D9.8BCF5520"><o:p></o:p></p><p class=MsoNormal>Compare this with the original<o:p></o:p></p><p class=MsoNormal><img width=475 height=69 style='width:4.9479in;height:.7187in' id="Picture_x0020_2" src="cid:image002.png@01D3C6D9.FB384C50"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I expect I could do it by duplicating the l_arrow definition (and call it l_arrowbig for example) , but this seems inefficient.  Could I modify the size of the arrowhead with the statement that calls   <span style='background:yellow;mso-highlight:yellow'>l_arrow(P,1);</span> ?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Although I’m thinking possibly that is not the best idea, as scaling l_arrow will affect the whole line as well as the arrowhead I expect.<o:p></o:p></p><p class=MsoNormal>Comments?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>#ARROW and MAP-CONNECTION REDEFINITIONS<o:p></o:p></p><p class=MsoNormal>#--------------------------<o:p></o:p></p><p class=MsoNormal>code metapost<o:p></o:p></p><p class=MsoNormal>% Q = 0 -- no arrows<o:p></o:p></p><p class=MsoNormal>%     1 -- end<o:p></o:p></p><p class=MsoNormal>%     2 -- begin<o:p></o:p></p><p class=MsoNormal>%     3 -- both<o:p></o:p></p><p class=MsoNormal>def l_arrow (expr P, Q) =<o:p></o:p></p><p class=MsoNormal>  T:=identity;<o:p></o:p></p><p class=MsoNormal>  pickup PenB;<o:p></o:p></p><p class=MsoNormal>  thdraw P;<o:p></o:p></p><p class=MsoNormal>  <span lang=FR>p := (-.1u,-.5u)--(0,0)--(.1u,-.5u)--cycle; <o:p></o:p></span></p><p class=MsoNormal>  %          0.25 changed to .5 and close end to get nicer arrowhead<o:p></o:p></p><p class=MsoNormal>  if odd Q:<o:p></o:p></p><p class=MsoNormal>    thfilldraw p rotated (angle(thdir(P,0))+90) <o:p></o:p></p><p class=MsoNormal>                             shifted (point 0 of P);<o:p></o:p></p><p class=MsoNormal>  fi;<o:p></o:p></p><p class=MsoNormal>  if Q>1:<o:p></o:p></p><p class=MsoNormal>    thfilldraw p rotated (angle(thdir(P,length P))-90) <o:p></o:p></p><p class=MsoNormal>                 shifted (point infinity of P);<o:p></o:p></p><p class=MsoNormal>  fi;<o:p></o:p></p><p class=MsoNormal>enddef;<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>def l_mapconnection (expr P) =<o:p></o:p></p><p class=MsoNormal>  thdrawoptions(dashed dashpattern(on 1bp off 2bp on 1bp off 2bp) <o:p></o:p></p><p class=MsoNormal>                scaled (2 * optical_zoom) withpen PenB);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>  %draw map-connection line with arrowhead at end<o:p></o:p></p><p class=MsoNormal>  <span style='background:yellow;mso-highlight:yellow'>l_arrow(P,1); %How to double or triple arrowhead size with this call?</span><o:p></o:p></p><p class=MsoNormal>  <o:p></o:p></p><p class=MsoNormal>  %draw dot at start of map-connection line<o:p></o:p></p><p class=MsoNormal>  thdraw point infinity of P withpen pencircle scaled 0.3u; <o:p></o:p></p><p class=MsoNormal>  %Why infinity and not 0 for start??  <o:p></o:p></p><p class=MsoNormal>  %If point before arrow head, then point does not render in legend but does on map?? <o:p></o:p></p><p class=MsoNormal>  <o:p></o:p></p><p class=MsoNormal>  thdrawoptions();<o:p></o:p></p><p class=MsoNormal>enddef;<o:p></o:p></p><p class=MsoNormal>endcode<o:p></o:p></p></div></body></html>