On 7/27/24 15:35, ai2472206...@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
___________________________________________________________________________________

Reply via email to