Hi,
Is there an elegant way to build a ToC? I mean, can I, while I generate the content embed bookmarks, which then can be linked to in a ToC that I will add at the beginning of the document?
This poses a few interesting challenges and I'm not sure it's doable:
- Each such "bookmark" should have a name that the ToC will use.
- The page number will be determined by the framework when it generates the ToC (it knows where the "bookmarks" are and what's their name).
I don't think there's a built-in feature for that, but is there a common practice to achieve that?
Thanks!