typst / templates

Templates that are directly maintained by the Typst team.
MIT No Attribution
228 stars 22 forks source link

explicitly select text in appreciated-letter #36

Closed navh closed 2 months ago

navh commented 2 months ago

tried changing font on the letter template, was confused why only my body changed font.

This will break old letters, so does this make this change a 0.2.0?

To keep it 0.1.0, could "fontname" be an argument to the template and then another 'if none' could select PT Mono if the user doesn't ask for something else. Ugly, and I think new arg might also be 0.2.0.

Or maybe templates should own font like this? Ensure spacing is good.

laurmaedje commented 2 months ago

I think the font shouldn't be part of main.typ. I agree that customizability for templates is a bit lacking at the moment because of the way they are set up. We'll need to think a bit more about how to structure templates in a way that makes them easier to customize. But that's a more general problem that this letter template, so I'll close this for now.

laurmaedje commented 2 months ago

I've started a discussion about template customizability on the Discord server.