latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
239 stars 28 forks source link

Brackets of matrix too short #625

Open AndreasMatthias opened 6 months ago

AndreasMatthias commented 6 months ago

The brackets of a matrix are too short with unicode-math (v0.8r).

Running the following example

\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}

\begin{document}
\begin{equation}
  \begin{bmatrix}
    X_1\\ X_2\\ X_3\\ X_4\\
  \end{bmatrix}
\end{equation}
\end{document}

yields matrix_02 where the brackets are too short.

Without unicode-math it's like this: matrix_01

I just noticed that subscripts are not necessary here. That same happens with this matrix:

  \begin{bmatrix}
    X\\ X\\ X\\ X\\
  \end{bmatrix}
khaledhosny commented 3 months ago

This depends on the engine and the font used. Loading unicode-math changes the default math font from CMMI to Latin Modern Math, so the difference is likely between the two fonts and/or handling of TFM and OpenType math fonts.