Am 15.07.2017 um 18:07 schrieb Pablo Rodriguez
: On 07/14/2017 05:22 PM, Mathias Schickel wrote:
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.
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.
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.
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,
What can be done that this does not happen? (Your example?) Here we have a minimal example, your own. ;-)
Pablo
Best Mathias
-- 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 / 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 ___________________________________________________________________________________