[tex-eplain] footnotes

Dustin Tucker dtuck at umich.edu
Tue May 18 20:56:10 CEST 2010


At 15:53 Tue, 18 May 2010, Jim Diamond wrote

> On Tue, May 18, 2010 at 19:36 (+0100), Adam Fenn wrote:
>
>> On 18 May 2010, at 19:19, Jim Diamond wrote:
>
>>>> How can I use the command \footnotenumber=0  so that numbered
>>>> footnotes
>>>> are automatically reset to 1 on each page? I tried putting into the
>>>> header but that didn't work.
>>> You already got an answer to that, although I wonder if it is robust
>>> to footnotes that are referred to on one page but which show up only
>>> on the following page.
>>
>> I can't get it to work - perhaps I'm misunderstanding something.
>>
>> \input eplain
>> \output={\footnotenumber=0\plainoutput}
>> \let\footnote = \numberedfootnote
>> \footnote{one}
>> \vfill\eject
>> \footnote{two}
>> \bye
>
> How about
> 	\output={\global\footnotenumber=0\plainoutput}
>
> I think that will do what you want.

Yeah, sorry, I was just working from other changes to \output I'd made. I've never needed \global before, but it does fix the problem here. Maybe someone who understands eplain better than I can explain why.

Dustin


More information about the tex-eplain mailing list