tabularray icon indicating copy to clipboard operation
tabularray copied to clipboard

cell: does not accept letters in cell list

Open CarLaTeX opened this issue 9 months ago • 2 comments

Please look at this MWE:

\documentclass{article}
\usepackage{xcolor} 
\usepackage{tabularray}

\begin{document}
	This works:
	
	\begin{tblr}{colspec={ccc},
			cell{{1}{2},{1}{3}} = {bg=blue},
			cell{{3}{1},{2}{1}} = {bg=red}
		}
		1 & 2 & 3  \\
		2 & 2 & 3  \\
		3 & 2 & 3  \\
	\end{tblr}
	
	This does not:
	
	\begin{tblr}{colspec={ccc},
			cell{{1}{2},{1}{Z}} = {bg=blue},
			cell{{Z}{1},{2}{1}} = {bg=red}
		}
		1 & 2 & 3  \\
		2 & 2 & 3  \\
		3 & 2 & 3  \\
	\end{tblr}
\end{document}

The first table, with cell row and column numbers, works.
The second table, with Z for last row or column, gives the error: ! Missing number, treated as zero.

Thank you, bye! Carla

CarLaTeX avatar Mar 21 '25 16:03 CarLaTeX

You can not use letters in two dimensional indexes (which needs to be documented), but will be able to use negative indexes in them with a future release (see issue #581).

lvjr avatar Mar 21 '25 23:03 lvjr

Thank you! Good to know! Ciao! Carla

Il Sab 22 Mar 2025, 00:23 lvjr @.***> ha scritto:

You can not use letters in two dimensional indexes (which needs to be documented), but will be able to use negative indexes in them with a future release (see issue #581 https://github.com/lvjr/tabularray/issues/581).

— Reply to this email directly, view it on GitHub https://github.com/lvjr/tabularray/issues/589#issuecomment-2744666719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDP6GMX5ZGE76WM6L6U7AD2VSNPHAVCNFSM6AAAAABZQLI7Q6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBUGY3DMNZRHE . You are receiving this because you authored the thread.Message ID: @.***> [image: lvjr]lvjr left a comment (lvjr/tabularray#589) https://github.com/lvjr/tabularray/issues/589#issuecomment-2744666719

You can not use letters in two dimensional indexes (which needs to be documented), but will be able to use negative indexes in them with a future release (see issue #581 https://github.com/lvjr/tabularray/issues/581).

— Reply to this email directly, view it on GitHub https://github.com/lvjr/tabularray/issues/589#issuecomment-2744666719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDP6GMX5ZGE76WM6L6U7AD2VSNPHAVCNFSM6AAAAABZQLI7Q6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBUGY3DMNZRHE . You are receiving this because you authored the thread.Message ID: @.***>

CarLaTeX avatar Mar 22 '25 08:03 CarLaTeX