Skip to content

[std] Improve index by adding cross-references to defined terms #1939

Open
@jensmaurer

Description

@jensmaurer

Consider "odr-use": We're pretty good at sticking a cross-reference to [basic.def.odr] after each mention of the term, but the index still only lists page 27, where the term is defined.

Suggestion:

  • Introduce new macros \usedefn{term}{xref} and \usedefnx{term}{index-term}{xref}. They would render as term\iref{xref} and also put add an index entry for term or index-term, respectively.
  • We could make the index entry bold for the location where we define a term.
  • Replace all appearances of odr-use\iref{basic.def.odr} with \usedefn{odr-use}{basic.def.odr} etc.

Opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bigAn issue causing a large set of changes, scattered across most of the text.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions