[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Footnotes/Endnotes formatting
- Subject: Re: Footnotes/Endnotes formatting
- From: Harry Binswanger hb@xxxxxxxx
- Date: Thu, 03 Jan 2008 23:20:25 -0500
Anyone successful with the SF command?
Not I.
Meanwhile, you can indeed imbed [embed, Patricia?] a page number in the
footnote string, to wit: «FN1«PN» Tsunoda, «MDIT»Issai Yume Ni
Gozako«MDNM». But the number that prints (when you DF, as I'm going to do)
is the number of the last page (where the notes are dumped), not the page
where the footnote appears in the text. What I need is a routine that puts
the page number (the value of PN for each note, the page on which that
note appears) in the note itself when it prints. If I have to put those
numbers in by hand, whew. I don't think a counter is the answer, but then....
Sounds like a job for an XPL program, something like this (off the top of
my head)
TF XP SP ;*; top of file, expanded mode, show page numbers
;*; start of loop
BX se /≪fn/Q2 ;*; find the start of footnote in text
≪if≪ER≫≪glb≫≪ei≫;*; exit if a footnote is not found (i.e., past the
last one)
≪sx02,≪CP≫≫;*; store the cursor position for returning here on next loop
≪sx01,≪VA$PG≫≫;*; store the page number of the fn
... Then need code here to put ≪PVO1≫ into the end notes--I don't know
the way end notes are represented....
BX jmp ≪pv02≫Q2 ;*; jump back to where you were, just after last fn was found
≪gla≫;*; loop until done
≪lbb≫≪ex≫;*; done
I haven't tested that, but you get the idea.
Regards,
Harry
For the time being, I'd settle on getting SF to work correctly.
Michael Norman
Harry Binswanger
hb@xxxxxxxx