Is it possible to make an outline record different from the heading itslef?

// this is an outline
#outline()

= This is a simple example of a level-1 heading

And this is a body text.

= This is another one level-1 heading

And this is a body text.

Is it possible to make outline records different from the headings themselves? For example:

Simple heading .........
Another one ............

Hello,

This is not possible out of the box at the moment. This is in discussion, and @Eric is working on an implementation IRCC. In the meantime @Andrew suggests something ilke this.

#outline()

#heading(outlined: false)[Introduction]
#{
  show heading: none
  heading[Secret heading]
}

= Background

image

A related topic for figure captions has also been arised. If you want a more automatic solution, you can take a look at @laurmaedje’s solution here, which you can adapt for headings.

[1] Different heading text for outline/bookmark and displaying · Issue #1889 · typst/typst · GitHub
[2] Short figure caption for outline · Issue #1295 · typst/typst · GitHub
[3] Allow different headings and captions in outline and bookmark by EpicEricEE · Pull Request #4643 · typst/typst · GitHub

1 Like