Footnote in TABLE isn't rendered anywhere

Hello, in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta fmt: 2017.7.3) the following example doesn't show any footnotes: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \starttext \bTABLE[split=repeat,align=normal] \bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \stoptext ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ That second note reference (\note[x]) even causes a warning: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ references > unknown reference '[][x]' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (Local footnotes work in this case, but I prefer global ones.) Best regards Andreas

On 07/03/2017 05:00 PM, Andreas Schneider wrote:
Hi Andreas, this might do what you intend: \starttext \bTABLE[split=repeat,align=normal] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \stoptext Just in case it helps, Pablo -- http://www.ousia.tk

Dear Andreas, Pablo and the list, I did read your question and answer with great interest, since I encountered similar issues. Sadly your trick to get footnotes that are defined in some environments like tables displayed at the bottom of the page does not work if you try it using backgrounds. Here I provide a minimal example that shows the problem: %%%%%%%%%%%%%%%%%%%% \setupbackground[ width=\textwidth, frame=on, framecolor=black, rulethickness=1pt, background=color, backgroundcolor=white, corner=0, offset=12pt] % \starttext % \startbackground % If you typeset text with background, the footnote workaround does not work.\postponenotes\footnote{So what could I do to get this footnote displayed?} % \stopbackground \flushnotes % \stoptext %%%%%%%%%%%%%%%%%%%% Can anyone tell me what I can do to get the footnote rendered? Thank you in advance. Best regards Mathias

On 07/08/2017 03:17 PM, Mathias Schickel wrote:
Dear Mathias, I didn’t even know that backgrounds existed in ConTeXt. Framed texts does the trick with your sample: \setupframedtext [width=\textwidth, frame=on, rulethickness=1pt, corner=0, offset=12pt] \starttext \startframedtext If you typeset text with background, the footnote workaround does not work. \postponenotes\footnote{So what could I do to get this footnote displayed? Use framed texts.} \stopframedtext \flushnotes \stoptext But if you really need a background, I’m afraid it won’t work (or I don’t know how to make it work). Just in case it might help, Pablo -- http://www.ousia.tk

Dear Pablo, thank you very much for your suggestion! Sadly I have noticed that framed texts do not break across pages (at least if I simply copy and use your code). I remember that I switched to backgrounds (from \definetextbackground) because I did get problems at page breaks. Regarding that backgrounds showed the best behaviour but sadly it has the described problems using footnotes. Do you have any further suggestions how I can enable framed text to break across pages? And can anyone tell me how I can get rid of the problem of backgrounds and footnotes? Again, thank you very much for your kind help! Best Mathias

Does no-one know what I can do to settle the problem? I have created a minimal example that shows the problem using textbackground to work around the footnote problem. But sadly the framedtext environment does not seem to be able to break across pages. Besides I would prefer the background solution. So what can I do to get the footnotes in a background environment displayed? Help appreciated! Best Mathias The minimal example follows: %%%%%%%%%%%%%%%%%% \setupbackground[ width=\textwidth, frame=on, framecolor=black, rulethickness=1pt, background=color, backgroundcolor=green, corner=0, before={\blank[4*small]}, after={\blank[5*small]}, topoffset=10pt, bottomoffset=10pt, leftoffset=10pt, rightoffset=10pt] \setupframedtext [width=\textwidth, frame=on, framecolor=black, rulethickness=1pt, background=color, backgroundcolor=red, corner=0, offset=12pt] \starttext % \startbackground % If you typeset text with background, the footnote workaround does not work.\postponenotes\footnote{So what could I do to get this footnote displayed?} % \stopbackground \flushnotes % \startbackground % One advantages of backgrounds is that they break across pages, as you can see here: % \dorecurse{5}{% \input{knuth}% } % \stopbackground % Compare that to the output of framedtext (the gap on this page is not intended!): % \startframedtext % Here I am getting trouble with breaking across pages. This was the first reason why I switched to backgrounds. % \dorecurse{5}{% \input{knuth}% } % \stopframedtext % \stoptext %%%%%%%%%%%%%%%%%%

best play with textbackgrounds \starttext \starttextbackground \dorecurse{10}{test\footnote{tufte}: \input tufte\par} \stoptextbackground \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

On Wed, 12 Jul 2017 19:05:26 +0200
Hans Hagen
I have found the following to be necessary when using textbackground, especially when backgrounds cross page boundaries: \setnewconstant\kindofpagetextareas\plusone % partial page. HH: low level, no high level switch (yet) Maybe Hans can explain this? Alan

On 7/15/2017 9:11 PM, Alan Braslau wrote:
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

\setnewconstant\kindofpagetextareas\plusone That indeed solves the problem of the textbackground extended over footnotes. Is that anywhere documented? I did not find that anywhere. And what exactly does that command do? Would it not be a good idea to add this as an option in the definition of a textbackground? Mathias

This indeed does the trick! Thank you very much! Maybe I will take use of Hans’ suggestion about textbackgrounds, but as I remember I have switched from those to backgrounds because they sometimes showed strange behaviour at page breaks if formulas are involved (leaving far too much space at the bottom of a page that could be used if I used backgrounds). Maybe I will be able to write a minimal example showing this effect of textbackgrounds. However, I have met some issues using your solution, Aditya, with \automigrateinserts. I got one text in background containing a footnote that has been rendered onto the footnote. Of course this can only happen if the backgrounded text appears at the bottom of a page. It is a little hard to get a minimal example showing this. But I think everyone can imagine what I mean. Maybe I will be able to produce minimal examples of both issues and then I will send it to the list and maybe Hans or someone with similar skills can take care of that effects. Best and many thanks for the help Mathias

On 07/14/2017 05:22 PM, Mathias Schickel wrote:
Mathias, it would be weird that body text ended up in a footnote, but without a source it will be much harder to fix the bug. Just in case I got you wrong: is your issue that the background also covers the footnotes, such as in the first and second pages from: \automigrateinserts \setuptextbackground[location=paragraph] \starttext \dorecurse{10}{\starttextbackground test\footnote{tufte}: \input knuth\hfill \stoptextbackground\blank} \stoptext Just in cas it helps, Pablo -- http://www.ousia.tk

Indeed the text was written onto the text of the footnote, so both texts did overlap. Sadly I was not able to reproduce it, since meanwhile I did change my document a bit (and updated to the latest beta). But it was in combination with mathematical theorems (so I defined the background to highlight theorems), this means it was in combination with lists. If I will run into a similar issue or will be able to reproduce it in a minimal example I will inform you. But in the latest test I did not get that behaviour even if a theorem was extended to the next page and footnotes had been at the first page of the theorem. So things worked fine.
What can be done that this does not happen? (Your example?) Here we have a minimal example, your own. ;-)
Pablo
Best Mathias

Hey folks, trying to be a good citizen, I added (And quoted) this message
onto the wiki:
http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
I tried for a bit to try to get the example to render, but no footnotes
would show at all. Anyone have thoughts as to how to get wiki rendering to
work here? And are there any other examples from this thread that should be
added?
Also, thanks for this solution, Pablo, it really helped.
On 6 July 2017 at 04:51, Pablo Rodriguez

Hi Alan,
I'm sorry I'm... fuzzy today.
Are you asking me to add: "\automigrateinserts" to the wiki example as a
different mechanism to demonstrate from earlier in this thread, proposing
it as a different solution this problem, and/or proposing it as a solution
to the "not rendering inside the wiki ConTeXt version?
My apologies for misunderstanding.
-Brian
On 21 August 2017 at 12:35, Alan Braslau

On 08/21/2017 05:57 AM, Brian Ballsun-Stanton wrote:
Hi Brian, I wonder how you may define fuzziness, but your question proposes three well-defined options ;-). As far as I understand it, Alan was simply proposing a way to get the footnote out of the table. I mean, to have a footnote from a table. This is already solved with \postponenotes and \flushnotes. The problem with the wiki is that you don’t have standard footnotes. Because having a full page wouldn’t be helpful in most cases.
My apologies for misunderstanding.
I hope I’m not getting Alan’s point wrong. Just in case it helps, Pablo -- http://www.ousia.tk

On 08/21/2017 03:15 AM, Brian Ballsun-Stanton wrote:
Hi Brian, footnotes in the wiki are tricky: \starttext \startbuffer \bTABLE[split=repeat,align=normal] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \stopbuffer \getbuffer \startTEXpage[offset=1em] \getbuffer \stopTEXpage \stoptext The second page is similar to the problem with the wiki. This might be a workaround for the wiki (if I’m not wrong): \setupnotes[location=text] \starttext \bTABLE[split=repeat,align=normal] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \placenotes[footnote] \stoptext Just in cases it helps, Pablo -- http://www.ousia.tk

On 08/22/2017 03:17 AM, Brian Ballsun-Stanton wrote:
Hi Pablo,
It helped. (The numbers are eaten, but I think the example is important.
Hi Brian, sorry, I simply forgot (and I didn’t see it in the sample because I didn’t wrap everything inside a TEXpage). \setupnotations[alternative=serried] is required here: \setupnotes[location=text] \setupnotations[alternative=serried] \starttext \bTABLE[split=repeat,align=normal] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \placenotes[footnote] \stoptext BTW, it would be important to warn the reader that both \setupnotes and \setupnotations are required because of the wiki. I hope it is fine now, Pablo -- http://www.ousia.tk
participants (8)
-
Aditya Mahajan
-
Alan Braslau
-
Andreas Schneider
-
Brian Ballsun-Stanton
-
Brian Ballsun-Stanton
-
Hans Hagen
-
Mathias Schickel
-
Pablo Rodriguez