#let run-in-head(body) = { text(strong(body)) }
// or
#let run-in-head(body) = { strong(body) }
#run-in-head[Lorem ipsum.] Lorem ipsum dolor #text(size: 2em)[sit] amet.
// or
#run-in-head[Lorem ipsum.] Lorem ipsum dolor #text(2em)[sit] amet.
It seems that all the 4 variations from the example above produce the same output.
Hence the question, which consists of multiple parts:
Is it really so? That is, is it true that all the 4 variations above are really the same? Or maybe there are some differences between them that will affect the output under some circumstances?
What other parts of syntax can be omitted? Is it mentioned somewhere in Typst documentation?
I think both cases are because the text function is a bit special as described here.
I don’t know which other functions allow some named arguments to be passed positionally, and how to find out what these arguments are… Probably something that could be better documented.
That you can view the two different variations separately and don’t have to consider all possible combinations is btw called orthogonality it’s an important property and desirable design characteristic that lets you keep a good overview of your code, because you don’t need to have all parts in your head in the same time.
Both separate parts each mean the same, so also the combinations mean the same