Skip to content
Discussion options

You must be logged in to vote

Indeed Typst does have a learning curve.

The error you are seeing is because your sheet() function only takes on parameter labels, but when used with

#show: sheet.with(labels: ...)

Typst is going to pass the rest of the document as an implicit second parameter.

.with() partially specifies the parameters, returning another function with those parameters bound.

#show: will pass the rest of the document to the function on the right of the colon.

So you can either add a doc parameter to your sheet() function, or you can explicitly ignore this content with

#show: doc => sheet(...)

Secondly, you seem to be using a metadata key (labels) which is defined by Quarto or Pandoc. You can see this by…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@royfrancis
Comment options

Answer selected by royfrancis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
extensions relates to Quarto extensions mechanism typst
2 participants