From: Christian Prim <christian.prim@gmx.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \digits get \times instead of \cdot before exponent
Date: Tue, 21 May 2013 17:15:29 +0200 [thread overview]
Message-ID: <CA+9XOxrxE=G6ANU2UKqsQSQvadZLa8fjjuCYesYowFs+n+XNOw@mail.gmail.com> (raw)
In-Reply-To: <519B869C.2020507@wxs.nl>
[-- Attachment #1.1: Type: text/plain, Size: 3045 bytes --]
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 <pragma@wxs.nl>
> 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<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<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 <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/<http://foundry.supelec.fr/projects/contextrev/>
> wiki : http://contextgarden.net
> ______________________________**______________________________**
> _______________________
>
[-- Attachment #1.2: Type: text/html, Size: 4861 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 15:15 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
2013-05-21 15:15 ` Christian Prim [this message]
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='CA+9XOxrxE=G6ANU2UKqsQSQvadZLa8fjjuCYesYowFs+n+XNOw@mail.gmail.com' \
--to=christian.prim@gmx.ch \
--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).