ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mathias Schickel <msch@fa.uni-tuebingen.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Footnote in TABLE isn't rendered anywhere
Date: Wed, 12 Jul 2017 18:30:38 +0200	[thread overview]
Message-ID: <126D79B1-E4AA-468D-9284-0F464763F8F8@fa.uni-tuebingen.de> (raw)
In-Reply-To: <74B76E5C-1A2D-4BFA-A271-8A0271D9CAA6@fa.uni-tuebingen.de>


[-- Attachment #1.1: Type: text/plain, Size: 5312 bytes --]


> Am 10.07.2017 um 20:23 schrieb Mathias Schickel <msch@fa.uni-tuebingen.de>:
> 
>> 
>> Am 10.07.2017 um 12:50 schrieb Pablo Rodriguez <oinos@gmx.es>:
>> 
>> On 07/08/2017 03:17 PM, Mathias Schickel wrote:
>>> 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:
>> 
>> 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
> 
> 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
%%%%%%%%%%%%%%%%%%



> 
>> -- 
>> http://www.ousia.tk <http://www.ousia.tk/>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
> wiki     : http://contextgarden.net <http://contextgarden.net/>
> ___________________________________________________________________________________


[-- Attachment #1.2.1: Type: text/html, Size: 14889 bytes --]

[-- Attachment #1.2.2: FramedFootnote.pdf --]
[-- Type: application/pdf, Size: 16660 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 11228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2017-07-12 16:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03 15:00 Andreas Schneider
2017-07-05 18:51 ` Pablo Rodriguez
2017-07-06  7:41   ` Andreas Schneider
2017-07-08 13:17     ` Mathias Schickel
2017-07-10 10:50       ` Pablo Rodriguez
2017-07-10 18:23         ` Mathias Schickel
2017-07-12 16:30           ` Mathias Schickel [this message]
2017-07-12 17:05             ` Hans Hagen
2017-07-15 19:11               ` Alan Braslau
2017-07-15 19:55                 ` Hans Hagen
2017-07-16  9:38                   ` Mathias Schickel
2017-07-12 23:18             ` Aditya Mahajan
2017-07-14 15:22               ` Mathias Schickel
2017-07-15 16:07                 ` Pablo Rodriguez
2017-07-15 18:07                   ` Mathias Schickel
2017-07-15 19:03                     ` Pablo Rodriguez
2017-08-21  1:15   ` Brian Ballsun-Stanton
2017-08-21  2:35     ` Alan Braslau
2017-08-21  3:57       ` Brian Ballsun-Stanton
2017-08-21 17:29         ` Pablo Rodriguez
2017-08-21 17:21     ` Pablo Rodriguez
2017-08-22  1:17       ` Brian Ballsun-Stanton
2017-08-22  8:17         ` Pablo Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=126D79B1-E4AA-468D-9284-0F464763F8F8@fa.uni-tuebingen.de \
    --to=msch@fa.uni-tuebingen.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).