tabularray
tabularray copied to clipboard
Using `tabularray` for typesetting figures
Hi, Jianrui,
Many thanks for your solid works on the package. I am using the package to typeset figures, but there are some issues, including the wrong numbers and the repeated items in the LOF. The MWE is listed as follows.
\documentclass{article}
\usepackage{graphicx}
\usepackage[caption=false,font=footnotesize,subrefformat=parens]{subfig}
\usepackage{tocbibind}
\usepackage[subfigure, titles]{tocloft}
\setcounter{lofdepth}{2}
\usepackage{tabularray}
\begin{document}
\listoffigures
\begin{figure}[!h]
\begin{tblr}{
% vlines,
colspec = {X[1,l,m]X[1,c,m]},
columns = {leftsep=0pt,rightsep=0pt},
cell{1}{1} = {r=2}{c,m},
}
\subfloat[Subfigure title.]{\includegraphics[width=0.5\textwidth]{example-image-a}} & \subfloat[Subfigure title.]{\includegraphics[width=0.5\textwidth]{example-image-a}} \\
Test & \subfloat[Subfigure title.]{\includegraphics[width=0.5\textwidth]{example-image-a}}
\end{tblr}
\caption{Figure title.}
\end{figure}
\end{document}

For the first problem, you need to load counter library with \UseTblrLibrary{counter}.
The second problem is a little complicated and need some time to be fixed.
Many thanks for your timely reply. I have solved the first issue with simply loading \UseTblrLibrary{counter}.