[NTG-context] How to quote the section names in advance like the table of contents?

Sylvain Hubert champignoom at gmail.com
Sat Nov 7 16:32:24 CET 2020

Dear List,

say I have three sections in the document:

    \section{foo} ... \section{bar} ... \section{baz} ...

Now I would like to auto generate a heavily customized table of contents
like the following text, which cannot be done by the stock \placecontent in
general, and put it into the preface:

   This book has 3 sections: foo, bar, and baz.

The text generation should be trivial with lua, but I don't know how such
forward reference of section names works. Could anyone help me with it?

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201107/1653254e/attachment.htm>

More information about the ntg-context mailing list