Questions tagged [tabularray]

{tabularray} is about questions regarding the tabularray package, which is used for typesetting tables and provides much of the functionality of the outdated tabu package. It can also completely separate styles from the contents of tables, and the styles of tables can be set in keyval way. Also it supports long tables with X columns in two-column documents.

The tabularray package provides the default environment tblr which is used for typesetting tables. The package provides much of the functionality of the outdated tabu package. It can also completely separate styles from the contents of tables and the styles for tables can be set as key-value pairs (similar to TikZ/PGF). The functionality of the package combines that of several other packages such as long tables, X columns, colored cells and borders or typesetting in two-column documents.

460 questions
13
votes
1 answer

How can I align decimal in tabularray package?

I am trying to align decimal in this table by using tabularray package. My code \documentclass{article} \usepackage{tabularray} \UseTblrLibrary{diagbox} \usepackage{siunitx} \sisetup{output-decimal-marker={,}} \begin{document} …
8
votes
2 answers

Problem with square brackets in tabularray

I run into trouble with this example. \documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{ccc} \hline m & mG & Weight \\ \hline [0, 0, 0] & [0, 0, 0, 0] & 0 \\ \hline [0, 0, 1] & [1, 0, 1,…
8
votes
1 answer

Why does tblr not work with commands that contain &?

I am using a command that contains more than one cell (containing an & to separate them). It worked with tabular it does not work with tbrl though. Why? \documentclass{article} \usepackage{tabularray} \newcommand{\ab}{a & b} \begin{document} …
mrCarnivore
  • 1,505
5
votes
1 answer

How can I use a short key to automatic math mode all rows of a table in tabularray package?

I am trying make this table. My code \documentclass{article} \usepackage{tabularray} \UseTblrLibrary{diagbox} \usepackage{siunitx} \usepackage{ninecolors} \begin{document} \begin{table}[htbp] \centering \begin{tblr}{ …
5
votes
1 answer

Tabularray: correct row numbering in longtblr

I'm trying to get numbered rows for a test plan. The expected result is "1", "2", etc. in the first column. However, when tabularray processes the table, it increments the counters multiple times before outputting anything, and multiple times…
5
votes
2 answers

Define a style in tabularray

I've just discovered tabularray and i love it. The use of keys to parameter my (x300) tables is made easy. However, I miss something in the documentation. We can define \NewTblrTheme{fancy}{ \DefTblrTemplate{conthead}{default}{[Continued]} …
JeT
  • 3,020
4
votes
2 answers

Possible Improvement of Code

Code Consider the following example: \DocumentMetadata{} \documentclass{article} \usepackage[margin = 1.8cm]{geometry} % to avoid `overfull \hbox' \usepackage{tabularray} \begin{document} \begin{tblr}{ hline{1} = {2-7}{solid}, hline{2-Z} =…
4
votes
1 answer

How to avoid the white gaps in the first column in tabularray automatically?

I see this problem and the answer at here. I tried by using \\\nopagebreak, but I cannot get a nice longtable. My…
4
votes
1 answer

How to identify a trial pass in tabularray?

tabularray, just like tabularx, performs "trial" passes with its tables to calculate the size of things before a final pass where the table is actually typeset. This means that the contents of the table get to be processed multiple times, with some…
gusbrs
  • 13,740
4
votes
4 answers

Tables with the same height and width

How can I make these three tables the same width and height and the width of the first column of each table the same? Also, how do I display the "Product" table just to the right of the "Sum" table? The minipage environment doesn't seem to work for…
Sacha
  • 65
4
votes
1 answer

How to keep `X` and `Q` styles at the same time in `tabularray`?

tabularray is quite useful as I need to do these things: Keep the table as wide as \textwidth I need to insert note{} in the caption of the table The head of the table are two many characters, so they are divided into several lines in one cell. In…
Y. zeng
  • 1,885
4
votes
2 answers

tabularray, does exist equivalent for cell{}{} in form \SetCell?

Please, consider the following MWE: \documentclass[border=3mm]{standalone} \usepackage{xcolor} \usepackage{tabularray} \begin{document} \begin{tblr}{hlines, vlines, cell{1}{2-4} = {bg=gray9} } 1 & Beta & Gamma & Delta …
Zarko
  • 296,517
4
votes
1 answer

Remarks before notes with tabulararray

Is there some way to have remarks printed before notes when using the tabularray package? \documentclass{article} \usepackage{tabularray} \begin{document} \begin{talltblr}[ caption={A table}, remark{Note}={Something noteworhty.}, …
Fredrik P
  • 1,386
3
votes
1 answer

Aligning thick hlines and vlines with tabularray

I wrote a table like in the following MWE, using tabularray: \documentclass[11pt]{article} \usepackage{tabularray} \begin{document} \begin{table}[ht] \centering \begin{tblr}{ hlines, vlines, hline{1,2,Z}={2pt}, …
3
votes
0 answers

How to set properly rowsep when using multicell on tabularray package?

I needed to adjust the abovesep/belowsep on my table from the tabularray package so the content is more compressed. However, it does not affect the multirow cells. Why this…
1
2 3 4 5 6