From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Underbar offset
Date: Tue, 24 May 2016 14:19:28 +0200 [thread overview]
Message-ID: <4abee7cf-485f-af70-bb15-c680a7af7a6d@wxs.nl> (raw)
In-Reply-To: <CALBOmsbnE0L+f=Lt8pHPwGZ5nX2R46jt_agg9-7URBMucU9qmw@mail.gmail.com>
On 5/24/2016 1:54 AM, Mojca Miklavec wrote:
> Hi,
>
> I would like to add a continuous underbar under a paragraph or a title as in:
>
> \setupbar
> [color=red,offset=10pt]
> \starttext
> \underbar{Test this \high{\tfxx ®}}
> \stoptext
>
> ... but I'm confused about two aspects:
>
> - How can I prevent \high{} from shifting the underbar?
i need to think about it .. maybe an option
> - How can I add more offset?
underbar is derived from the parent but has its own offset and an offset
is relative to the baseline and a fraction of th eunit (normally the ex
of a font)
\setupbar[underbar][color=red,offset=-.5]
\starttext
\underbar{Test this \high{\tfxx ®}}
\stoptext
> The color keyword works, but offset doesn't seem to have any effect
> even though it's listed in the reference.
>
> I was able to address the second problem (adding more offset) with
> something like
> \definebar[BarU][offset=-0.7]
> \startbar[BarU] ... \stopbar
> but I wasn't able to get rid of the shift (and the bar had a different
> thickness when a smaller font was used).
>
> I can find ugly workarounds with frames, but it would be ideal if I
> could get one of the underbar mechanisms to work "out-of-the-box".
just see how underbar is defined ... if you want fixed dimensions you
should used a fixed unit (not one derived from the current font)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-05-24 12:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-23 23:54 Mojca Miklavec
2016-05-24 12:19 ` Hans Hagen [this message]
2016-05-25 15:35 ` Wolfgang Schuster
2016-05-26 12:48 ` Mojca Miklavec
2016-05-26 13:10 ` Marco Patzer
2016-05-26 15:20 ` Aditya Mahajan
2016-05-26 16:17 ` Hans Hagen
2016-05-26 17:24 ` Mojca Miklavec
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=4abee7cf-485f-af70-bb15-c680a7af7a6d@wxs.nl \
--to=pragma@wxs.nl \
--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).