From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82589 Path: news.gmane.org!not-for-mail From: Christian Prim Newsgroups: gmane.comp.tex.context Subject: Re: \digits get \times instead of \cdot before exponent Date: Tue, 21 May 2013 17:15:29 +0200 Message-ID: References: <201305211144.28458.romain.diss@yahoo.fr> <519B869C.2020507@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0286583729==" X-Trace: ger.gmane.org 1369149352 23813 80.91.229.3 (21 May 2013 15:15:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 May 2013 15:15:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 21 17:15:54 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UeoHy-0006tQ-Um for gctc-ntg-context-518@m.gmane.org; Tue, 21 May 2013 17:15:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3BCFA101E7; Tue, 21 May 2013 17:15:46 +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 DI3qzaFHBG0Z; Tue, 21 May 2013 17:15:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 63991101E4; Tue, 21 May 2013 17:15:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70543101E4 for ; Tue, 21 May 2013 17:15:42 +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 GF7lwqfZ8GTb for ; Tue, 21 May 2013 17:15:41 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id F0B72101E0 for ; Tue, 21 May 2013 17:15:30 +0200 (CEST) Original-Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4LFFUFH028894 for ; Tue, 21 May 2013 17:15:30 +0200 Original-Received: by mail-lb0-f179.google.com with SMTP id r11so930613lbv.38 for ; Tue, 21 May 2013 08:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=LXg9AMTFYP2K9IqMHNonobv8UQ5NNWTOVO1JPA8aeMw=; b=XXpKFiyK0mlIkMcbec74er5CRuX6A1DevdDLLdDfD8WveJnr0ntZzjDmkyReMtCvS1 /X1o8bDFzdF8nVzM/RwQSXdy8+eoGnc/lt5NOcv3zpcv9kc2hqlHiBznpg8XBoD8PNxE jFAzxziXvdNC3ar3b61su5C6cdO5JZDKz+ipsMw5enr3IhDkFL60dn4pE3XaZXYZD0xU +7K9ap5UZh43ICTF8mm2jCP2lAYjl3PCJymYmE4cRUQUJgiqk7o5AyN8sNijrBjrSGln JiiN+jCrKmliklQC77u7FB+JuKBUneKoQs00LQ3OrTI/lcNr5l0E0ydm27WeEGZk23st +wDQ== X-Received: by 10.112.142.196 with SMTP id ry4mr1806840lbb.93.1369149329575; Tue, 21 May 2013 08:15:29 -0700 (PDT) Original-Received: by 10.112.81.74 with HTTP; Tue, 21 May 2013 08:15:29 -0700 (PDT) In-Reply-To: <519B869C.2020507@wxs.nl> X-Google-Sender-Auth: AawmK0tj5opijTFU8xaXrZFf1m0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.217.179; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJCDfuzb - 0dc0c9bf2136 - 20130521 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82589 Archived-At: --===============0286583729== Content-Type: multipart/alternative; boundary=089e0112bf7e6f155b04dd3beb2a --089e0112bf7e6f155b04dd3beb2a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the tip Hans, but the kerning in \def\digitstimessymbol{\kern.**2\emwidth\cdot\kern.2\emwidth} should not take place in mathmode, only in textmode. Else the space is too big. Don't know how to deal with that. Christian 2013/5/21 Hans Hagen > On 5/21/2013 11:44 AM, Romain Diss wrote: > >> Le lundi 20 mai 2013, Christian Prim a =E9crit : >> >>> is it possible to change the behaviour of \digits to have \cdot as in >>> http://www.pragma-ade.com/**general/magazines/mag-0003.pdfpage 2 (table at >>> the bottom) instead of \times as shown in the latest units-mkiv-documen= t >>> http://www.pragma-ade.com/**general/manuals/units-mkiv.pdfpages 6&7? >>> >> Seems to be hardcoded in phys-dim.mkiv for the moment: >> l. 173-175 >> >> \unexpanded\def\digitspower #1{\times10\phys_digits_**raised{#1}} >> \unexpanded\def\**digitspowerplus >> #1{\times10\phys_digits_**raised{\digitsplus#1}} >> \unexpanded\def\**digitspowerminus >> #1{\times10\phys_digits_**raised{\digitsminus#1}} >> ntextgarden.net/) >> > > there are several ways we can deal with this: > > % \def\digitstimessymbol{\**symbol[units][times]} > > % \definesymbol[units][times][\**times] > % \definesymbol[units][times][\**cdots] > % \definesymbol[units][times][\**kern.2\emwidth\cdot\kern.2\**emwidth] > > \def\digitstimessymbol{\times} > \def\digitstimessymbol{\cdot} > \def\digitstimessymbol{\kern.**2\emwidth\cdot\kern.2\emwidth} > > \unprotect > > \unexpanded\def\digitspower #1{\digitstimessymbol10\phys_** > digits_raised{#1}} > \unexpanded\def\**digitspowerplus #1{\digitstimessymbol10\phys_** > digits_raised{\digitsplus#1}} > \unexpanded\def\**digitspowerminus #1{\digitstimessymbol10\phys_** > digits_raised{\digitsminus#1}} > > \protect > > or maybe a key/value in setuptimes .. not sure yet > > Hans > > > ------------------------------**------------------------------**----- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ------------------------------**------------------------------**----- > > ______________________________**______________________________** > _______________________ > 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 > ______________________________**______________________________** > _______________________ > --089e0112bf7e6f155b04dd3beb2a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for the tip Hans,

but the = kerning in=A0\d= ef\digitstimessymbol{\kern.2\e= mwidth\cdot\kern.2\emwidth} should not take place in mathmode, only in text= mode. Else the space is too big. Don't know how to deal with that.

=
Christian


2013/5/21 Hans Hagen <pragma@wxs.nl>
On 5/21/2013 11:44 AM, Romain Diss wrote:
Le lundi 20 mai 2013, Christian Prim a =E9crit :
is it possible to change the behaviour of \digits to have \cdot as in
http://www.pragma-ade.com/general/magazines/mag-0003.pdf= page 2 (table at
the bottom) instead of \times as shown in the latest units-mkiv-document http://www.pragma-ade.com/general/manuals/units-mkiv.pdf= pages 6&7?
Seems to be hardcoded in phys-dim.mkiv for the moment:
l. 173-175

\unexpanded\def\digitspower =A0 =A0 =A0 #1{\times10\phys_digits_rais= ed{#1}}
\unexpanded\def\digitspowerplus
#1{\times10\phys_digits_raised{\digitsplus#1}}
\unexpanded\def\digitspowerminus
#1{\times10\phys_digits_raised{\digitsminus#1}}
ntextgarden.net/)=

there are several ways we can deal with this:

% \def\digitstimessymbol{\symbol[units][times]}

% \definesymbol[units][times][\times]
% \definesymbol[units][times][\cdots]
% \definesymbol[units][times][\kern.2\emwidth\cdot\kern.2\emw= idth]

\def\digitstimessymbol{\times}
\def\digitstimessymbol{\cdot}
\def\digitstimessymbol{\kern.2\emwidth\cdot\kern.2\emwidth}

\unprotect

\unexpanded\def\digitspower #1{\digitstimessymbol10\phys_digits_rais= ed{#1}}
\unexpanded\def\digitspowerplus #1{\digitstimessymbol10\phys_= digits_raised{\digitsplus#1}}
\unexpanded\def\digitspowerminus #1{\digitstimessymbol10\phys_digits_raised{\digitsminus#1}}

\protect

or maybe a key/value in setuptimes .. not sure yet

Hans


-------------------------------------------------------------= ----
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 Hans Hagen | PRAGMA ADE
=A0 =A0 =A0 =A0 =A0 =A0 =A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherl= ands
=A0 =A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0| ww= w.pragma-pod.nl
-------------------------------------------------------------= ----

_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0:
http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/ wiki =A0 =A0 : http:= //contextgarden.net
_____________________________________________________________= ______________________

--089e0112bf7e6f155b04dd3beb2a-- --===============0286583729== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0286583729==--