Pablo Rodriguez via ntg-context schrieb am 17.03.2024 um 17:38:
Dear list,
I have the following sample (which was on the way of showing another issue):
\starttext
a
\starttyping
b
\stoptyping
c
\startfootnote
a
\starttyping
b
\stoptyping
c
\stopfootnote
\stoptext
Current latest (from 2024.03.11 09:34) breaks compilation with both LMTX
and LuaTeX.
As far as I know, this sample should be compiled without any issue.
Could you be so kind to confirm the issue or explain me what am I missing?
The footnote environment is just a fancy way for a command with a
argument and buffers don't like being part of arguments.
You can put the code in buffer outside of the footnote and type the
content of the buffer in the footnote.
%%%% begin example
\starttext
\def\startfoo#1\stopfoo{#1}
% \startfoo
% xxx
% \starttyping
% yyy
% \stoptyping
% zzz
% \stopfoo
\startbuffer
yyy
\stopbuffer
\startfoo
xxx
\typebuffer
zzz
\stopfoo
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________