Hi,

In the process of extending math export I decided to finish and integrate an old experiment with units. Details can change as can configuration.

\usemodule[dimensions]
\setupbackend[export=yes]

\starttext

\startlines
$10\su{km/h}$
$\su{10 km/h}$
\su{10 km/h}
10\su{km/h}
10 \su{km/h}
$10 \su{km/h}$
10 \su{KiloMeter/Hour}
10 \su{kilometer/hour}
10 \su{km/h}
10 \su{kilometer per hour}
10 \su{km / h}
10 \su{ km / h }
10 \su{km/ms2}
10 \su{meter per second}
10 \su{cubic meter}
10 \su{cubic meter per second}
10 \su{cubic meter / second}
$10 \su{cubic meter / second}$
30 \su{kilo pascal }
30 \su{kilo pascal square meter / second}
30 \su{kilo pascal square meter / kelvin second}
\su{30 kilo pascal square meter / kelvin second}
$30 \su{kilo pascal square meter / kelvin second }$
30 \su{crap}
30 \su{AC}
$ \frac{10 \su{m/s}}{20 \su{m/s}} $
{\ss 30 \su{kilo pascal square meter / second kelvin}}
\stoplines

\stoptext

I might decide to push it in the core. The su is an abbreviation for scientific unit as we already have \unit (which I like more) and \dim is also taken. Of course \u would be even nicer but that's a accent placement (ok, we could drop all those as we have utf). Using two character names is not handy as they look like language switches.

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to