TransWikia.com

Length of underbracket with Libertinus Math

TeX - LaTeX Asked on December 1, 2021

The combination of Libertinus Math and underbracket (provided by mathtools) produces unreasonably large brackets if the argument of underbracket becomes too long.

underbracket

(One can probably also argue that in the second to fourth example the bracket is a bit too short.)

The same output occurs with Uunderbracket (provided by unicode-math) instead of underbracket.
The problem also occurs with overbracket and Uoverbracket.

enter image description here

The problem does not occur with underbrace or overbrace (but one could again argue that some of the braces are too short).

enter image description here
enter image description here

It this a problem with Libertinus Math (which I would then report to the developer) or a problem with mathtools / unicode-math (in which case I don’t know what to do about it)?


documentclass[a5paper]{scrartcl}


usepackage{mathtools}
usepackage{unicode-math}
setmathfont{Libertinus Math}

begin{document}

noindenttexttt{underbracket}
[
    underbracket{a}
  + underbracket{ab}
  + underbracket{abc}
  + underbracket{abcd}
  + underbracket{abcde}
  + underbracket{abcdeh}
  + underbracket{abcdehi}
  + underbracket{abcdehik}
]
texttt{Uunderbracket}
[
    Uunderbracket{a}
  + Uunderbracket{ab}
  + Uunderbracket{abc}
  + Uunderbracket{abcd}
  + Uunderbracket{abcde}
  + Uunderbracket{abcdeh}
  + Uunderbracket{abcdehi}
  + Uunderbracket{abcdehik}
]
noindenttexttt{overbracket}
[
    overbracket{a}
  + overbracket{ab}
  + overbracket{abc}
  + overbracket{abcd}
  + overbracket{abcde}
  + overbracket{abcdeh}
  + overbracket{abcdehi}
  + overbracket{abcdehik}
]
texttt{Uoverbracket}
[
    Uoverbracket{a}
  + Uoverbracket{ab}
  + Uoverbracket{abc}
  + Uoverbracket{abcd}
  + Uoverbracket{abcde}
  + Uoverbracket{abcdeh}
  + Uoverbracket{abcdehi}
  + Uoverbracket{abcdehik}
]
texttt{underbrace}
[
    underbrace{a}
  + underbrace{ab}
  + underbrace{abc}
  + underbrace{abcd}
  + underbrace{abcde}
  + underbrace{abcdeh}
  + underbrace{abcdehi}
  + underbrace{abcdehik}
]
texttt{overbrace}
[
    overbrace{a}
  + overbrace{ab}
  + overbrace{abc}
  + overbrace{abcd}
  + overbrace{abcde}
  + overbrace{abcdeh}
  + overbrace{abcdehi}
  + overbrace{abcdehik}
]

end{document}

One Answer

This was apparently a problem with the Libertinus Math font. Some recent changes fix the problem, and the output now looks as follows.

enter image description here

Answered by Jendrik Stelzner on December 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP