From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117118 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Disappearing footnote in figure / tabulate Date: Thu, 2 Mar 2023 10:49:22 +0000 Message-ID: <98afaf70c3a24997a59f87ac3dd70a10@unibe.ch> References: <20d0fb6b6cbf4b58a5daa773f86a8185@unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0506333106704319484==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10299"; mail-complaints-to="usenet@ciao.gmane.io" Cc: denis.maier@unibe.ch To: Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 02 11:49:58 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pXgVa-0002SR-AA for gctc-ntg-context-518@m.gmane-mx.org; Thu, 02 Mar 2023 11:49:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1485638092A; Thu, 2 Mar 2023 11:49:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dEl3hChhDLkl; Thu, 2 Mar 2023 11:49:28 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D256380921; Thu, 2 Mar 2023 11:49:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 27FA438091A for ; Thu, 2 Mar 2023 11:49:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yPAS0qQkLiIZ for ; Thu, 2 Mar 2023 11:49:24 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.82; helo=mailhub-lb1.unibe.ch; envelope-from=denis.maier@unibe.ch; receiver= Original-Received: from mailhub-lb1.unibe.ch (mailhub-lb1.unibe.ch [130.92.0.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5C58A380775 for ; Thu, 2 Mar 2023 11:49:24 +0100 (CET) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-02.campus.unibe.ch [130.92.13.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id CF1B5500261 for ; Thu, 2 Mar 2023 11:49:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unibe.ch; s=mgwsel1; t=1677754162; bh=r0rGqfp/d0iiE/h7Klo3t/k9XY05vZAh5BgwhgFaWaA=; h=From:To:Subject:Date:References:In-Reply-To:From; b=A+R3JuweWdp06boX8MB5Wbxwr7fclfv4BWb5/Co6a/nhoD9IXXqp11FSiFo8YoC+h 3lsqHftzyqsSSHWy5qG6CyIL4gqdtsSIqC7oOL5Y6qs0Q6dYed6JV5uiKOSs74gpeq gVUIW+IDYlnLrN5K+DpC4RGlohh9hKflAMLD54ggEl5SHY+l93MNKY7mrRefBJyXZ9 Z926+Baji7fy4AombbOHp1EC7LnFwcDa7XJNKqFOvftrFnIen1S4NcAyI3jvFw6qxv c3oCUcGbt5ojjKSS1+cMNR3oW/uU8r6eU/HZyha8btjtWsDiUPWaLOO66kIMsTOSVA kVO9JEbgrb0/w== Original-Received: from aai-mail-02.campus.unibe.ch (130.92.13.168) by AAI-EDGE-02.campus.unibe.ch (130.92.13.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.21; Thu, 2 Mar 2023 11:49:16 +0100 Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by aai-mail-02.campus.unibe.ch (130.92.13.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.21; Thu, 2 Mar 2023 11:49:22 +0100 Original-Received: from aai-mail-03.campus.unibe.ch ([172.18.73.17]) by aai-mail-03.campus.unibe.ch ([172.18.73.17]) with mapi id 15.01.2507.021; Thu, 2 Mar 2023 11:49:22 +0100 Thread-Topic: Disappearing footnote in figure / tabulate Thread-Index: AdlMV1fLfGyjTtaORFayMZETlFUWAQAh+Q1gAARyOAA= In-Reply-To: <20d0fb6b6cbf4b58a5daa773f86a8185@unibe.ch> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:117118 Archived-At: --===============0506333106704319484== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_98afaf70c3a24997a59f87ac3dd70a10unibech_" --_000_98afaf70c3a24997a59f87ac3dd70a10unibech_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ok, I've somehow managed to isolate the issue in my real document. There, t= he issue happens only when a new paragraph starts after the tabulate. If th= ere's nothing after the tabulate, the footnotes appears... Also, if I'm usi= ng location=3Dpage, the footnote will also appear. That's what I'm using no= w, so there's no urgency for me now. (But does that maybe already indicate = the source of the issue ?) Anyway, I still find the behaviour somewhat weird. I'll try to come up with= a MWE. Any hints how to best proceed are still highly appreciated. Best, Denis Von: ntg-context Im Auftrag von Denis Maier vi= a ntg-context Gesendet: Donnerstag, 2. M=E4rz 2023 09:21 An: ntg-context@ntg.nl Cc: Maier, Denis Christian (UB) Betreff: [NTG-context] Disappearing footnote in figure / tabulate 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 i= t must have something to do with \startpostponingnotes, but it seems that t= his 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 u= p? Best, Denis \startbuffer[test]
a2 b
a2 b
\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=3D{Test},location=3D{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 --_000_98afaf70c3a24997a59f87ac3dd70a10unibech_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Ok, I’ve somehow managed to isolate the issue = in my real document. There, the issue happens only when a new paragraph sta= rts after the tabulate. If there’s nothing after the tabulate, the fo= otnotes appears... Also, if I’m using location=3Dpage, the footnote will also appear. That’s what I’m using now, so t= here’s no urgency for me now. (But does that maybe already indicate the source of th= e issue ?)

 

Anyway, I still find the behaviour somewhat weird. I= ’ll try to come up with a MWE. Any hints how to best proceed are stil= l highly appreciated.

 

Best,

Denis

 

Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Denis Maier via ntg-context
Gesendet: Donnerstag, 2. M=E4rz 2023 09:21
An: ntg-context@ntg.nl
Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
Betreff: [NTG-context] Disappearing footnote in figure / tabulate

 

Hi,

 

I have a strange case where a f= ootnote in a tabulate disappears. Strangely, I *cannot* reproduce the behaviour in the MWE belo= w. At first, I thought it must have something to do with \startpostponingno= tes, 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 co= uld debug that issue?

 

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

 

Best,

Denis

 

\startbuffer[test]

<?xml version=3D'1.0' standa= lone=3D'yes?>

<document>

  <figure>

    <table>= ;

      = <tr>

     &= nbsp;  <td>a<footnote>2</footnote></td>

     &= nbsp;  <td>b</td>

      = </tr>

    </table&g= t;

  </figure>

    <figure&g= t;

    <table-wr= ap>

    <table>= ;

      = <tr>

     &= nbsp;  <td>a<footnote>2</footnote></td>

     &= nbsp;  <td>b</td>

      = </tr>

    </table&g= t;

    </table-w= rap>

  </figure>

</document>

\stopbuffer

 

\startxmlsetups xml:test

\xmlsetsetup{\xmldocument}{docu= ment|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= =3D{Test},location=3D{force,split}]

    \xmlflush{#1= }

  \stopplacefigure

\stopxmlsetups

 

\startxmlsetups xml:table-wrap<= o:p>

  \startpostponingnotes

    \xmlflush{#1= }

  \stoppostponingnotes

\stopxmlsetups

 

\startxmlsetups xml:table<= /o:p>

  \startpostponingnotes

    \starttabula= te[|p|p|]

     &= nbsp;            \xmlfilt= er{#1}{/tr/command(xml:table:tr)}

    \stoptabulat= e

  \stoppostponingnotes

\stopxmlsetups

 

\startxmlsetups xml:table:tr

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

\stopxmlsetups

 

\startxmlsetups xml:table:tr:td=

     &= nbsp;          \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 \eT= D \eTR

\eTABLE

\stopplacetable

 

 

% \startpostponingnotes

\startplacetable

\startxtable<= /p>

\startxrow

\startxcell a\footnote{5}\stopx= cell

\startxcell b\footnote{6}\stopx= cell

\stopxrow

\stopxtable

\stopplacetable

% \stoppostponingnotes

 

\stoptext

 

 

 

 

 

 

 

 

--_000_98afaf70c3a24997a59f87ac3dd70a10unibech_-- --===============0506333106704319484== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0506333106704319484==--