On Thu, 21 Jan 2010, Hans van der Meer wrote:
ConTeXt ver: 2010.01.19 23:29 MKIV fmt: 2010.1.20 int: english/english
Coloring hrule's and vrule's with \color[aColor]{\vrule heightdepthwidth} works only if aColor is one of the standardcolors like red, blue, gray, etc. But defining other colors don't color the rule \definecolor[mygray][r=.6,g=.7,b=.7]\color[mygray]{\vrule heightdepthwidth} typesets the rule in black, not in mygray. The strange is that the lines around \framed[framecolor=mygray] do get colored correctly.
How can I accomplish the general coloring of vrule's and hrule's?
\blackrules. %D \macros %D {blackrules} %D %D One can call for a sequence of black rules, if needed %D equally spaced over the given width. %D %D \showsetup{blackrules} %D %D The two alternative calls are therefore: %D %D \startbuffer %D Tell me, is this according to the \blackrules[n=6]? %D These \blackrules[alternativevariant=b,n=10,distance=.2em,width=4cm] are quite clear. %D \stopbuffer Despite its name, \blackrules can be of any color. The default options are \setupblackrules [\c!n=3, \c!width=1em, \c!height=1ex, \c!depth=\!!zeropoint, \c!alternative=\c!a, \c!distance=.25ex, \c!color=] Aditya