\ifdim with math units

  • Follow


Hello,


I can get out with \ifdim 12mu>3mu ?

Is this possible with TeX ?
eTeX \mutoglue ?

Thanks in advance.
0
Reply GL 3/26/2011 10:44:36 PM

GL <gouailles@gmail.com> wrote:

> Hello,
> 
> 
> I can get out with \ifdim 12mu>3mu ?
> 
> Is this possible with TeX ?

No: the mu unit depends on the current math symbol font,
which in turn depends on the current math style, which can
be unknown at the moment. However, comparison between muglue
parameters can be done safely, I guess. Of course one doesn't
really asks for

\ifdim 12mu > 3mu

:)

> eTeX \mutoglue ?

Did you try? :)

\ifdim\mutoglue\thickmuskip>\mutoglue\thinmuskip YES\else NO\fi

Don't compare muglues with normal or dimensions, since
\mutoglue just changes 1mu into 1pt, i.e., it doesn't
measure the muglue (by the above reason).

Ciao
Enrico
0
Reply Enrico 3/26/2011 11:06:08 PM


1 Replies
341 Views

(page loaded in 0.044 seconds)


Reply: