ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: more unit weirdness
Date: Wed, 10 Aug 2011 21:20:02 +0100	[thread overview]
Message-ID: <1888BB95-8616-4884-AE04-50A251CCAFE8@gmail.com> (raw)
In-Reply-To: <291A20C2-3196-43A6-948E-4029ACD9ADD8@googlemail.com>

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
___________________________________________________________________________________


      reply	other threads:[~2011-08-10 20:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 11:33 Ian Lawrence
2011-08-10 13:27 ` Wolfgang Schuster
2011-08-10 20:20   ` Ian Lawrence [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1888BB95-8616-4884-AE04-50A251CCAFE8@gmail.com \
    --to=physics.rooted@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).