I'm almost done switching to tabularray but have just one final problem to solve.
Using \footnote inside tblr doesn't work properly, but it's a known problem with most (all?) table-like environments. After a bit of research, I tried this:
\documentclass{article}
\usepackage{tabularray}
\usepackage{footnote}
\makesavenoteenv{tblr}
\UseTblrLibrary{counter}
\begin{document}
\begin{tblr}{colspec={ll}}
a line & a text\footnote{with a note} in the middle\
another line & another text\footnote{with another note} in the middle
\end{tblr}
\end{document}
Thanks to \UseTblrLibrary{counter}, the footnotes are numbered correctly inside the table, but the footnotes themselves are badly handled and appear multiple times:
Second try, I used \TblrNote provided by tabularray:
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{longtblr}[
note{1}={with a note},
note{2}={with another note}
]{colspec={ll}}
a line & a text\TblrNote{1} in the middle\
another line & another text\TblrNote{2} in the middle
\end{longtblr}
\end{document}
which yields this:
But this solution isn't satisfactory for several reasons:
- The footnote numbers in the table don't handle spaces after them correctly, as shown in the picture above.
- I'd have to number footnotes manually, which is a big no-no in LaTeX.
- The footnotes themselves aren't rendered like normal footnotes: wrong font size, no horizontal rule above them, and their numbers ignore previously existing footnotes on other pages.
Is there a clean way to get real footnotes with tabularray? Thanks for your attention.





tabularray. As I explained at the beginning of my post, the very point is to completely switch to this package. Also, it seems to create notes attached to the table instead of the page. – Miyase May 24 '22 at 17:43tabular, I just load thefootnotepackage and everything is handled cleanly and automatically. I'm wondering if I can get to this point withtabularray. – Miyase May 24 '22 at 18:05