Skip to content

Citations in hide do not work #622

@LarsKue

Description

@LarsKue

See Title. I am using the typst.app web application. Here is the steps I took to reproduce:

  1. Enter a bibtex-style citation into your refs.bib file.
  2. Create a citation with @citation.
  3. Create a bibliography with #bibliography()

Everything still works as normal up to this point.

  1. Hide the citation with #hide[].

The compiler now crashes with the error "Unexpected end of file." Note that using #cite() also does not work (here, the compiler does not crash, but I get the error "The bibliography does not contain this key")

See here for a minimal example.

My use case is that I am trying to automatically generate a list of sources for a presentation, without explicitly showing citations in the text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingintrospectionRelated to introspection.modelRelated to structure and semantics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions