Changes

Jump to navigation Jump to search
98 bytes added ,  13:25, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
< [[Math]] [[Physics]] >
The units module comes with ConTeXt's default distribution, and can be accessed via <{{cmd>|usemodule}}[units].
However, in MkIV we have integrated an upgrade to this mechanism so if you're using that version you might want to skip this first part.
* This runtime loadable module implements a way of defining units. The core macro is <{{cmd>|dimension}}, a rather clever one that is able to cooperate with some other dimension related macros. As said, this module enables user to enter:
<context source="yes">
</context>
(Note that the space after <{{cmd>|Second}} needs to be explicitly specified; otherwise, it will get eaten.)
* Units act upon signals that they insert in the text, in case no quantity is given you need to start the unit sequence using <{{cmd>|Unit}}
<context source="yes">
</texcode>
This definition means that we can ask for the meaning of a unit using <{{cmd>|unitmeaning}} and get a list of used units by saying <{{cmd>|placelistofunits}}.
We have to use the command <{{cmd>|unitmeaning}} instead of <{{cmd>|meaning}}, simply because the latter is a TeX primitive we don't want to lose. We use the label text mechanism for translations.
----
[[https://www.easyunitconverter.com/ Easy Unit Converter]]
* Prefixes: <{{cmd>|Atto}} a, <{{cmd>|Femto}} f, <{{cmd>|Pico}} p, <{{cmd>|Nano}} n, <{{cmd>|Micro}} μ, <{{cmd>|Milli}} m, <{{cmd>|Centi}} c, <{{cmd>|Deci}} d, <{{cmd>|Hecto}} h, <{{cmd>|Kilo}} k, <{{cmd>|Mega}} M, <{{cmd>|Giga}} G, <{{cmd>|Tera}} T, <{{cmd>|Peta}} P, <{{cmd>|Exa}} E (missing: <{{cmd>|Zetta}} Z, <{{cmd>|Yotta}} Y, <{{cmd>|Zepto}} z, <{{cmd>|Yocto}} y)* Suffixes: <{{cmd>|Linear}} <sup>1</sup>, <{{cmd>|Square}} <sup>2</sup>, <{{cmd>|Cubic}} <sup>3</sup>, <{{cmd>|Inverse}} or <{{cmd>|ILinear}} <sup>-1</sup>, <{{cmd>|ISquare}} <sup>-2</sup>, <{{cmd>|ICubic}} <sup>-3</sup>* Fraction: <{{cmd>|Per}}, <{{cmd>|Percent}}, <{{cmd>|Permille}}, <{{cmd>|Promille}}* Time: <{{cmd>|Second}}, <{{cmd>|Minute}}, <{{cmd>|Hour}}, <{{cmd>|Day}}, <{{cmd>|Month}}, <{{cmd>|Year}}* Length, Area, Volume: <{{cmd>|Meter}}, <{{cmd>|Angstrom}}, <{{cmd>|Foot}}, <{{cmd>|Inch}}, <{{cmd>|Liter}}* Mass, Force and Pressure: <{{cmd>|Gram}}, <{{cmd>|Atom}}, <{{cmd>|Newton}}, <{{cmd>|Pascal}}, <{{cmd>|Mol}}, <{{cmd>|At}}, <{{cmd>|Atm}}, <{{cmd>|Bar}}, <{{cmd>|Force}}* Energy, Electricity and Magnetism: <{{cmd>|Joule}}, <{{cmd>|Watt}}, <{{cmd>|Cal}}, <{{cmd>|Farad}}, <{{cmd>|Henry}}, <{{cmd>|Ohm}}, <{{cmd>|Siemens}}, <{{cmd>|Ampere}}, <{{cmd>|Coulomb}}, <{{cmd>|Volt}}, <{{cmd>|Tesla}}, <{{cmd>|Gauss}}, <{{cmd>|VoltAC}}, <{{cmd>|VoltDC}}, <{{cmd>|EVolt}}, <{{cmd>|Weber}}* Temperature: <{{cmd>|Degrees}}, <{{cmd>|Kelvin}}, <{{cmd>|Celsius}}, <{{cmd>|Fahrenheit}}* Angle: <{{cmd>|Rad}}, <{{cmd>|Deg}}, <{{cmd>|Sterant}}* Frequency, Optics and Acoustics: <{{cmd>|Hertz}}, <{{cmd>|RevPerSec}}, <{{cmd>|RevPerMin}}, <{{cmd>|Candela}}, <{{cmd>|Lux}}, <{{cmd>|Bell}}* Chemistry and Radiation: <{{cmd>|Atom}}, <{{cmd>|Mol}}, <{{cmd>|Molair}}, <{{cmd>|Equivalent}}, <{{cmd>|Bequerel}}, <{{cmd>|Sievert}}, <{{cmd>|Gray}}* Informatics: <{{cmd>|Baud}}, <{{cmd>|Bit}}, <{{cmd>|Byte}}
* some old dutch (not listed)
===Using the built-in command===
In MkIV you can use the built-in <{{cmd>|unit}} command. This time we don't use commands, if only because it is somewhat cumbersome. Let's give a few examples:
<texcode>

Navigation menu