Forbid footnotes from splitting across pages
![](https://secure.gravatar.com/avatar/11bdb092d7681af7742fdd43617e975c.jpg?s=120&d=mm&r=g)
Dear gang, Objectives: i) Prevent footnotes from splitting across a page or pagebreak ii) Make sure that the footnote reference number in the main text is always on the same page as the footnote. Yes, the result may not be pretty, but for some manuscript submissions it will make sense. In the attached MWE (copied below), footnote 3 gets split across the page, despite [split=verystrict]. Indeed, split=verystrict seems to do nothing. (Reproducing case ii) is more difficult.) Thank you in advance for your help. ============== % \setupalign[flushleft,nothyphenated] \setupnote[footnote][split=verystrict] % \setupnotation[footnote][split=verystrict] \starttext \input ward\ \startfootnote \input knuth \stopfootnote{} \dorecurse{3}{\input ward\ } \startfootnote \input knuth \stopfootnote{} \dorecurse{2}{\input ward\ } \startfootnote \input knuth \stopfootnote{} \dorecurse{3}{\input ward\ } \startfootnote \input knuth \stopfootnote{} \stoptext ============== Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 8/3/22 03:05, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote:
Dear gang,
Objectives:
i) Prevent footnotes from splitting across a page or pagebreak
Dear Idris, I wonder whether a \framed[offset=none, frame=off, width=\textwidth] would make sense here. At least, it would prevent page breaks.
ii) Make sure that the footnote reference number in the main text is always on the same page as the footnote.
\setupnote[footnote][split=verystrict, scope=text] might help here. But it cannot achieve what is practically impossible: \setupnote[footnote][split=verystrict, scope=text] \starttext \dorecurse{25} {ab cd ef\footnote{\input{knuth}}} \stoptext I know that this depends from the publisher, but in these cases endnotes are a way more viable option. Just in case it might help, Pablo
![](https://secure.gravatar.com/avatar/11bdb092d7681af7742fdd43617e975c.jpg?s=120&d=mm&r=g)
Dear Pablo,
Many thanks and apologies for top-posting: my normal email client is currently down.
I thought of something similar; after some testing, this is what I finally came up with:
\setupwhitespace[medium]
\setupnotation[footnote]
[before={%
\startframedtext[none][frame=on,offset=none,width=\textwidth,style={\setupwhitespace[medium]}]},
after={\stopframedtext\blank[medium]}]
\starttext
\input ward\
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{2}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\stoptext
It works but there must be a cleaner way..
Observation: The first argument of \startframedtext is important, otherwise too much extra space is generated -- not sure why but the \startframedtext[none] suppresses it.
Endnotes are evil 🙂
But the reason for this is that I'm converting to WORD using Abobe and NitroPDF, and I'm trying to make things as easy for the editor of the book as easy as possible. The conversion will look right but the dozens of footnotes will, of course, be unlinked. If no footnote crosses the page it will be easier to edit in WORD -- which I'm not touching!
Thanks again.
Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
________________________________
From: ntg-context
Dear gang,
Objectives:
i) Prevent footnotes from splitting across a page or pagebreak
Dear Idris, I wonder whether a \framed[offset=none, frame=off, width=\textwidth] would make sense here. At least, it would prevent page breaks.
ii) Make sure that the footnote reference number in the main text is always on the same page as the footnote.
\setupnote[footnote][split=verystrict, scope=text] might help here. But it cannot achieve what is practically impossible: \setupnote[footnote][split=verystrict, scope=text] \starttext \dorecurse{25} {ab cd ef\footnote{\input{knuth}}} \stoptext I know that this depends from the publisher, but in these cases endnotes are a way more viable option. Just in case it might help, Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ntg.nl... webpage : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pragma... / https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontext.aan... archive : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.... wiki : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcontextgar... ___________________________________________________________________________________
participants (3)
-
Hamid,Idris
-
Idris Samawi Hamid ادريس سماوي ح امد
-
Pablo Rodriguez