tabularray
tabularray copied to clipboard
Varwidth problem in 2025-A version
If I use \mathcolor command from xcolor package, I have an error only if I load the varwidth library.
\documentclass[]{article}
\usepackage{tabularray-2024}
%\usepackage{tabularray} % don't work with this version
\usepackage{xcolor}
\UseTblrLibrary{varwidth}
\begin{document}
\begin{tblr}{colspec={cc}}
A & B \\
$x$ & $\mathcolor{red}{x}$ \\
\end{tblr}
\end{document}
Debian 12 TexLive 2025
As a workaround, you can add \relax after $\mathcolor{red}{x}$.
This bug has been fixed. You may download the latest package file
https://github.com/lvjr/tabularray/raw/refs/heads/main/tabularray.sty
to test whether the fix causes other problems.