# Math columns in tabularray

The package tabularray seems like a good start, but the documentation is really sparse. Is there a way to add math columns? Like X[$] in tabu or \newcolumntype{C}{>{$}c<{$}}in array. • What about something like \documentclass{article} \usepackage{tabularray} \begin{document} \begin{table}[h] \caption{Table caption} \begin{tblr}{colspec={l>{$}c<{$}}} text & \alpha \end{tblr} \end{table} \end{document}? Jun 3, 2021 at 9:30 • @leandriis Thanks! Post it as an answer and I will mark it as the solution. Bonus points if you can define a new column type like the newcolumntype. Jun 3, 2021 at 9:34 ## 2 Answers \documentclass{article} \usepackage{tabularray} \NewColumnType{C}{>{$}c<{$}} \begin{document} \begin{table}[h] \caption{Table caption} \begin{tblr}{colspec={l>{$}c<{$}}} text & \alpha \end{tblr} \end{table} \begin{table}[h] \caption{Table caption} \begin{tblr}{colspec={lC}} text & \alpha \end{tblr} \end{table} \end{document}  Since version 2021P, tabularray package has $ and $$ options for cells/rows/columns. \documentclass{article} \usepackage{amsmath} \usepackage{tabularray} \begin{document} \begin{tblr}{colspec={lQ[c,]Q[r,$$]},hlines}
text & \frac{1}{2} & -\frac{3}{4} \\
text & \frac{5}{6} & -\frac{7}{8}
\end{tblr}

\end{document}