< Math >
The units module comes with ConTeXt's default distribution, and can be accessed via \usemodule[units]. The following is copied from the source file m-units.tex and only slightly modified:
Scientific units can be typeset in math mode pretty well, but occasionally one has to take care of spacing. Furthermore, entering these units is not that natural as wanted. Therefore this module presents a more natural way of doing things, like:
1.23 \Cubic \Meter \Per \Second
This example shows that we use the order in which we say things, instead of typeset things. There is no dedicated manual for this module, but an article (in dutch) has been published in [Maps#21], the journal of the NTG.
This runtime loadable module implements a way of defining units. The core macro is \dimension, a rather clever one that is able to cooperate with some other dimension related macros. As said, this module enables user to enter:
Some 10 \Square \Meter \Per \Second\ or more.
(Note that the space after \Second needs to be explicitly specified; otherwise, it will get eaten.)
The units itself are implemented as synonyms.
\definesynonyms [unit] [units] [\unitmeaning] \setupsynonyms [unit] [textstyle=\dimension]
Macros defined in units
- Modifiers: \Square, \Cubic, \Inverse, \Pico, \Nano, \Micro, \Milli, \Centi, \Deci, \Hecto, \Kilo, \Mega, \Giga, \Tera
- Fraction: \Per, \Percent, \Permille, \Promille
- Time: \Second, \Minute, \Hour, \Day, \Month, \Year
- Length, Area, Volume: \Meter, \Angstrom, \Foot, \Inch, \Liter
- Mass, Force and Pressure: \Gram, \Atom, \Newton, \Pascal, \Mol, , \at, \Atm, \Bar, \Force
- Energy and Electricity: \Joule, \Watt, \Cal, \Farad, \Ohm, \Siemens, \Ampere, \Coulomb, \Volt, \Tesla, \VoltAC, \VoltDC, \EVolt
- Temperature: \Degrees, \Kelvin, \Celsius, \Fahrenheit
- Angle: \Rad, \Deg
- Frequency, Optics and Acoustics: \Hertz, \RevPerSec, \RevPerMin, \Candela, \Lux, \Bell
- Chemistry and Radiation: \Atom, \Mol, \Molair, \Equivalent, \Bequerel, \Sievert
- Informatics: \Baud, \Bit, \Byte
- Other (please sort in): \Gray, \Weber, \Henry, \Sterant, \Gauss
- some old dutch (not listed)