vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
533 stars 89 forks source link

Add in as a unit #441

Closed mdoob closed 2 weeks ago

mdoob commented 2 months ago

The units inch and inches are defined, but in is not. LaTeX users especially might expect unitsize(1in); to be valid.

johncbowman commented 2 months ago

This was a deliberate design decision since in in Asymptote is often used as a shorthand for input; for example, file in=input("data.txt");

The user can always add real in=inch; to their asy file (which evaluates to 72). This might seem inconsistent with that fact that we defined m (for meters), but metric is the future, and inches will hopefully someday be phased out once and for all. :-)