From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41793 Path: news.gmane.org!not-for-mail From: Morgan Brassel Newsgroups: gmane.comp.tex.context Subject: Re: Feature request: \digits command Date: Fri, 20 Jun 2008 16:51:38 +0200 Message-ID: <485BC3FA.3050903@free.fr> References: <485ABD38.8050208@free.fr> <115224fb0806200332x6276d89aibf844575b083c111@mail.gmail.com> <485BBA3C.4040009@free.fr> <115224fb0806200723t3174914dp7f0b912af4666d76@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1213973789 9274 80.91.229.12 (20 Jun 2008 14:56:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 14:56:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 20 16:57:04 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1K9i2y-0006xJ-8y for gctc-ntg-context-518@m.gmane.org; Fri, 20 Jun 2008 16:57:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9B6531FD40; Fri, 20 Jun 2008 16:56:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11101-02-8; Fri, 20 Jun 2008 16:55:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 88FBD1FD16; Fri, 20 Jun 2008 16:55:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 656651FD30 for ; Fri, 20 Jun 2008 16:55:24 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12573-01-8 for ; Fri, 20 Jun 2008 16:54:46 +0200 (CEST) Original-Received: from imag.imag.fr (imag.imag.fr [129.88.30.1]) by ronja.ntg.nl (Postfix) with ESMTP id 678021FBBE for ; Fri, 20 Jun 2008 16:53:33 +0200 (CEST) Original-Received: from kama.imag.fr (kama.imag.fr [129.88.33.254]) by imag.imag.fr (8.13.8/8.13.8) with ESMTP id m5KEqTf5023056 for ; Fri, 20 Jun 2008 16:52:29 +0200 (CEST) Original-Received: by kama.imag.fr (Postfix, from userid 105) id DA2B699B; Fri, 20 Jun 2008 16:51:38 +0200 (CEST) Original-Received: from [129.88.33.193] (lea.imag.fr [129.88.33.193]) by kama.imag.fr (Postfix) with ESMTP id A1BBA21B for ; Fri, 20 Jun 2008 16:51:38 +0200 (CEST) User-Agent: IceDove 1.5.0.14eol (X11/20080509) In-Reply-To: <115224fb0806200723t3174914dp7f0b912af4666d76@mail.gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (imag.imag.fr [129.88.30.1]); Fri, 20 Jun 2008 16:52:29 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact MI2S MIM for more information X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: morgan.brassel@free.fr X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:41793 Archived-At: Great, thank you! Maybe this should become the default for the \digits command? Or at least turned on via an option to \digits? I guess this is the wanted behavior for many users, so this should be = made accessible easily... But maybe I'm wrong! Best regards, Morgan Wolfgang Schuster a =E9crit : > On Fri, Jun 20, 2008 at 4:10 PM, Morgan Brassel = wrote: > = >> Thank you, Wolfgang. >> I have already read the "This Way" on your link very carefully. >> In fact, I was looking for a solution to have >> \digits{e-5} printed as 10^5 >> \digits{2e-5} printed as 2 . 10^5 >> Is it possible to do that? to detect if there is a number before the 'e' >> in \digits? >> = > > \def\digitpowerseparator > {\ifx\collecteddigits\empty > 10 > \else > \cdot10 > \fi} > > \starttext > > \digits{e-5} > > \digits{2e-5} > > \stoptext > > Regards, > Wolfgang > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > = ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________