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
{{ message }}
Repository navigation
Controlling colors and lines of the references as in hyperref #2613
It would be great to be able to control the colors of the references/citations as you can control them in hyperref/pdfLaTeX. This is very useful for creating documentation or educational content, for example:
Lines
Colors
Some features of hyperref:
Have some color around the link when the pdf file is opened in a viewer
Have no color around the link if it is printed on a paper (the same with text color that disappears when printed).
When we are using a PDF document to give a presentation or make an educational document, this is often important to know exactly which elements of the document are referenced.
It is important that these links/colors that are not designed for printing do not appear in printed documents.
Many times we want to differentiate between references, to know if it is a cite, a cross-reference, a link or simply a local file.
Reacted by Rik Huijzer, Adam Stone, Rolf Bremer, Joaquín Triñanes, Marvin Wendt, StarchaserDev, Nicolai Weitkemper, Derived Cat, M-gre, Robin Moussu and 2 more
Activity
Enivex commentedon Nov 7, 2023
It seems to me like the actual request here is for support for the optional content group PDF feature
Antoinemarteau commentedon May 19, 2026
It would be amazing to be able to collapse / expand section of text / proofs in a typst generated PDF.
Enivex commentedon May 19, 2026
At most you would be able to hide them. The remaining text wouldn't reflow. That's just inherently not possible in the PDF format.
Antoinemarteau commentedon May 19, 2026
Ah, ok, and would it be possible that some text is collapsed by default, and you could expand it over the exiting follow up text momentarily ?
Enivex commentedon May 19, 2026
I don't know the exact limitations of OCGs, but that sounds more reasonable.