Expected function, found dictionary (line 11)
#preparation[Préparation 1][
Is that how typst is intended to function ? Is there a hidden reason behind why it has such an original syntax ? I would’ve expected a programming language compiler to yell when I leave a trailing comma, but not when there is none.
I don’t know anything about frame-it, but I can help you with your last question:
Typst tells you what is going on. frames returns a dictionary of frame making functions, not a single function, that’s why it’s called frames and not frame (which exists BTW). If you want just a single frame, you need to unpack this dictionary. In this case, this destructuring is done by the let binding #let (a_dictoniary_key,another_key) = dictionary which binds the value of dictionary.at("a_dictionary_key") to the name a_dictionary_key and the value of dictionary.at("another_key") to another_key. (IMHO this syntax is crazy but I’m just a Typst beginner.)