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
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 -------------------------------------------------------------------------
Hans Hagen
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
At 10:21 AM 3/18/2003 +0100, you wrote:
Hans Hagen
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 -------------------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Matthew Huggett
-
Patrick Gundlach