* dashed horizontal line
@ 2003-03-16 4:48 Matthew Huggett
2003-03-17 17:27 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Huggett @ 2003-03-16 4:48 UTC (permalink / raw)
Hi all:
I would like to draw a short horizontal line, somewhat like \hl[5] but
dashed instead of solid. Is there a command for this?
Thanks
Matt
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dashed horizontal line
2003-03-16 4:48 dashed horizontal line Matthew Huggett
@ 2003-03-17 17:27 ` Hans Hagen
2003-03-18 9:21 ` Patrick Gundlach
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2003-03-17 17:27 UTC (permalink / raw)
At 01:48 PM 3/16/2003 +0900, you wrote:
>Hi all:
>
>I would like to draw a short horizontal line, somewhat like \hl[5] but
>dashed instead of solid. Is there a command for this?
you can do that with \leaders in tex code, but nicer is:
\startuniqueMPgraphic{WhatARule}{length,linewidth,color}
draw
origin -- (\MPvar{length},0)
dashed evenly % change this to what you want
withpen pencircle scaled \MPvar{linewidth}
withcolor \MPcolor{\MPvar{color}} ;
\stopuniqueMPgraphic
\setMPvariables
[WhatARule]
[length=6\bodyfontsize, % 4cm,
linewidth=1pt,
color=red]
\def\WhatARule
{\dontleavehmode\struttedbox{\uniqueMPgraphic{WhatARule}}}
\starttext
\dostepwiserecurse{4}{12}{1}
{\expanded{\switchtobodyfont[\recurselevel pt]}
test \par \WhatARule \par test}
\stoptext
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dashed horizontal line
2003-03-17 17:27 ` Hans Hagen
@ 2003-03-18 9:21 ` Patrick Gundlach
2003-03-18 11:19 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Gundlach @ 2003-03-18 9:21 UTC (permalink / raw)
Hans Hagen <pragma@wxs.nl> writes:
Hello Hans and others,
[...]
> draw
> origin -- (\MPvar{length},0)
> dashed evenly % change this to what you want
> withpen pencircle scaled \MPvar{linewidth}
> withcolor \MPcolor{\MPvar{color}} ;
the color does not work for me. \MPcolor{red} is OK and red alone is
OK but not \MPcolor{\MPvar{...}}.
My fault? Or ...?
Patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: dashed horizontal line
2003-03-18 9:21 ` Patrick Gundlach
@ 2003-03-18 11:19 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2003-03-18 11:19 UTC (permalink / raw)
At 10:21 AM 3/18/2003 +0100, you wrote:
>Hans Hagen <pragma@wxs.nl> writes:
>
>Hello Hans and others,
>
>[...]
>
> > draw
> > origin -- (\MPvar{length},0)
> > dashed evenly % change this to what you want
> > withpen pencircle scaled \MPvar{linewidth}
> > withcolor \MPcolor{\MPvar{color}} ;
>
>the color does not work for me. \MPcolor{red} is OK and red alone is
>OK but not \MPcolor{\MPvar{...}}.
\MPvar{color}
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-18 11:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-16 4:48 dashed horizontal line Matthew Huggett
2003-03-17 17:27 ` Hans Hagen
2003-03-18 9:21 ` Patrick Gundlach
2003-03-18 11:19 ` 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).