Skip to content

Speaker-note problem #221

@AlexandreIorio

Description

@AlexandreIorio

Issue description

When using toolbox.pdfpc.speaker-note in Polylux 0.4.0, Typst throws an error during compilation:

#import "@preview/polylux:0.4.0": *

#slide[
  = Test
  #toolbox.pdfpc.speaker-note("test")
]

Full error

[{
	"resource": "/home/aiorio/.cache/typst/packages/preview/polylux/0.4.0/src/toolbox/pdfpc.typ",
	"owner": "_generated_diagnostic_collection_name_#2",
	"severity": 8,
	"message": "panicked with: \"A note must either be a string or a raw block\"",
	"source": "typst",
	"startLineNumber": 7,
	"startColumn": 5,
	"endLineNumber": 7,
	"endColumn": 59,
	"relatedInformation": [
		{
			"startLineNumber": 5,
			"startColumn": 4,
			"endLineNumber": 5,
			"endColumn": 38,
			"message": "error occurred in this call of function `speaker-note`",
			"resource": "/home/aiorio/repos/tb/docs/presentation/251105_defense/test.typ"
		}
	],
	"origin": "extHost1"
}]

Expected behavior

The note "test" should be accepted and attached to the slide without any error.

Environment

  • Typst version: typst 0.13.1
  • Polylux version: 0.4.0
  • System: Fedora 42

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions