|
|
|
|
|
by justinpombrio
619 days ago
|
|
You can do that in a couple different ways in Typst. First, if the user passes content into the template, then it's the user's content that ultimately gets to choose its styling. That is, there are three places that a style can be set: 1. In the content passed that the user passes to the template 2. In the template itself 3. By the user, outside the template They take priority in that order. OTOH, if the template really wants control, it can take optional styling arguments with defaults, and do as it likes with them. And if it wants content from the user that the user doesn't get to style, it can take that content as a string. It's a fantastic system, so far as I've seen. |
|