Changes

Jump to navigation Jump to search
2,659 bytes added ,  13:19, 23 November 2012
Create entire page
{{Reference
|name=setupunits
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\setupunits<!--
--><span class="first">[...=...]</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">method</td>
<td>
{| class="wikitable"
| 0 || default: alias for method 2
|-
| 1 || typeset separator as period, decimal mark as comma
|-
| 2 || typeset separator as comma, decimal mark as period
|-
| 3 || separator as thin space, decimal mark as comma
|-
| 4 || separator as thin space, decimal mark as period
|-
| 5 || separator as full space, decimal mark as comma
|-
| 6 || separator as full space, decimal mark as period
|-
|}
</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">separator</td>
<td>'''normal''' cdot big medium ''space''</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">language</td>
<td>(in progress)</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">order</td>
<td>
* normal: read point as decimal mark, comma as separator
* reverse: read comma as decimal mark, point as separator</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">style</td>
<td>''style''</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">color</td>
<td>''color''</td>
</tr>
</table>

== Description ==
{{cmd|setupunits}} specifies the setup of the {{cmd|unit}} command.

== Example ==

<context mode=mkiv source=yes>
\starttabulate[|r|r|r|]
\HL
\NC 0 \NC \setupunits[method=0]\unit{00,000.10 kilogram}
\NC \setupunits[method=0]\unit{@@,@@0.10 kilogram} \NC \NR
\NC 1 \NC \setupunits[method=1]\unit{00,000.10 kilogram}
\NC \setupunits[method=1]\unit{@@,@@0.10 kilogram} \NC \NR
\NC 2 \NC \setupunits[method=2]\unit{00,000.10 kilogram}
\NC \setupunits[method=2]\unit{@@,@@0.10 kilogram} \NC \NR
\NC 3 \NC \setupunits[method=3]\unit{00,000.10 kilogram}
\NC \setupunits[method=3]\unit{@@,@@0.10 kilogram} \NC \NR
\NC 4 \NC \setupunits[method=4]\unit{00,000.10 kilogram}
\NC \setupunits[method=4]\unit{@@,@@0.10 kilogram} \NC \NR
\NC 5 \NC \setupunits[method=5]\unit{00,000.10 kilogram}
\NC \setupunits[method=5]\unit{@@,@@0.10 kilogram} \NC \NR
\NC 6 \NC \setupunits[method=6]\unit{00,000.10 kilogram}
\NC \setupunits[method=6]\unit{@@,@@0.10 kilogram} \NC \NR
\HL
\stoptabulate
</context>

== See also ==
* {{cmd|digits}}
* {{cmd|setupunits}}

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|setupunits}}

[[Category:Command/Mathematics|setupunits]]
[[Category:Command/Numbers|setupunits]]

Navigation menu