[NTG-context] \unit parser ignoring case, in some cases.
Gavin
gavinpublic at comcast.net
Tue Mar 14 19:03:23 CET 2023
On Mar 14, 2023, at 10:08 AM, Alan Braslau via ntg-context <ntg-context at ntg.nl> wrote:
> Right now, \unit{1 mm-1} and \unit{1 m m-1} give the same result:
> inverse millimeters (whereas the second should be mâ¢m^{-1}â¦)
>
> Alan
Alan,
Iâd like to better understand how the \unit{} command works and why those choices were made. Some of the choices seem to be âasking for troubles,â but perhaps they are essential for some users.
Iâm happy to have the unit command accept a variety of different forms for the unit, but Iâd really like one of the acceptable forms to be the form prescribed by Le Système international d'unités, so that âm sâ is a meter second and âmsâ is a millisecond. However, Iâm not sure if this goal conflicts with other important goals.
Would you like to explore \unit{} this summer to see if we can find a consistent solution? Perhaps we can produce a plan for \unit{} that does not conflict with other \unit{} features, or perhaps we can make a module that lacks some of the features of \unit{} but conforms to the SI for input as well as output. I would be happy with either.
Iâd also like to work on the luagraph module this summer. Iâm getting a lot better at MetaPost programming!
I canât approach either issue in a comprehensive way until the summer, because I have a lot of content to produce for our physics class. This year we kept on schedule â for the first time ever! â and that means we will be studying a couple of topics that I havenât prepared yet.
Obviously, anyone else interested in \unit{} or luagraph would be welcome to join us, either remotely or here in sunny Fort Collins, Colorado. (School ends here on May 26.)
Gavin
More information about the ntg-context
mailing list