From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82598 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: \digits get \times instead of \cdot before exponent Date: Tue, 21 May 2013 21:17:55 +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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369163919 30667 80.91.229.3 (21 May 2013 19:18:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 May 2013 19:18:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 21 21:18:40 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 1Ues51-0000pB-U9 for gctc-ntg-context-518@m.gmane.org; Tue, 21 May 2013 21:18:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 87029101E6; Tue, 21 May 2013 21:18:39 +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 bvatQ9hQX1dV; Tue, 21 May 2013 21:18:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CFAFC101E4; Tue, 21 May 2013 21:18:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C4C5101E4 for ; Tue, 21 May 2013 21:18:36 +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 1q6wrylZ2cBJ for ; Tue, 21 May 2013 21:18:35 +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 A517C101E0 for ; Tue, 21 May 2013 21:18:25 +0200 (CEST) Original-Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4LJIP8w024269 for ; Tue, 21 May 2013 21:18:25 +0200 Original-Received: by mail-ee0-f51.google.com with SMTP id e51so637983eek.10 for ; Tue, 21 May 2013 12:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=qNH47Vola/G6xwfaQ25vkjBzPB5Rs3/lt1FwGbeH/q4=; b=s3xO2i1+zaipXL6XxTIGwKANcTyDSFtx4MqTofYRwcbIqa4PBln8U9phcSVpmmHq4F Jw+jasXYjzVzZUWG1Ql14HL1eI7DtaOxFzrHWxMyXH2OB8gbe02xLDTWWF/yaIQPFL9A F0FRqOTTmNq68CRPmvYSePVSyHshsmGngO379k+IMHscPrL6IvBNVEs6/4eNqjv1Eu5I pc1uhSYIVVXGM+LUpouVmakAp7lqGKTZ37coNqVtqqQNfDYiSDadj7o7SUbXuw3VM53I IMJJdlYBqfi2540CvFojQvZ2F1jQ/0zR65CKc7w0rwHeI02MC95eFSUMLWxC+E5gUtur arrA== X-Received: by 10.15.10.130 with SMTP id g2mr6343414eet.25.1369163905105; Tue, 21 May 2013 12:18:25 -0700 (PDT) Original-Received: by 10.14.6.68 with HTTP; Tue, 21 May 2013 12:17:55 -0700 (PDT) In-Reply-To: <519B869C.2020507@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.51; 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: 0QJCHipjg - ec494ff267bf - 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:82598 Archived-At: Hi Hans, Christian Prim wrote: >>> >>> is it possible to change the behaviour of \digits to have \cdot [...] >>> instead of \times [...]? Hans wrote: > there are several ways we can deal with this: [...] > or maybe a key/value in setuptimes .. not sure yet We've already got \setdigitmode, \setdigitorder, and \setdigitspace; it might make sense to create a \setupdigits to consolidate these setups into one interface. Something like this: \setupdigits [mode=4, % -->\setdigitmode{4} % (decimal period, thinspace between groups) inputdecimalmark={,}, % -->\setdigitorder{0} signspace=yes, % -->\setdigitsign{1}; '+ 1.4', not '+1.4' times=\times, % or times=\cdot ] Cheers, Sietse --------------- P.s: I've been thinking I'd like to write more contexty interface that doesn't use predefined modes, but lets you setup the decimal mark, separator mark, the input decimal mark, etc. Something like this: \setupdigits [inputdecimal={.}, % input 3.1415926535 decimal={,} separator=\space, groupsize=4, % output 3,1415 9265 45 signspace=,] % +3.14159... That could even tie into \setuplanguage to allow setting language-specific defaults. Would anyone be interested in this? ___________________________________________________________________________________ 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 ___________________________________________________________________________________