typst / packages

Packages for Typst.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[unify package] Set decimal separator manually

TheChilliPL opened this issue · comments

It should be possible to set the default decimal separator. I tried doing

#set _format-float(decsep: ",")

$ num("2.0") $

as I prefer to leave the numbers in code with dots (yet want it to show up as 2,0), but it throws a syntax error. Any way to set that in another way?

This is currently not possible. You could open up a feature request on the unify repository. Otherwise, I could do the same for you.

@ChHecker Good to know that there's a repo. This should probably be added to the typst.toml metadata so that the package list can link to it. (This would even be possible without a version bump under the minor fix policy.)