Skip to content

Strange line break with tabularray #57

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 latest version of tabularray with the varwidth library and microtype. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions