Command/setupunits

From ConTeXt wiki

\setupunits

Syntax

\setupunits[...=...]
method
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
separator normal cdot big medium space
language (in progress)
order
  • normal: read point as decimal mark, comma as separator
  • reverse: read comma as decimal mark, point as separator
style style
color color

Description

\setupunits specifies the setup of the \unit command.

Example

\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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: