Your wish &c \starttext \unit{10 kilo gram} \unit{1 kilogram} \unit{0.1 kilogram} \stoptext Output: 10 kg 1 kg 1 kg I think the leading zeros before the decimal point are always clipped… On 10 Aug 2011, at 14:27, Wolfgang Schuster wrote:
Am 10.08.2011 um 13:33 schrieb Ian Lawrence:
I am getting some odd effects...
\CheckList % a checkbox list \item \lunit{3 kilogram} block of iron \item \lunit{10 000 kilogram} steel hull car ferry \item \lunit{\digits{0.02} kilogram} piece of iron \item \lunit{10 000 kilogram} wooden hull car ferry \item \lunit{500 kilogram} block of wood \item \lunit{5 gram} brass screw \item \lunit{10 kilogram} piece of wood \item \lunit{5 gram} plastic clothes peg \item \lunit{\digits{0.5} kilogram} football \item \lunit{3 kilogram} block of ice \EndList
Here the leading '0.' are dropped, even with the wrapping \{digit}
If I put them the same list inside a /startlines /stoplines pair and the digits, then still the leading '0.' are dropped:
\startlines \lunit{3 kilogram} block of iron \lunit{10 000 kilogram} steel hull car ferry \lunit{\digits{0.02} kilogram} piece of iron \lunit{10 000 kilogram} wooden hull car ferry \lunit{500 kilogram} block of wood \lunit{5 gram} brass screw \lunit{10 kilogram} piece of wood \lunit{5 gram} plastic clothes peg \lunit{\digits{0.5} kilogram} football \lunit{3 kilogram} block of ice \stoplines
But if I drop the digits{} wrapper, then I get weird interline spacing
\startlines \lunit{3 kilogram} block of iron \lunit{10 000 kilogram} steel hull car ferry \lunit{0.02 kilogram} piece of iron \lunit{10 000 kilogram} wooden hull car ferry \lunit{500 kilogram} block of wood \lunit{5 gram} brass screw \lunit{10 kilogram} piece of wood \lunit{5 gram} plastic clothes peg \lunit{0.5 kilogram} football \lunit{3 kilogram} block of ice \stoplines
**ggnnnggg**
Anyone else with particular wisdom?
Send a complete *working* example.
Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________