0

This is a follow up question to The footnote text is repeated several times at the bottom of the page. I am using the solution provided by @gusbrs, within a paracol environment. It looks like that the footnote text is still repeated twice. How to get one footnote text only, and not two, within the paracol environment?

\documentclass{article}
\usepackage[a4paper,margin=1mm]{geometry}
\usepackage{lipsum}
\usepackage{paracol}
\usepackage{tabularray}

% Solution of @gusbrs that works without paracol % https://tex.stackexchange.com/questions/713140/the-footnote-text-is-repeated-several-times-at-the-bottom-of-the-page/713149#713149 \UseTblrLibrary{counter} \UseTblrLibrary{functional}

\makeatletter \IgnoreSpacesOn \tlNew \gFootNoteTl \intNew \gFootNoteInt \prgNewFunction \footNote {m} { \IfBooleanF { \lTblrMeasuringBool } { \tlPutRight \gFootNoteTl { \stepcounter{footnote} \footnotetext{#1} } \prgReturn {\footnotemark{}} } } \AddToHook{env/longtblr/before}{ \intSetEq \gFootNoteInt \c@footnote \tlClear \gFootNoteTl } \AddToHook{env/longtblr/after}{ \intSetEq \c@footnote \gFootNoteInt \tlUse \gFootNoteTl } \IgnoreSpacesOff \makeatother

\begin{document}

\begin{paracol}{2} \lipsum[1] \switchcolumn \DefTblrTemplate{firsthead, middlehead,lasthead}{default}{} \begin{longtblr}[ presep=-4pt,postsep=0pt ]{ colspec = {lXr}, colsep=4pt, hlines, \columnwidth, } 01/01/2020 $-$ 31/12/2022 & \textbf{First} & Text 1\ 01/01/2018 $-$ 31/12/2019 \footNote{my first footnote} & \textbf{Second} & Text 2\ 01/01/2016 $-$ 31/12/2017 & \textbf{Third} & Text 3\ \end{longtblr} \end{paracol}

\newpage \vspace{1cm} \DefTblrTemplate{firsthead, middlehead,lasthead}{default}{} \begin{longtblr}[ presep=-4pt,postsep=0pt ]{ colspec = {lX}, colsep=4pt, hline{odd}={solid}, row{odd}={belowsep=0pt}, row{even}={abovesep=0pt}, cell{even}{1} = {c=2}{wd=\textwidth-8pt,halign=j} } 01/01/2020 $-$ 31/12/2022 & \textbf{First}\ \lipsum[2] &\ 01/01/2018 $-$ 31/12/2019 \footNote{my second footnote} & \textbf{Second}\ \lipsum[2] &\ 01/01/2016 $-$ 31/12/2017 & \textbf{Third}\ \lipsum[2] &\ \end{longtblr}

\end{document}

enter image description here enter image description here

Ommo
  • 835
  • 1
    If the fix were working correctly, the foonote counter would be 1 at the exit (it is 2) and \footnotetext would only be called once. Tests show that \footnote, \footnotemark and \footnotetext work fine inside paracol. Perhaps there is another undocumented boolean in longtblr that needs to be tested. – John Kormylo Mar 14 '24 at 20:56

0 Answers0