ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Underlining formulas and units
@ 2016-10-05 20:01 Florian Leupold
  2016-10-06  8:32 ` Otared Kavian
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Leupold @ 2016-10-05 20:01 UTC (permalink / raw)
  To: ConTeXt List


[-- Attachment #1.1: Type: text/plain, Size: 266 bytes --]

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

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 3+ messages in thread

* Re: Underlining formulas and units
  2016-10-05 20:01 Underlining formulas and units Florian Leupold
@ 2016-10-06  8:32 ` Otared Kavian
  2016-10-07 12:45   ` Florian Leupold
  0 siblings, 1 reply; 3+ messages in thread
From: Otared Kavian @ 2016-10-06  8:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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@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@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@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] 3+ messages in thread

* Re: Underlining formulas and units
  2016-10-06  8:32 ` Otared Kavian
@ 2016-10-07 12:45   ` Florian Leupold
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Leupold @ 2016-10-07 12:45 UTC (permalink / raw)
  To: ConTeXt List


[-- Attachment #1.1: Type: text/plain, Size: 2034 bytes --]


> On 06.10.16, at 10:32, Otared Kavian <otared@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@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@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@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...

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 3+ messages in thread

end of thread, other threads:[~2016-10-07 12:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 20:01 Underlining formulas and units Florian Leupold
2016-10-06  8:32 ` Otared Kavian
2016-10-07 12:45   ` Florian Leupold

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).