ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* A bit weird \underbar behaviour (MkIV only)
@ 2010-10-23 22:34 Vedran Miletić
  2010-10-23 23:34 ` Aditya Mahajan
  2010-10-24 10:41 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Vedran Miletić @ 2010-10-23 22:34 UTC (permalink / raw)
  To: NTG-ConTeXt mailing list


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

The code

\usemodule[units]
\starttext
$y = \underbar{20 \Mega\Bit\Per\Second}$.
\stoptext

produces space before y and it and y get underbared. MkII produces an
expected result.

On the other hand, in

\starttext
$y = \underbar{g a w}$.
\stoptext

underbar doesn't appear (other letter combinations I tried seem to work).
MkII can't compile this and ends with ! Incompatible list can't be unboxed.

-- 
Vedran Miletić

[-- Attachment #1.2: Type: text/html, Size: 511 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A bit weird \underbar behaviour (MkIV only)
  2010-10-23 22:34 A bit weird \underbar behaviour (MkIV only) Vedran Miletić
@ 2010-10-23 23:34 ` Aditya Mahajan
  2010-10-24 10:41 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2010-10-23 23:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 457 bytes --]

On Sun, 24 Oct 2010, Vedran Miletić wrote:

> The code
>
> \usemodule[units]
> \starttext
> $y = \underbar{20 \Mega\Bit\Per\Second}$.
> \stoptext
>
> produces space before y and it and y get underbared. MkII produces an
> expected result.

IIRC, \underbar is a text mode command, not a math mode command. You can 
try

$y = \text{\underbar{...}}$

or define

\def\munderbar#1{\text{\underbar{\mathsurround\zeropoint\math{#1}}}}

Aditya

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A bit weird \underbar behaviour (MkIV only)
  2010-10-23 22:34 A bit weird \underbar behaviour (MkIV only) Vedran Miletić
  2010-10-23 23:34 ` Aditya Mahajan
@ 2010-10-24 10:41 ` Hans Hagen
  2010-10-24 16:15   ` Vedran Miletić
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2010-10-24 10:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 24-10-2010 12:34, Vedran Miletić wrote:
> \starttext
> $y = \underbar{g a w}$.
> \stoptext

\starttext
   \underbar{$y = g a w$}.
\stoptext

does work .. it probably relates to limitations in attribute assignment 
in mathmode .. you can add a tracker item for it so that I keep an eye 
on it.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A bit weird \underbar behaviour (MkIV only)
  2010-10-24 10:41 ` Hans Hagen
@ 2010-10-24 16:15   ` Vedran Miletić
  0 siblings, 0 replies; 4+ messages in thread
From: Vedran Miletić @ 2010-10-24 16:15 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


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

Dana 24. listopada 2010. 12:41 Hans Hagen <pragma@wxs.nl> je napisao/la:

> On 24-10-2010 12:34, Vedran Miletić wrote:
>
>> \starttext
>> $y = \underbar{g a w}$.
>> \stoptext
>>
>
> \starttext
>  \underbar{$y = g a w$}.
> \stoptext
>
> does work .. it probably relates to limitations in attribute assignment in
> mathmode .. you can add a tracker item for it so that I keep an eye on it.
>
>
Are you sure? Many other three letter combinations (e.g. a b c) seem to
work.

-- 
Vedran Miletić

[-- Attachment #1.2: Type: text/html, Size: 910 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-24 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-23 22:34 A bit weird \underbar behaviour (MkIV only) Vedran Miletić
2010-10-23 23:34 ` Aditya Mahajan
2010-10-24 10:41 ` Hans Hagen
2010-10-24 16:15   ` Vedran Miletić

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