Leedehai / typst-physics

physica: vectors, fields, differentials, derivatives, Dirac brakets, tensors, and more. See examples in the manual PDF.
https://github.com/Leedehai/typst-physics
MIT License
357 stars 11 forks source link

Euler symbol #18

Closed linuxrider closed 11 months ago

linuxrider commented 11 months ago

Does it make sense to add an abbreviation for the Euler constant upright(e) e.g. eu? Background: elementary charge e and Euler number e in nearby or same equation

YDX-2147483647 commented 11 months ago

Honestly speaking, I do not think it should be included in physica.

linuxrider commented 11 months ago

Thanks for your work and feel free to close if this didn't change your mind.

Leedehai commented 11 months ago

Hi - I agree with the difficulty of deciding whether the upright form is the most universal, and naming it "eu" may conflate with others (especially, Euler's constant).

Giving it a longer and more descriptive name makes sense (euler-symbol?), but the benefits would be much less compared to just going with user-customized #let eu = math.upright("e"). The user-customized version is easier to type, and unambiguous (since users defined it themselves).

I'll close the issue for the moment, but thanks for opening this issue & letting me know your use cases!