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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

Acronyms are not expanded in Tabularray table

In my tabularray tables acronyms (with the acronym package) are not expanded like expected. Only the short form is printed, also if the acronym appears for the first time in the document. The ...
0 votes
0 answers
38 views

How can I align these tables to the top?

How can I align these tables to the top? The tables currently appear strange, but this is just a minimal example that I am working on. It seems that the Q[c,t] option only works for text and not for ...
  • 277
3 votes
1 answer
56 views

Specify confidence interval column with `tabularray` package

When working with statistical outputs/tables, I'm curious about how to properly specify the confidence interval (CI) column with the tabularray and siunitx packages. I take this answer and replace the ...
  • 2,692
0 votes
1 answer
33 views

Table with merged cells in a two columns template

I would like to create a table in a two columns template, but the table can occupy 1 column as follows. I am not sure what to do with this code, can anyone help, please? \documentclass[journal]{...
2 votes
0 answers
28 views

How to Quickly Expand a Table Structure with Index?

I have created a table with 10 rows, but I would like to replicate the structure with an index for up to 30 or more rows. Is there an easy way to expand the table without having to manually add ...
  • 277
1 vote
1 answer
48 views

Why does this table cause "Something's wrong--perhaps a missing \item?

\begin{table} [htbp] \label{tab:test} \centering \begin{tblr}{ colspec={X[l]X[l]X[c]X[c]X[c]X[c]X[c]X[c]X[c]X[c]X[c]}, row{1}={font=\bfseries}, row{even}={bg=gray!10}, } \toprule \...
  • 11
2 votes
2 answers
99 views

How to change the font for an entire row in tabularray?

Given a tfm file, I can use that font as in the MWE given below. I also can change the font for any row using the standard commands/styles like \bfseries, \ttfamily, \scshape etc. I would like to ...
  • 1,246
1 vote
1 answer
46 views

How to get numbers, formatted to a fixed number of significant figures, to align in tabular using sunitx?

I have tables of numbers with different magnitudes. Some numbers are like 30.3542 and others are like -145283.68447. I'd like to be able to format these with the same table setup as in my example, ...
  • 11
0 votes
0 answers
44 views

How can i make the text inside the merged cellls span correctly tothe next page with longtblr?

How can i make the text in the first and last columns which is spanned across merged cells to span correctly in the next page? Here is the code i used: \documentclass{article} \usepackage[table, ...
  • 1
2 votes
1 answer
29 views

How to add rows to a table via a command

I'd like to do something very similar to this question here: Add Rows to Table With Macro However, I cannot get it to work with my case of a version log table created with the tabularray package and ...
  • 6,026
1 vote
2 answers
46 views

Tabularray exceeding linewidth

I'm using tabularray to create a table with various colspans and rowspans. The table has width = \linewidth and colspec = {|X[1]|X[1]|X[2]|}, but it exceeds the linewidth, and the column width X ...
  • 259
1 vote
1 answer
45 views

tabularray and listings combability

The following MWE (borrowed from @Celdor answer}, where is used tabular table, works fine: \documentclass{article} \usepackage{array} \usepackage{xcolor} \usepackage{listings} \lstset{language=sql, ...
  • 277k
2 votes
2 answers
81 views

Why is \textsc not working on this tabularray?

I can't figure out why I can't make the title row in this tabularray environment to be small caps (seems to happen as soon as I add the row{2} = {font = \bfseries, cmd = \textrm},, but I can't ...
  • 121
0 votes
0 answers
52 views

tabularray and \gappto

As a new command, I use \problem to typeset tests for my math students. Sometimes I also include how many credits you can gather at a certain problem. If I use the credits key, everything works just ...
3 votes
0 answers
73 views

Glossary style with tabularray

I am currently migrating from xltabular to tabularray. As part of that I want to adapt my custom glossary style for List of Symbols and List of Abbreviations (same style). This is my old code: % ...
  • 31
1 vote
1 answer
45 views

Command \fillwithdottedlines (taken from exam documentclass) does not work in a table (Tabularray). Why? Can be fixed?

I have the following document which is a table (tabularray) which I want to full with empty dotted lines. I have defined the command \fillwithdottedlines as you can see in MWE. Although the command ...
  • 2,017
1 vote
0 answers
68 views

longtblr in multicols environment

I have a document with a very long (the data are coming from an external file) but narrow table in it, and I would like to split it in a multicols environment, instead of having this table spread over ...
1 vote
1 answer
47 views

tabularray Table - SetCell not working properly

I have the following table: \begin{tblr}{ colspec={X[l,1]*{9}{X[-0.6]}}, column{1}={cmd=\bfseries}, rowspec={*{6}{m{3em}}}, row{1}={cmd=\bfseries}, hlines, vlines={1,2,3,4,5,6}{...
0 votes
0 answers
38 views

Creating NewTblrTheme changes behaviour of entries in List of Tables

Despite its really powerful options the tabularray package doesn't follow the settings of the caption package when creating tables. Captions are set using default options, not the ones set in \...
  • 1,067
3 votes
2 answers
154 views

tabularray alternate line color, but do not color first column (ignore first column)

I am trying to color my tabularray's lines by alternating between a white and light gray color. The thing is, I want the alternating colors to skip the coloring pattern for first column of my table, ...
3 votes
1 answer
100 views

Using a command to generate a table row in tabularray

I have a command that generates a table row for insertion into a tblr environment as shown below: \documentclass{book} \usepackage{tabularray} \begin{document} \newcommand\MyRow[2]{ #1 & #2 \\...
1 vote
1 answer
33 views

tabularray vertical aligment of cell

I am starting to figure out how to use tabularray in LaTex, but now I am not figuring out how to set my table text to be vertically centered. Here is my minimum example of a working table (but the ...
4 votes
1 answer
72 views

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 ...
  • 12.9k
3 votes
1 answer
127 views

How should I format a large value array in latex?

Hi I am trying to describe a value array I used in my program in my bachelor thesis report. I thought it would look more in sync in latex but it does look weird. Do you have any advice on how to ...
2 votes
3 answers
121 views

Tabularray: expand multiple macros with background color

I'm trying to expand in tabularry multiple macros to automatically add different background colors, but the color is not taken into account: \documentclass{memoir} \usepackage{tabularx} \usepackage{...
  • 5,559
0 votes
1 answer
40 views

How to make a tblr's cell span multiple columns via tabularray's new interfaces?

How to make a tblr's cell span multiple columns via tabularray's new interfaces? When the following LaTeX code is compiled with Overleaf's 2022 LuaLaTeX engine: \documentclass{article} \usepackage{...
  • 10.7k
5 votes
2 answers
559 views

How to align amsmath matrices and make them look cleaner

I have no idea how to align these matrices or how to make them look cleaner. They look very messy, does anyone know how I can align the matrices and make them look cleaner please? MWE: \documentclass{...
1 vote
0 answers
57 views

longtblr (tabularray): forcing a \pagebreak before first natural pagebreak does not display continuation text in table footer

Using longtblr from tabularray package, when a "forced" \pagebreak is inserted before the first "natural" page break in the table, the continuation text is missing from the table ...
3 votes
3 answers
112 views

Increase the space between the table relative to the text above and below

I use the tabularray package to create the table. But I see that the vertical space between the table and the text above and below the table is small. I used headsep but it didn't work. How can I ...
2 votes
2 answers
400 views

Why does removing this empty line increase spacing?

\documentclass{article} \usepackage{tcolorbox} \usepackage{tabularray} \raggedright \newcommand\secondline{ \begin{tcolorbox} Line 2 \end{tcolorbox} } \begin{document} \begin{tblr}{colspec=X} ...
  • 23
2 votes
1 answer
111 views

Constructing a tblr programmatically in expl3

When the following LaTeX code: \documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{}0&1&2&3\end{tblr} \end{document} is compiled in Overleaf using the 2022 ...
  • 10.7k
1 vote
0 answers
44 views

Spacing above/below hlines in tabularray

I have started to use the tabularray for my tables, I find the interface very effective and clean, but there is still something I am not able to do. For example, I want to reduce the space between ...
  • 665
0 votes
0 answers
91 views

FP calculation bug within tabularray

Strange results had been reported here when using the fp package inside a table using tabu package. A solution had been proposed to manage the fact that computations are done twice by performing a ...
  • 1,160
6 votes
1 answer
87 views

Macro to create entries in tabularray in user defined environment

I need a macro to create entries (rows) in a table. As proposed here I was successfully using the environ package together with the tabu one. Since tabu is not maintained, I decided to switch to ...
  • 1,160
5 votes
2 answers
146 views

tabularray - How to center both text and images

My goal is to have all text and images centered horizontally and vertically in their cells. Which options should I give to tabularray to achieve this? I am getting close, but the vertical centering is ...
4 votes
2 answers
96 views

Error with % and & despite using verb option

I am new to tabularray and I have a problem typesetting tables with code in it. I see the option verb must be given to environment tblr to allow verbatim text, but even then, characters % and & ...
  • 1,062
0 votes
2 answers
59 views

Tabularray - "Package tabularray Warning: Table width is too small, need 5.6181pt more!" & Text missing from cell

I am getting the error "Package tabularray Warning: Table width is too small, need 5.6181pt more!", which gave little results when searching for. I have previosly used the package without ...
  • 41
5 votes
1 answer
102 views

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] \...
5 votes
1 answer
195 views

How to calculate the total width of a (tabularray) table and pass this length to other packages such tikz or tcolorbox?

Please consider the following code. It produces a table using tabularray which has fixed width columns, so its total width is smaller than \textwidth. How can find out what the total width of the ...
  • 2,017
0 votes
1 answer
62 views

How to make rows containing images equidistant with tabularray?

Working with tabularray, I'm currently stuck trying to make rows that contain images equidistant from each other. For instance, having this grid of images: The images A, B, C are the ones that I ...
  • 103
12 votes
1 answer
180 views

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-...
2 votes
2 answers
42 views

how to rewrite simple multicolumn command for use with new tabularray interface?

Long time ago I defined some templates. In one of them I used this \newcommand{\zwiueb}[1]{% \multicolumn{3}{l}{\makebox[0pt]{\textbf{#1}}}% } which obviously does no longer work with tabularray. ...
6 votes
2 answers
319 views

Shifted hlines in tblr tabular in RTL context

I'm trying to test tblr tabular provided by tabularray package in an RTL context by adding \textdir TRT (lualatex engine), everything looks fine except for this issue shown in this example \...
  • 16.6k
2 votes
1 answer
83 views

How does tabularray's 'cmd' key work?

A demonstration of the issue by way of a minimal working example I saved the following LaTeX code in ~/Test.tex. \documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{column{2}=...
  • 10.7k
0 votes
3 answers
142 views

How to position two tabularray tables side by side in such a way that their top edges align?

A description of the problem I would like to present two tables of different row numbers side by side in such a way that the top edges of the tables' first rows would lie along the same (imaginary) ...
  • 10.7k
6 votes
1 answer
116 views

Creating a cases environment

I'm using the tabularray package to create a cases-like environment, with some changes: I want the 'if' automatically placed. I need two versions: with and without a star. The first one must change ...
0 votes
1 answer
64 views

Tabular Array package and stored rows with &

I'm trying to use the tabularray package to generate tables from saved information. My input seems to work with the normal latex tables, but I don't know how the other package reads these inputs. I ...
  • 3
0 votes
1 answer
31 views

How to get table note labels to appear in normal but not superscript text using the threeparttable package?

I want the notes in my table to appear in normal text and one after the other without the classic line break. In the tablenotes environment I used the online and para options, but it didn't have the ...
0 votes
1 answer
60 views

How to make a line break inside a multi-column cell created with the tabularray package?

I made a table using the tabularray package. In the first row of this table I want the text to be in two lines, but I can't because I get the error Something's wrong--perhaps a missing \item. \end. In ...
1 vote
1 answer
43 views

Tabularray longtablr: Text from last column text runs out of window

this time I changed my usage frome longtable to tabularray, cause of the more easy configurations. First try everything works with my document class, but now there is every longer line running out of ...

1
2 3 4 5 6