![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
Hi Hans, Just out of curioisity I tested your example, but mkiv stopped with the error: ! Undefined control sequence. system > tex > error on line 14 in file units-math-export.tex: Undefined control sequence ... l.14 $10\su {km/h}$ Probably I am being somewhat dumb… since the module « dimenesions » is not present in the minimals. Has one to define \su somewhere? I am reporting this upon using ConTeXt ver: 2011.06.09 12:49 MKIV. Best regards: OK On 11 juin 2011, at 16:54, Hans Hagen wrote:
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 : ntg-context@ntg.nl / 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 ___________________________________________________________________________________
%%%%%%%%%%%%%%%%%% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: Otared.Kavian@math.uvsq.fr