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?
\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
%%%%%%%%%%%%%%%%%%