ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Forbid footnotes from splitting across pages
@ 2022-08-03  1:05 Idris Samawi Hamid ادريس سماوي حامد via ntg-context
  2022-08-03 13:47 ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد via ntg-context @ 2022-08-03  1:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users
  Cc: Idris Samawi Hamid ادريس
	سماوي حامد

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

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

[-- Attachment #2: split-footnotes.pdf --]
[-- Type: application/pdf, Size: 21087 bytes --]

[-- Attachment #3: split-footnotes.tex --]
[-- Type: application/x-tex, Size: 438 bytes --]

[-- Attachment #4: Type: text/plain, Size: 496 bytes --]

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Forbid footnotes from splitting across pages
  2022-08-03  1:05 Forbid footnotes from splitting across pages Idris Samawi Hamid ادريس سماوي حامد via ntg-context
@ 2022-08-03 13:47 ` Pablo Rodriguez via ntg-context
  2022-08-03 14:21   ` Hamid,Idris via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-08-03 13:47 UTC (permalink / raw)
  To: Idris Samawi Hamid ادريس
	سماوي حامد
	via ntg-context
  Cc: Pablo Rodriguez

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Forbid footnotes from splitting across pages
  2022-08-03 13:47 ` Pablo Rodriguez via ntg-context
@ 2022-08-03 14:21   ` Hamid,Idris via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Hamid,Idris via ntg-context @ 2022-08-03 14:21 UTC (permalink / raw)
  To: Idris Samawi Hamid ادريس
	سماوي حامد
	via ntg-context
  Cc: Hamid,Idris, Pablo Rodriguez


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

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 <ntg-context-bounces@ntg.nl> on behalf of Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
Sent: Wednesday, August 3, 2022 7:47 AM
To: Idris Samawi Hamid ادريس سماوي حامد via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: [NTG-context] Forbid footnotes from splitting across pages

** Caution: EXTERNAL Sender **

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
___________________________________________________________________________________
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%2Fmailman%2Flistinfo%2Fntg-context&amp;data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=53R%2FGoQs03xamwTP1AaSV%2Flz0ANPdXq%2BScb8LWrCKDY%3D&amp;reserved=0
webpage  : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pragma-ade.nl%2F&amp;data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=d0in%2BCdHvJmM4%2FLLb4TSe3HLoUTGm3SV9VWckCFge8c%3D&amp;reserved=0 / https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontext.aanhet.net%2F&amp;data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=0ROMr0be%2Fcjjn7%2B84joQS6VN40i%2BkhEKytb%2FOYfT7Tk%3D&amp;reserved=0
archive  : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.org%2Fphg%2Fcontext-mirror%2Fcommits%2F&amp;data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=KvquRtfyCxBeYRNGwgcjIfJJcc2VFzgMrVblnqx5IiU%3D&amp;reserved=0
wiki     : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcontextgarden.net%2F&amp;data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=2I9Ld7VLXQUlPOAo96PnWx3ITOX%2BS0arKW%2FIuPpWvRg%3D&amp;reserved=0
___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 11915 bytes --]

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

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-03 14:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03  1:05 Forbid footnotes from splitting across pages Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2022-08-03 13:47 ` Pablo Rodriguez via ntg-context
2022-08-03 14:21   ` Hamid,Idris via ntg-context

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).