Bug in 3.141592653-2.6-0.999995 (TeX Live 2023) with fontspec and tabularray?

Ulrike Fischer news3 at nililand.de
Tue Jan 30 19:00:22 CET 2024


Am Mon, 29 Jan 2024 12:25:04 +0000 (UTC) schrieb Ross Alexander via
tex-live:

> When formatting a tabular with tabularray and setting
> \mainfont{Latin Modern Roman}[Scale=0.80] some cells are have
> incorrect line breaks.  

It is probably due a rounding error. tabularry measures the width
and then sets the cell in a vbox of exactly this width. And xetex
then prefers a line break.

This has been discussed already, see e.g.
https://github.com/lvjr/tabularray/issues/16
https://sourceforge.net/p/xetex/bugs/185/
https://tex.stackexchange.com/q/600010/2388


You can reproduce that with a simple parbox, using \fussy or making
the box a bit wider helps:

\documentclass{article}

\RequirePackage{fontspec}
\setmainfont{Latin Modern Roman}[Scale=0.8]

\begin{document}
\tracingparagraphs1
\setbox0\hbox{-4"}

\parbox{\wd0}{-4"}

\parbox{\wd0}{\fussy-4"}
 
\parbox{\dimexpr\wd0 +1sp}{-4"}

\end{document}


tabularray could probably avoid the problem by adding 1sp always. Or
by using a \hbox for l-cells. 


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the tex-live mailing list.