0

How to make \footnote{} work within longtblr?

This is my MWE:

\documentclass{article}
\usepackage{tabularray}

\begin{document}

\begin{longtblr}{
      hlines,
      vlines,
      colspec   = {X[1]X[3]},
      rowhead   = 1,
      rowsep    = 0.5ex,
      width     = 0.9\linewidth,
      row{1}    = {font=\bfseries}
    }
    Header       & Second header\\
    First column & Second column\footnote{Hello!}\\
    First column & Second column\\
    First column & Second column\\
    First column & Second column\\
\end{longtblr}

\end{document}

enter image description here

1 Answer 1

2

Are you trying to implement table-notes? Like the following example?

\documentclass{article}
\usepackage{tabularray}

\begin{document}

\begin{longtblr}[
note{a} = {Hello!},
]{
      hlines,
      vlines,
      colspec   = {X[1]X[3]},
      rowhead   = 1,
      rowsep    = 0.5ex,
      width     = 0.9\linewidth,
      row{1}    = {font=\bfseries}
    }
    Header       & Second header\\
    First column & Second column\TblrNote{a}\\
    First column & Second column\\
    First column & Second column\\
    First column & Second column\\
\end{longtblr}

\end{document}

enter image description here

EDIT: Based on the comments, OP wants actual footnotes in the longtblr environment. Then you can try the accepted answer to this question.

2
  • 1
    Thanks a lot @Mane32... I was thinking about an actual footnote... but if footnote does not work within longtblr, I could use your solution as a temporary workaround... :-) My desire would be to add a footnote with the note at the end of the page and not at the end of the table....if possible....
    – Ommo
    Commented Mar 9 at 20:29
  • For future readers, I added an answer in tex.stackexchange.com/questions/645421/… which is exactly about how to add a footnote within longtblr. It is just a small modification of the @L.J.R. answer (the accepted one)
    – Ommo
    Commented Mar 9 at 21:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .