ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bart Wise <bart.c.wise+context@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: setupunderbar not working
Date: Tue, 8 Mar 2011 22:46:48 -0700	[thread overview]
Message-ID: <AANLkTimWUJr96w7oVkKq8yXYkZVQg53qmorh6xweupkV@mail.gmail.com> (raw)
In-Reply-To: <26D9FE79-AB6D-4BE8-8CB3-2FE58258A62F@gmail.com>


[-- 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
___________________________________________________________________________________

      reply	other threads:[~2011-03-09  5:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 12:01 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimWUJr96w7oVkKq8yXYkZVQg53qmorh6xweupkV@mail.gmail.com \
    --to=bart.c.wise+context@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).