Hello Johann,
Johann Höchtl<johann.hoechtl@gmail.com> wrote:
Is there any technical reason implied by troff why Sx - macros work, as
you already described, by building a forward index whereas the TOC
doesn't and therefore has to go to the end, as any other toc in
single-pass g/troff macros I am aware of?
There's no technical reason. And I guess it's a valuable feature
request, as I have no real argument for the current state of things,
except these poor ones:
- It's a french usage to put the TOC at the end, and eventually a
short summary after a heading.
- The XT macro is reliable and simple to code, while the S* ones need
three passes and are sensible to glitches.
I'm motivated to work on that, though, I can't know yet when I'll have
time for it.
There are also odd behaviours with the page number not being right
aligned after hyphenated words. That's a glitch I thought fixed, but
which is obviously resisting me.
Did you spot that from my PDF, your revised PDF or is this something you
are aware of? Just because I can't find the issue you describe in any of
the PDFs. Maybe I am just blind.
It's visible in both PDF. For instance, in the revised PDF, the second
line of the summary « Before advancing my own arguments », the page
number is concatenated with the sentence.