Skip to content

Strange line break with varwidth and microtype #616

@Virgil121

Description

@Virgil121

This is based on this question: https://tex.stackexchange.com/questions/749756/strange-line-break-in-tabularrays-latest-version

Some tables seem to be broken when compiling with the varwidth library and microtype, using tabularray's latest version: This code:

\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{varwidth}
\usepackage{microtype}

\begin{document}

\begin{tblr}{
    hlines,
    vlines,
    colspec={c},
}
hello ($hello$)
\end{tblr}

\begin{tblr}{
    hlines,
    vlines,
    colspec={ccc},
}
& $g_0 > 0$ & $g_0 < 0$ \\
$q > 1$ & AAAAAAAAAAAAA & AAAAAAAAAAAAA \\
$0 < q < 1$ & AAAAAAAAAAAAA & AAAAAAAAAAAAA \\
\end{tblr}
\end{document}

Compiles to this, using lualatex (and an updated miktex distribution):

Image

Aside from disabling microtype or varwidth, either using the previous version of tabularray or changing the measure specification to hbox or vstore fixes the issue. As mentioned by a user in the original question, adding \let\MT@varwidth@setup\relax also works as a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions