A bit weird \underbar behaviour (MkIV only)
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ć
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
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 -----------------------------------------------------------------
Dana 24. listopada 2010. 12:41 Hans Hagen
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ć
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Vedran Miletić