units: \spacedimensionstrue fails when using unit powers
I'm considering switching from my units macros to the units module. In doing that I'm trying \spaceddimensionstrue (found in the m-units.tex source), which is the most common convention in physics tables and books, rather than using \Times to separate quantities with a dot. But it seems not to take account of the exponent in the first unit when putting space between the first and second units. Here's a minimal example: \usemodule[units] \spaceddimensionstrue \starttext % this looks fine \startformula \Meter\Second \stopformula % this needs a thinspace after the superscripted 2 \startformula \Square\Meter\Second \stopformula \stoptext
Sanjoy Mahajan wrote:
I'm considering switching from my units macros to the units module. In doing that I'm trying \spaceddimensionstrue (found in the m-units.tex source), which is the most common convention in physics tables and books, rather than using \Times to separate quantities with a dot.
But it seems not to take account of the exponent in the first unit when putting space between the first and second units. Here's a minimal example:
actually this is a feature, it treats powers differently related to teh \Per .. where one does not want extra space) anyhow, could be an option
\usemodule[units] \spaceddimensionstrue
\starttext
% this looks fine \startformula \Meter\Second \stopformula
% this needs a thinspace after the superscripted 2 \startformula \Square\Meter\Second \stopformula
\stoptext _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Sanjoy Mahajan