[NTG-context] Underbar offset

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed May 25 17:35:40 CEST 2016


> Hans Hagen <mailto:pragma at wxs.nl>
> 24. Mai 2016 um 14:19
> 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
With \shiftup the line under the raised text stays at the same position.

\starttext
\underbar{Test this \shiftup{®}}
\stoptext

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160525/65d54d5c/attachment.html>


More information about the ntg-context mailing list