I would like to be able to write the following:
Lorem ipsum dolorfootnote{Sit tamen non caveat.} ipsum quotidie.footnote{Cras lorem dolorrime.}
footnotes
so that it is expanded as follows when running gpp -T
:
Lorem ipsum dolor[1] ipsum quotidie.[2]
[1]: Sit tamen non caveat.
[2]: Cras lorem dolorrime.
I have tried to define the following macros:
define{footno}{0}
define{footnotes}{}
define{footnote}{define{footno}{eval{footno+1}}[footno]
define{footnotes}{footnotes
[footno]: #1}}
But I get the following error message:
warning: the defined(...) macro is already defined
warning: the defined(...) macro is already defined
warning: the defined(...) macro is already defined
warning: the defined(...) macro is already defined
warning: the defined(...) macro is already defined
warning: the defined(...) macro is already defined
warning: the defined(...) macro is already defined
error: Stack depth exceeded during parse