tabularray icon indicating copy to clipboard operation
tabularray copied to clipboard

Varwidth problem in 2025-A version

Open programindfr opened this issue 6 months ago • 1 comments

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

programindfr avatar Jun 17 '25 14:06 programindfr

As a workaround, you can add \relax after $\mathcolor{red}{x}$.

lvjr avatar Jun 30 '25 05:06 lvjr

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.

lvjr avatar Sep 02 '25 07:09 lvjr