ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* more unit weirdness
@ 2011-08-10 11:33 Ian Lawrence
  2011-08-10 13:27 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Lawrence @ 2011-08-10 11:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: more unit weirdness
  2011-08-10 11:33 more unit weirdness Ian Lawrence
@ 2011-08-10 13:27 ` Wolfgang Schuster
  2011-08-10 20:20   ` Ian Lawrence
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-08-10 13:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: more unit weirdness
  2011-08-10 13:27 ` Wolfgang Schuster
@ 2011-08-10 20:20   ` Ian Lawrence
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Lawrence @ 2011-08-10 20:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-10 20:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-10 11:33 more unit weirdness Ian Lawrence
2011-08-10 13:27 ` Wolfgang Schuster
2011-08-10 20:20   ` Ian Lawrence

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).