Re: [NTG-context] setupunderbar not working

2011-03-08 Thread Bart Wise
On Tue, Mar 8, 2011 at 9:38 PM, Wolfgang Schuster <
schuster.wolfg...@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!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupunderbar not working

2011-03-08 Thread Wolfgang Schuster

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupunderbar not working

2011-03-08 Thread Bart Wise
On Tue, Mar 8, 2011 at 6:15 AM, Wolfgang Schuster <
schuster.wolfg...@googlemail.com> wrote:

>
> Am 08.03.2011 um 13:01 schrieb Bart Wise:
>
> > I have used the latest ConTeXt to compile the code below, but the
> \setupunderbar does not seem to function.  If I use an older version
> (context: 2009.06.14) it works just fine.  Is there a bug, or am I doing
> something wrong?
>
> Use \setupbar[underbar][...].
>
> Wolfgang
>
>
My version of context:
 mtx-context | current version: 2011.02.25 22:03

New code with Wolfgang's suggestion:

\setupcolors[state=start]
\setupbar[underbar][bottomoffset=2pt,rulethickness=12pt,rulecolor=red]


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


But now it complains that "setupbar" is not recognized:
Undefined control sequence...
 2 >>
 \setupbar[underbar][bottomoffset=2pt,rulethickness=12pt,rulecolor=red]

Am I still doing something wrong?
I looked through the code and it looks like the call is "setupbars" (with an
's'); however, that didn't work either.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupunderbar not working

2011-03-08 Thread Bart Wise
Thanks!
On Mar 8, 2011 6:17 AM, "Wolfgang Schuster" <
schuster.wolfg...@googlemail.com> wrote:
>
> Am 08.03.2011 um 13:01 schrieb Bart Wise:
>
>> I have used the latest ConTeXt to compile the code below, but the
\setupunderbar does not seem to function. If I use an older version
(context: 2009.06.14) it works just fine. Is there a bug, or am I doing
something wrong?
>
> Use \setupbar[underbar][...].
>
> Wolfgang
>
>
>
___
> If your question is of interest to others as well, please add an entry to
the Wiki!
>
> maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupunderbar not working

2011-03-08 Thread Wolfgang Schuster

Am 08.03.2011 um 13:01 schrieb Bart Wise:

> I have used the latest ConTeXt to compile the code below, but the 
> \setupunderbar does not seem to function.  If I use an older version 
> (context: 2009.06.14) it works just fine.  Is there a bug, or am I doing 
> something wrong?

Use \setupbar[underbar][...].

Wolfgang


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] setupunderbar not working

2011-03-08 Thread Bart Wise
I have used the latest ConTeXt to compile the code below, but the
\setupunderbar does not seem to function.  If I use an older version
(context: 2009.06.14) it works just fine.  Is there a bug, or am I doing
something wrong?

\setupcolors[state=start]
\setupunderbar[bottomoffset=2pt,rulethickness=12pt,rulecolor=red]

\starttext
\switchtobodyfont[60pt]
This is an \underbar{underlined} word.
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___