From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91483 Path: news.gmane.org!not-for-mail From: Maggyero Newsgroups: gmane.comp.tex.context Subject: 2 issues in phys-dim.mkiv Date: Fri, 15 May 2015 21:43:01 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1619007428==" X-Trace: ger.gmane.org 1431719029 20474 80.91.229.3 (15 May 2015 19:43:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 May 2015 19:43:49 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 15 21:43:36 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YtLW7-0004ec-6d for gctc-ntg-context-518@m.gmane.org; Fri, 15 May 2015 21:43:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C74F1022E for ; Fri, 15 May 2015 21:43:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id don-nSpVPjMA for ; Fri, 15 May 2015 21:43:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 338901022F for ; Fri, 15 May 2015 21:43:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F41A0101EA for ; Fri, 15 May 2015 21:43:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4SxpW4fYqrf6 for ; Fri, 15 May 2015 21:43:04 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 4B795101E8 for ; Fri, 15 May 2015 21:43:04 +0200 (CEST) Original-Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4FJh22Z016815 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 15 May 2015 21:43:03 +0200 Original-Received: by ieczm2 with SMTP id zm2so55425435iec.1 for ; Fri, 15 May 2015 12:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hmd6lpN/UubX4kIyYzACYQmjxrnX3bWXK3UFJANwxBM=; b=r3LWlymwPJLsDy6iCsMX1rboxSzgvgRI4k0nSwxc9Jn5ThkcoxOaFE1ycpZlYjhwJs HYRkXy75zIRlb7BCggwMrNEQh1Abv4Bxsvt9FzXbVVNzCcenBsGUEiCIa3lUyYEco/UY d1NoajesCauNeZIVoQRvrhBdh5kUOj5wEjNIpwmwvHOrTAm8fe004JXiF9W2kJ9CPXAN TxJx/Myoemh8UiFz3FN4gJ+LjCMMLB4rHwpJhTwSeQPFYswu6U2UBsJukksMFS5sEroo 8te6koe+PG7cLjWMhfqWVYxRgyflGa7gpsN7NIwRYW/klJzwjacnb80kt3t0ZqSRjsTl ZB7A== X-Received: by 10.43.39.1 with SMTP id tk1mr21222664icb.26.1431718981705; Fri, 15 May 2015 12:43:01 -0700 (PDT) Original-Received: by 10.36.65.80 with HTTP; Fri, 15 May 2015 12:43:01 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::22a; country=US; region=Iowa; city=Council Bluffs; latitude=41.2324; longitude=-95.8762; http://maps.google.com/maps?q=41.2324,-95.8762&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03OsjH3M6 - 470dd78f810b - 20150515 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of maggyero@gmail.com designates 2607:f8b0:4001:c03::22a as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2607:f8b0:4001:c03::22a; envelope-from=; helo=mail-ie0-x22a.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91483 Archived-At: --===============1619007428== Content-Type: multipart/alternative; boundary=bcaec51dd4dd52a4c00516240d9b --bcaec51dd4dd52a4c00516240d9b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've tried the unit interface today, and I've noticed two issues with the following example: \setupunits[alternative=3Dtext] \starttext $\unit{-4.6e-3 km s^-1}$ \stoptext 1. Minus superscripts for UNITS (so 's^-1' here=E2=80=94not 'e-3', which is= fine) are converted to hyphens with the 'text' unit alternative (with the default 'mathematics' unit alternative everything is fine): 2. The times symbol between the number and the 10^-3 (e-3) is incorrectly spaced (as an ordinary math atom instead of a binary math atom) so doesn't look good. Maybe Hans could change \def\digitstimessymbol{\times} to \def\digitstimessymbol{\ifmmode\times\else${}\times{}$\fi} in phys-dim.mkiv? --bcaec51dd4dd52a4c00516240d9b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've tried the unit interface today, and I've noti= ced two issues with the following example:

\setupunits[a= lternative=3Dtext]
\starttext
$\unit{-4.6e-3 km s^-1}$<= /div>
\stoptext

1. Minus superscripts for UNITS = (so 's^-1' here=E2=80=94not 'e-3', which is fine) are conve= rted to hyphens with the 'text' unit alternative (with the default = 'mathematics' unit alternative everything is fine):

<= /div>
2. The times symbol between the number and the 10^-3 (e-3) is inc= orrectly spaced (as an ordinary math atom instead of a binary math atom) so= doesn't look good.

Maybe Hans could change

\def\digitstimessymbol{\times}

to

\def\digitstimessymbol{\ifmmode\times\e= lse${}\times{}$\fi}

in=C2=A0phys-dim.mki= v?
--bcaec51dd4dd52a4c00516240d9b-- --===============1619007428== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1619007428==--