[NTG-context] Underlining formulas and units

Florian Leupold fleupold at posteo.net
Fri Oct 7 14:45:14 CEST 2016


> On 06.10.16, at 10:32, Otared Kavian <otared at gmail.com> wrote:
> 
> Hi,
> 
> Maybe you should use rather
> 
> 	$\underbar{F_C=\unit{1e2 newton}}$ or \underbar{\unit{1e2 newton}}
> 
> since otherwise \underbar considers each character in the math formula as a word, which should be underlined separately.
> 
> Best regards: OK
> 
> 
>> On 5 Oct 2016, at 22:01, Florian Leupold <fleupold at posteo.net> wrote:
>> 
>> Dear list,
>> 
>> underbar behaves weirdly when it comes to indexes, exponents, and units:
>> 
>> \starttext
>> \underbar{$F_C=\unit{1e2 newton}$} or \underbar{\unit{1e2 newton}}
>> \stoptext
>> 
>> Am I doing something wrong? Is there maybe a setting to correct for this?
>> 
>> Thanks,
>> Florian
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context at 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 at 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
> ___________________________________________________________________________________


I see. Thanks for the hint!

But is there a way to mix text and math mode in the argument for \underbar? I would like to create my own macro where I would pass a single argument with text and/or math expressions, and all of that should be underlined...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20161007/194a9326/attachment.sig>


More information about the ntg-context mailing list