From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: \digits get \times instead of \cdot before exponent
Date: Tue, 21 May 2013 16:37:16 +0200 [thread overview]
Message-ID: <519B869C.2020507@wxs.nl> (raw)
In-Reply-To: <201305211144.28458.romain.diss@yahoo.fr>
On 5/21/2013 11:44 AM, Romain Diss wrote:
> Le lundi 20 mai 2013, Christian Prim a écrit :
>> 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 #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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-05-21 14:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-20 7:32 Christian Prim
2013-05-21 9:44 ` Romain Diss
2013-05-21 14:37 ` Hans Hagen [this message]
2013-05-21 15:15 ` Christian Prim
2013-05-21 15:34 ` Hans Hagen
2013-05-21 15:40 ` Christian Prim
2013-05-21 19:17 ` Sietse Brouwer
2013-05-21 21:35 ` Romain Diss
2013-05-22 8:29 ` Hans Hagen
2013-05-22 12:31 ` Romain Diss
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=519B869C.2020507@wxs.nl \
--to=pragma@wxs.nl \
--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).