sahasatvik / typst-theorems

An implementation of numbered theorem environments in typst
MIT License
195 stars 10 forks source link

Removing stale space before links #19

Closed heinwol closed 6 months ago

heinwol commented 6 months ago

Actually, this is relevant with languages with different nouns cases, e.g. in russian. In those languages it's quite senseless to have fixed supplements before theorem links since each time a new case should be used.

Also, I'm quite new to typst and I might miss something important or maybe I just did something stupid, so please check if it's ok.

This works for me at least hehe...


One other thing: I compare supplement with "", but somehow it doesn't work, idk why.

sahasatvik commented 6 months ago

Makes perfect sense! Comparing supplement directly with "" seemed not to work since supplement somehow becomes content (with a text field inside containing the "") instead of a str.

heinwol commented 6 months ago

Thanks a lot for your cooperation~~

It's cool to be able to make a project better together with someone :)