You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm specifically talking about the outline for headings (table of contents). I want to be able to manually add an entry to it, which will only appear in the outline not in the document itself. In LaTeX one would use \addcontentsline{toc}..., but I couldn't find a similar feature in typst.
Use Case
My usecase would be inserting external PDF pages later into the document (using some PDF manipulation software), which should then have their heading inside of the table of contents
Meaning that it would be quite hard to perform this, I would recommend (at least in the meantime) that you add blank pages at the end of your document with the titles you need when remove them when splicing your documents.
Depending on what you need, you might want to en- or disable numbering of that heading.
Reacted by Sébastien d'Herbais de Thun, Andrew Voynov, lkndl, Semen, Abhishek Choudhary, Kirill Lukashev, Kunal Chandan, Luis Daniel Casais Mezquida, Geir Thomassen, DerNel0 and 1 more
Reacted by Andrew Voynov, Kunal Chandan and Valerio Ceccarelli
Activity
Dherse commentedon Dec 18, 2023
With the current way outlines are constructed I don't think this would be easy, you can imagine outlines as just running a query:
Meaning that it would be quite hard to perform this, I would recommend (at least in the meantime) that you add blank pages at the end of your document with the titles you need when remove them when splicing your documents.
laurmaedje commentedon Dec 18, 2023
You can also add a heading and use
show heading: noneon that one:Depending on what you need, you might want to en- or disable numbering of that heading.
laurmaedje commentedon Jan 10, 2025
I'll close this as the solution above got a bunch of upvotes and there were no further comments. Let me know if there is a problem with it.