* setupunderbar not working
@ 2011-03-08 12:01 Bart Wise
2011-03-08 13:15 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Bart Wise @ 2011-03-08 12:01 UTC (permalink / raw)
To: Context Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 403 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 522 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupunderbar not working
2011-03-08 12:01 setupunderbar not working Bart Wise
@ 2011-03-08 13:15 ` Wolfgang Schuster
2011-03-08 13:37 ` Bart Wise
2011-03-09 3:58 ` Bart Wise
0 siblings, 2 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2011-03-08 13:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupunderbar not working
2011-03-08 13:15 ` Wolfgang Schuster
@ 2011-03-08 13:37 ` Bart Wise
2011-03-09 3:58 ` Bart Wise
1 sibling, 0 replies; 6+ messages in thread
From: Bart Wise @ 2011-03-08 13:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 915 bytes --]
Thanks!
On Mar 8, 2011 6:17 AM, "Wolfgang Schuster" <
schuster.wolfgang@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
>
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 1459 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupunderbar not working
2011-03-08 13:15 ` Wolfgang Schuster
2011-03-08 13:37 ` Bart Wise
@ 2011-03-09 3:58 ` Bart Wise
2011-03-09 4:38 ` Wolfgang Schuster
1 sibling, 1 reply; 6+ messages in thread
From: Bart Wise @ 2011-03-09 3:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1044 bytes --]
On Tue, Mar 8, 2011 at 6:15 AM, Wolfgang Schuster <
schuster.wolfgang@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.
[-- Attachment #1.2: Type: text/html, Size: 1755 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupunderbar not working
2011-03-09 3:58 ` Bart Wise
@ 2011-03-09 4:38 ` Wolfgang Schuster
2011-03-09 5:46 ` Bart Wise
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2011-03-09 4:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupunderbar not working
2011-03-09 4:38 ` Wolfgang Schuster
@ 2011-03-09 5:46 ` Bart Wise
0 siblings, 0 replies; 6+ messages in thread
From: Bart Wise @ 2011-03-09 5:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 788 bytes --]
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!
[-- Attachment #1.2: Type: text/html, Size: 1368 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-09 5:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-08 12:01 setupunderbar not working Bart Wise
2011-03-08 13:15 ` Wolfgang Schuster
2011-03-08 13:37 ` Bart Wise
2011-03-09 3:58 ` Bart Wise
2011-03-09 4:38 ` Wolfgang Schuster
2011-03-09 5:46 ` Bart Wise
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).