• Re: Plain TeX TOC Macros

    From Bob Kerstetter@21:1/5 to Julian Bradfield on Mon Nov 27 15:20:03 2023
    On Tuesday, November 7, 2023 at 1:40:09 PM UTC-6, Julian Bradfield wrote:
    On 2023-11-07, Holger Schieferdecker <spam...@gmx.de> wrote:
    Hi Bob,

    unfortunately I can't help you with your question. But I want to inform you that at least some users filter postings coming from googlegroups. Especially in the last weeks there has been a lot of spam by Google posters. Maybe the people who might be able to help you don't see your posting. Therefore I just repeat it.
    Including me, for example. I junk them all.

    To the OP:

    I think you need to read the chapter on Output Routines.

    You have the \writeTOC before the relevant pagebreak for the chapter.
    And in general it gets executed when read, which in normal
    pagebreaking might be before the page is updated.

    The reason toc doesn't appear is that it's always empty: you've just
    opened it for writing and cleared it. You need to read and print the
    toc *before* opening it.

    This stuff is messy, so you *really* need to fully understand the
    internals and the output routines if you're going to roll your own.

    Thanks. I read some of The TeXBook and also TUGBoat articles. Found what worked.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)