Skip to content

Nested colspanx and rowspanx don't work #104

Closed Answered by PgBiel
mangkoran asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

Within Typst's syntax, you can write either function(a, b), function(a, [b]) or function(a)[b] (the last one being a shorthand for the previous one). function(a)(b) would first call function(a) and then attempt to call its result as a function with the parameter b. Here, thus, you are calling colspanx(4) (which fails because it requires content) and then trying to call its result as a function with the single argument rowspanx(2)[a].

Therefore, what you meant to write is colspanx(4, rowspanx(2)[a]). Hope this helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mangkoran
Comment options

@PgBiel
Comment options

Answer selected by PgBiel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #103 on December 31, 2023 13:36.