ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Romain Diss <romain.diss@yahoo.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \unit problem
Date: Thu, 3 Nov 2011 14:32:05 +0100	[thread overview]
Message-ID: <201111031432.06515.romain.diss@yahoo.fr> (raw)

Hello all,

It seems that some unit combinations don't work very well with the \unit 
macro. I have some problems with the m- (milli-) prefix but some tests reveal 
other strange errors.

Here is a not so minimal example. The first 33 entries come from "phys-
dim.mkiv" and work well. In the entries 100 to 115 which I added, the 102, 
107, 108, 109, 110, 111, 112 and 115 cause problem :

 \starttext
\startbuffer
01: $10\unit{km/h}$
02: $\unit{10      km/h}$
03: \unit{km/h}
04: \unit{10 km/h}
05: \unit{10 km/h}
06: \unit{~1 km/h}
07: 10\unit{km/h}
08: 10 \unit{km/h}
09: $10 \unit{km/h}$
10: 10 \unit{KiloMeter/Hour}
11: 10 \unit{kilometer/hour}
12: 10 \unit{km/h}
13: 10 \unit{kilometer per hour}
14: 10 \unit{km / h}
15: 10 \unit{ km / h }
16: 10 \unit{km/ms2}
17: 10 \unit{meter per second}
18: 10 \unit{cubic meter}
19: 10 \unit{cubic meter per second}
21: 10 \unit{cubic meter / second}
22: $10 \unit{cubic meter / second}$
23: 30 \unit{kilo pascal }
24: 30 \unit{kilo pascal square meter / second}
25: 30 \unit{kilo pascal square meter / kelvin second}
26: \unit{30 kilo pascal square meter / kelvin second}
27: $30 \unit{kilo pascal square meter / kelvin second }$
28: 30 \unit{crap}
29: 30 \unit{AC}
30: $\frac{10 \unit{m/s}}{20 \unit{m/s}} $
31: {\ss 30 \unit{kilo pascal square meter / second kelvin}}
32: \unit{123.22^-3 km/s}
33: \unit{123.22e-3 km/s}

100: \unit{10 mm}
101: \unit{10 km}
102: \unit{10,2 mA}
103: \unit{123 kA}
104: \unit{0,001 MA}
105: \unit{1 dal}
106: \unit{2.21 GW}
107: \unit{345 mW}
108: \unit{152.20 mHz}
109: \unit{55.5 mmol}
110: \unit{6.7 mol/l}
111: \unit{125 g/l}
112: \unit{125 g / l}
113: \unit{125 km/s}
114: \unit{125 m/s}
115: \unit{125 mA/s}
\stopbuffer

\typebuffer

Result: \startlines \getbuffer \stoplines
\stoptext


Thank you for your help.

-- 
Romain Diss
<romain.diss@yahoo.fr>
___________________________________________________________________________________
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-11-03 13:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201111031432.06515.romain.diss@yahoo.fr \
    --to=romain.diss@yahoo.fr \
    --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).