aliftype / xits

XITS - OpenType implementation of STIX fonts with math support
SIL Open Font License 1.1
351 stars 35 forks source link

\underbar produce incorrect output #13

Closed blubbafett closed 14 years ago

blubbafett commented 14 years ago

Check the PDF's at http://folk.ntnu.no/mitrevsk/temp/xits_bug/

The problem appears with both XeLaTeX and LuaLaTeX (using TL2010 pretest in Windows7).

blubbafett commented 14 years ago

Code used;

\documentclass[12pt,a4paper]{article}

\usepackage{amsmath}
\usepackage[bold-style=upright]{unicode-math}
\setmainfont{XITS}
\setmathfont{XITS Math}
\begin{document}
\begin{equation}
\underbar{\mathbf{I}} = \left[\mathbf{I}_1\,\mathbf{I}_2\,\ldots\,\mathbf{I}_K\right]^\textup{\textsf{T}}
\end{equation}
\end{document}
khaledhosny commented 14 years ago

This a unicode-math bug, please report to unicode-math.

wspr commented 14 years ago

P.S. Please surround your example with ‘pre’ HTML tags or indent it with four spaces to print code correctly

blubbafett commented 14 years ago

@Khaled: I see it now (sorry for not testing with other UM-fonts first). Also fixed the example code. I also see that you have reported there yourself. Should I just try to write under your post, and see if someone does anything about it or?

khaledhosny commented 14 years ago

BTW, your \textup{\textsf{T}} ends up using CM sans not the math sans from the math font, no idea why.

wspr commented 14 years ago

Because \textsf chooses the text font and \mathsf chooses the math font :)

blubbafett commented 14 years ago

Ah, thanks for telling! Learning something new everyday; didn't know that \mathsf yileded upright text.