On 2010-05-28 14:42:24 +0930, Ross Moore <ross.mo...@mq.edu.au> said:

I don't have an old  siunitx.sty  to try to reproduce the old bug.
With just the .log file it is impossible to tell what is going on,
since  siunitx.sty  uses \AtBeginDocument to delay a lot of stuff,
and it is amongst those things where the error occurs.


This gist of the problem was that siunitx was using things like

   \setbox...@tempboxa=\hbox{%
     $\mathsf{\global\chardef...@fam@sf=\fam}$}%

and then

 \ifnum\the\fam=...@fam@sf

to detect when maths alphabets were available.

Since unicode-math doesn't use a different fam for each alphabet those tests were breaking.

(The current implementation of unicode-math very inefficiently uses mathcode remapping to effect the maths font switching. But at least it works and is flexible for now. Future plans are to merge breqn's "everything active" approach to improve efficiency and compatibility with that package.)

I haven't actually checked yet, however, whether siunitx v2 gives correct output while inside a unicode-math \mathsf. I'd be surprised if it did.

Cheers,
Will




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to