* MetaPost drawarrow dashed evenly
@ 2013-10-15 10:09 Alan BRASLAU
2013-10-15 10:56 ` Peter Rolf
2013-10-15 11:46 ` Hans Hagen
0 siblings, 2 replies; 5+ messages in thread
From: Alan BRASLAU @ 2013-10-15 10:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
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?
Alan
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MetaPost drawarrow dashed evenly
2013-10-15 10:09 MetaPost drawarrow dashed evenly Alan BRASLAU
@ 2013-10-15 10:56 ` Peter Rolf
2013-10-15 11:46 ` Hans Hagen
1 sibling, 0 replies; 5+ messages in thread
From: Peter Rolf @ 2013-10-15 10:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 15.10.2013 12:09, schrieb Alan BRASLAU:
> 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?
>
works here with beta from 13.10.2013
Peter
> Alan
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MetaPost drawarrow dashed evenly
2013-10-15 10:09 MetaPost drawarrow dashed evenly Alan BRASLAU
2013-10-15 10:56 ` Peter Rolf
@ 2013-10-15 11:46 ` Hans Hagen
2013-10-15 11:49 ` Hans Hagen
1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2013-10-15 11:46 UTC (permalink / raw)
To: ntg-context
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;
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MetaPost drawarrow dashed evenly
2013-10-15 11:46 ` Hans Hagen
@ 2013-10-15 11:49 ` Hans Hagen
2013-10-15 11:53 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2013-10-15 11:49 UTC (permalink / raw)
To: ntg-context
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MetaPost drawarrow dashed evenly
2013-10-15 11:49 ` Hans Hagen
@ 2013-10-15 11:53 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2013-10-15 11:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/15/2013 1:49 PM, Hans Hagen wrote:
> 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;
To be complete I've added an undashed operator:
\startMPpage
drawarrow origin--(1cm, 1cm) dashed evenly withcolor red undashed ;
drawarrow origin--(1cm,-1cm) dashed evenly withcolor blue ;
\stopMPpage
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-15 11:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-15 10:09 MetaPost drawarrow dashed evenly Alan BRASLAU
2013-10-15 10:56 ` Peter Rolf
2013-10-15 11:46 ` Hans Hagen
2013-10-15 11:49 ` Hans Hagen
2013-10-15 11:53 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).