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 | [EMAIL PROTECTED]
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
-------------------------------------------------------------------------_______________________________________________ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
