Closed netheril96 closed 12 years ago
In the unicode-math distributed with TeXLive, \hat, etc are the same as \widehat, etc.
Try
\documentclass{article} \usepackage{unicode-math} \setmathfont{XITS Math}
\begin{document} [ \hat{(x_1,\dots,x_n)}] [\widehat{(x_1,\dots,x_n)}] \end{document}
You will see the problem. This is fixed in a recent commit but not uploaded to CTAN and thus not in TeXLive yet.
@zhouyan: I downloaded the latest unicode-math.dtx from GitHub, texed it, and replaced the unicode-math.tex in TeXLive with the new one, but the problem is still there.
@netheril96 Sorry to forget mention that, this is also the problem with LuaTeX. Try latest unicode-math and LuaTeX 0.65 and later, say the one distributed with texlive pretest 2011 or tlcontrib. The problem is that the old LuaTeX has this accent growing problem while the newer LuaTeX break the unicode-math distributed with TL (the later is fixed in https://github.com/wspr/unicode-math/commit/dba416c3befcce750f04e751f05ef02fbadeab95) which is not uploaded to CTAN yet.
@zhouyan: I downloaded MikTeX, updated to the newest version, and... LuaTeX seems broken. It can't even handle a simple file like \documentclass{article} \begin{document} Lorem ipsum \end{document} It produces an error "Fatal format file error; I'm stymied". The version number is 0.70.1.
And I don't like LuaTeX much since it can't process Chinese (I guess from your name that you are Chinese too), so is there a fix with XeTeX?
@netheril96 I haven't used Windows for quite a few years. So I am sorry that I cannot help with the MikTeX build. However, at least for me with TLpretest 2011 and Git version of unicode-math, no problems arise so far.
And for chinese, I didn't find any problem with LuaTeX as long as you have a suitable font setup.
@zhouyan
OK, the newest LuaTeX does solve this problem.
And is there a fix with XeTeX?
Temporary fix: replace 00302 in unicode-math-table.tex with 00C26
This fixed
math accent support have been added to XeTeX 0.9998 (TL 12), and unicode-math
now supports it.
When \hat is used individually, the hat symbol is normal, like in \hat{\theta}; but when \hat is used in conjunction with \mathbf and with Greek letters, like in \mathbf{\hat{\theta}} or \hat{\mathbf{\theta}}, the hat symbol is wider than normal.
Tested with Asana and XITS math fonts. Both LuaTeX and XeTeX have been tested.