ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] How can I force ConTeXt to display my footnote on the same page as my foot note marker?
@ 2024-07-27 13:35 ai2472206007
  2024-07-29 17:38 ` [NTG-context] " Pablo Rodriguez via ntg-context
  2024-07-29 20:25 ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 3+ messages in thread
From: ai2472206007 @ 2024-07-27 13:35 UTC (permalink / raw)
  To: ntg-context

Hi,

I have a document that contains a lot of footnotes. 
Therefore, I used to separate the footnote number from the footnote text, 
which would make the source file look more readable.

Therefore, I used a similar approach to 'CASE 1', but not 'CASE 2' , 
placing footnotes related to the previous paragraphs every few paragraphs. 
But when I was generating a PDF,
 I found that the footnote didn't always appear on the same page as its footnote number, 
even though the footnote had very little text.

What can I do to get my idea to work?

Thanks for any suggestions.

                                                     Muyik.


% The above text was translated through Bing 
% because I am not a native English speaker. 
% If there is anything unclear, whatever it is, tell me.

%%%%%%%%%%%%%%
\setuppapersize[A6]
\starttext

% case 1

\input knuthmath \note[1]

\input knuthmath \note[2]
\input knuthmath 
\input knuthmath

\footnotetext[1]{\input knuthmath }
\footnotetext[2]{\input knuth } 

% In this case, the text of footnotes 1 and 2 is placed on the same page, 
% but they are separated from the footnote numbers on different pages

\page

% case 2

\input knuthmath \note[1]
\footnotetext[1]{\input knuthmath }

\input knuthmath \note[2]
\input knuthmath 
\input knuthmath

\footnotetext[2]{\input knuth }

% Maybe this situation might get what I wanted, but after all, 
% footnotes are not as important as the main text, 
% and working on the footnotes while writing the main text may not be the right way for me

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: How can I force ConTeXt to display my footnote on the same page as my foot note marker?
  2024-07-27 13:35 [NTG-context] How can I force ConTeXt to display my footnote on the same page as my foot note marker? ai2472206007
@ 2024-07-29 17:38 ` Pablo Rodriguez via ntg-context
  2024-07-29 20:25 ` Hans Hagen via ntg-context
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-07-29 17:38 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 7/27/24 15:35, ai2472206007@yeah.net wrote:
> Hi,
>
> I have a document that contains a lot of footnotes.
> Therefore, I used to separate the footnote number from the footnote text,
> which would make the source file look more readable.

Hi Muyik,

how about two files?

The first one with footnote texts only (as buffers):

  \startbuffer[fn-1]
    \input knuth
  \stopbuffer

  \startbuffer[fn-2]
    \input zapf
  \stopbuffer

Your sample file may read:

  \setuppapersize[A6]
  \input footnotes.tex
  \protected\def\bufffn[#1]%
    {\footnote{\getbuffer[#1]}}
  \starttext

  \input knuthmath \bufffn[fn-1]
  \input knuthmath \bufffn[fn-2]
  \input knuthmath
  \input knuthmath
  \stoptext

It is simple code, but it may give you an idea to start playing with.

Just in case it helps,

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: How can I force ConTeXt to display my footnote on the same page as my foot note marker?
  2024-07-27 13:35 [NTG-context] How can I force ConTeXt to display my footnote on the same page as my foot note marker? ai2472206007
  2024-07-29 17:38 ` [NTG-context] " Pablo Rodriguez via ntg-context
@ 2024-07-29 20:25 ` Hans Hagen via ntg-context
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2024-07-29 20:25 UTC (permalink / raw)
  To: ai2472206007, mailing list for ConTeXt users; +Cc: Hans Hagen

On 7/27/2024 3:35 PM, ai2472206007@yeah.net wrote:
> Hi,
> 
> I have a document that contains a lot of footnotes.
> Therefore, I used to separate the footnote number from the footnote text,
> which would make the source file look more readable.
> 
> Therefore, I used a similar approach to 'CASE 1', but not 'CASE 2' ,
> placing footnotes related to the previous paragraphs every few paragraphs.
> But when I was generating a PDF,
>   I found that the footnote didn't always appear on the same page as its footnote number,
> even though the footnote had very little text.
> 
> What can I do to get my idea to work?
> 
> Thanks for any suggestions.
> 
>                                                       Muyik.
> 
> 
> % The above text was translated through Bing
> % because I am not a native English speaker.
> % If there is anything unclear, whatever it is, tell me.
> 
> %%%%%%%%%%%%%%
> \setuppapersize[A6]
> \starttext
> 
> % case 1
> 
> \input knuthmath \note[1]
> 
> \input knuthmath \note[2]
> \input knuthmath
> \input knuthmath
> 
> \footnotetext[1]{\input knuthmath }
> \footnotetext[2]{\input knuth }
> 
> % In this case, the text of footnotes 1 and 2 is placed on the same page,
> % but they are separated from the footnote numbers on different pages
> 
> \page
> 
> % case 2
> 
> \input knuthmath \note[1]
> \footnotetext[1]{\input knuthmath }
> 
> \input knuthmath \note[2]
> \input knuthmath
> \input knuthmath
> 
> \footnotetext[2]{\input knuth }
> 
> % Maybe this situation might get what I wanted, but after all,
> % footnotes are not as important as the main text,
> % and working on the footnotes while writing the main text may not be the right way for me
> 
> \stoptext
footnotes are implemented using inserts so the text, when entered is 
kept with the 'location' .. this permits the page builders to choose 
breakpoints that

decoupling the location and test itself should be done in a controlled 
way because otherwise a page break can already have been decided

\starttext

\startbuffer[note:1]
     \input{knuthmath}
\stopbuffer
\startbuffer[note:2]
     \input{knuth}
\stopbuffer

\input knuthmath \footnote{\inlinebuffer[note:1]}
\input knuthmath \footnote{\inlinebuffer[note:2]}
\input knuthmath
\input knuthmath

\stoptext

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-07-29 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-27 13:35 [NTG-context] How can I force ConTeXt to display my footnote on the same page as my foot note marker? ai2472206007
2024-07-29 17:38 ` [NTG-context] " Pablo Rodriguez via ntg-context
2024-07-29 20:25 ` Hans Hagen 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).