Skip to content

Automatic heading for alternative outlines #8280

@Astrusia

Description

@Astrusia

Description

I suggest that alternate outlines, like for figures and tables, should have automatic headings. This has two reasons:

  1. Well, it is just easier to make LOF/LOT/etc,
  2. When changing the document language, the outline title does not change with it. e.g.:
#outline(
  title: [List of Figures],
  target: figure.where(kind: image),
)

would still output List of Figures when #set text(lang: "de") is used, since it obviously "hard coded" into the text/code. Maybe something like title: auto could be a solution, the outline function just prints Contents/Inhaltsverzeichnis no matter its target in the current state


This would need to work with #4868.

I think the lack of this option is a bit weird, since the name of the caption (Figure, Abbildung, etc) is translated and automatic. Please excuse any ignorance and my lack of a suggestion on how to do that, since I am very new to typst

Use Case

This would be useful for multilingual document reuse and faster setup of several alternate outline

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requesti18nAbout language- or script-specific features. May need attention from native speakers.modelRelated to model category, which is all about structure and semantics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions