[NTG-context] setupunderbar not working

Bart Wise bart.c.wise+context at gmail.com
Wed Mar 9 06:46:48 CET 2011


On Tue, Mar 8, 2011 at 9:38 PM, Wolfgang Schuster <
schuster.wolfgang at googlemail.com> wrote:

>
> Am 09.03.2011 um 04:58 schrieb Bart Wise:
>
> > I looked through the code and it looks like the call is "setupbars" (with
> an 's'); however, that didn't work either.
>
> You’re right, the name is \setupunderbars but you need also “offset” and
> “color” as keys.
>
> \setupunderbars
>  [underbar]
>  [offset=2pt,
>   rulethickness=12pt,
>   color=red]
>
> Wolfgang
>
>
So here's a sample of code that works:

\setupcolors[state=start]·
\setupbars[underbar][
    offset=0.1,
    rulethickness=0.2,
    order=foreground,
    color=red]

\starttext·
\switchtobodyfont[60pt]
This is an \underbar{underlined} word.·
\stoptext·

Thanks Wolfgang for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110308/0f5d620b/attachment.html>


More information about the ntg-context mailing list