On Tue, Mar 8, 2011 at 9:38 PM, Wolfgang Schuster <schuster.wolfgang@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!