Creates modern LaTeX tables with tabularray package for fixed-width columns, proper alignment, and clean syntax. Use when creating tables or working with column layouts.
Limited to specific tools
Additional assets for this skill
This skill is limited to using the following tools:
references/column-spec.mdreferences/lines-borders.mdreferences/migration.mdreferences/table-patterns.mdreferences/troubleshooting.mdWhen to use this skill:
Modern LaTeX3 package (replaces old solutions):
tabular, tabularx, longtable, booktabs# Check if installed
kpsewhich tabularray.sty
# If not found, install:
sudo tlmgr install tabularray
\documentclass{article}
\usepackage{tabularray} % Modern table package
\begin{document}
% Simple table
\begin{tblr}{colspec={ccc}, hlines, vlines}
Header 1 & Header 2 & Header 3 \\
Data 1 & Data 2 & Data 3 \\
\end{tblr}
\end{document}
% Minimal table
\begin{tblr}{colspec={ccc}}
A & B & C \\
\end{tblr}
% With all lines
\begin{tblr}{colspec={ccc}, hlines, vlines}
A & B & C \\
\end{tblr}
% Fixed widths
\begin{tblr}{colspec={Q[2cm] Q[3cm] Q[2cm]}, hlines}
A & B & C \\
\end{tblr}
% Bold header
\begin{tblr}{
colspec={ccc},
row{1}={font=\bfseries}
}
Header & Header & Header \\
Data & Data & Data \\
\end{tblr}
kpsewhich tabularray.sty (should be recent)For detailed information, see:
Official Docs: Run texdoc tabularray for complete package documentation
See Also:
latex/setup skill for installing tabularray packagelatex/build skill for compilation workflows