Hi,

 

I have a strange case where a footnote in a tabulate disappears. Strangely, I *cannot* reproduce the behaviour in the MWE below. At first, I thought it must have something to do with \startpostponingnotes, but it seems that this currently isnt’t necessary anymore, or at least only for extreme tables. Is that correct?

 

I’ll try to narrow it down. Any hints how I could debug that issue?

 

As I’m again working with XML files: Is it possible that this behaviour is caused by some sort of nested setups which makes the footnotes not bubble up?

 

Best,

Denis

 

\startbuffer[test]

<?xml version='1.0' standalone='yes?>

<document>

  <figure>

    <table>

      <tr>

        <td>a<footnote>2</footnote></td>

        <td>b</td>

      </tr>

    </table>

  </figure>

    <figure>

    <table-wrap>

    <table>

      <tr>

        <td>a<footnote>2</footnote></td>

        <td>b</td>

      </tr>

    </table>

    </table-wrap>

  </figure>

</document>

\stopbuffer

 

\startxmlsetups xml:test

\xmlsetsetup{\xmldocument}{document|table-wrap|table|figure|p|footnote}{xml:*}

\stopxmlsetups

 

\xmlregistersetup{xml:test}

 

\startxmlsetups xml:document

  \xmlflush{#1}

\stopxmlsetups

 

\startxmlsetups xml:p

  \xmlflush{#1}\par

\stopxmlsetups

 

\startxmlsetups xml:footnote

  \footnote{\xmlflush{#1}}

\stopxmlsetups

 

\startxmlsetups xml:figure

  \startplacefigure[title={Test},location={force,split}]

    \xmlflush{#1}

  \stopplacefigure

\stopxmlsetups

 

\startxmlsetups xml:table-wrap

  \startpostponingnotes

    \xmlflush{#1}

  \stoppostponingnotes

\stopxmlsetups

 

\startxmlsetups xml:table

  \startpostponingnotes

    \starttabulate[|p|p|]

                  \xmlfilter{#1}{/tr/command(xml:table:tr)}

    \stoptabulate

  \stoppostponingnotes

\stopxmlsetups

 

\startxmlsetups xml:table:tr

                \xmlfilter{#1}{/td/command(xml:table:tr:td)}\NC\NR

\stopxmlsetups

 

\startxmlsetups xml:table:tr:td

                \NC \xmlflush{#1}

\stopxmlsetups

 

 

\starttext

\xmlprocessbuffer{test}{test}{}

 

\startplacetable

\starttabulate[|p|p|]

\NC a\footnote{3}\NC b\NC\NR

\stoptabulate

\stopplacetable

 

 

\startplacetable

\bTABLE

\bTR \bTD One\footnote{4} \eTD \bTD two \eTD \eTR

\bTR \bTD One \eTD \bTD two \eTD \eTR

\eTABLE

\stopplacetable

 

 

% \startpostponingnotes

\startplacetable

\startxtable

\startxrow

\startxcell a\footnote{5}\stopxcell

\startxcell b\footnote{6}\stopxcell

\stopxrow

\stopxtable

\stopplacetable

% \stoppostponingnotes

 

\stoptext