[XeTeX] unicode-math and underbrace bug

Daniel Greenhoe dgreenhoe at gmail.com
Thu Feb 7 08:53:04 CET 2013


When I use the unicode-math package and the underbrace command, I get
sporadic errors in which the underbrace is (sporadically) shifted to
the right. This occurs for all the math fonts that I have tried which
include the following:
   xits-math.otf
   Asana-math.otf
   latinmodernmath-regular.otf
   texgyrepagellamath-regular.otf
   texgyretermesmath-regular.otf

Here is a minimal example:

\documentclass[oneside]{book}
%
 \usepackage{unicode-math}            % unicode math support
 \setmathfont{xits-math.otf}
 %\setmathfont{Asana-math.otf}
 %\setmathfont{latinmodernmath-regular.otf}
 %\setmathfont{texgyrepagellamath-regular.otf}
 %\setmathfont{texgyretermesmath-regular.otf}
%
\newcommand{\mcom}[2]{%
  \begin{array}[t]{c}%
    \underbrace{#1}\\%
    $#2$%
  \end{array}%
  }%
\begin{document}%
\[ \mcom{\sin^2x+\cos^2x=1}{a trig. identity} \]
\[ \mcom{\sin^2x+\cos^2x=1}{a trig. identity} \]
\[ \mcom{\sin^2x+\cos^2x=1}{a trig. identity} \]
...
\end{document}

Attached is a tex file and two sample output pdf files.

Can anyone help me out?

Many thanks in advance,
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underbrace.tex
Type: application/x-tex
Size: 50676 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20130207/1b7e886b/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underbrace_xits.pdf
Type: application/pdf
Size: 36981 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20130207/1b7e886b/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underbrace_Asana.pdf
Type: application/pdf
Size: 37957 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20130207/1b7e886b/attachment-0003.pdf>


More information about the XeTeX mailing list