From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41790 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Feature request: \digits command Date: Fri, 20 Jun 2008 16:23:08 +0200 Message-ID: <115224fb0806200723t3174914dp7f0b912af4666d76@mail.gmail.com> References: <485ABD38.8050208@free.fr> <115224fb0806200332x6276d89aibf844575b083c111@mail.gmail.com> <485BBA3C.4040009@free.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213971886 2061 80.91.229.12 (20 Jun 2008 14:24:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 14:24:46 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 20 16:25:30 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 1K9hYK-0002HU-MT for gctc-ntg-context-518@m.gmane.org; Fri, 20 Jun 2008 16:25:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6BF81FCBB; Fri, 20 Jun 2008 16:24:33 +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 06855-02-8; Fri, 20 Jun 2008 16:23:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29D651FC45; Fri, 20 Jun 2008 16:23:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 377A11FC43 for ; Fri, 20 Jun 2008 16:23:48 +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 05528-02-9 for ; Fri, 20 Jun 2008 16:23:11 +0200 (CEST) Original-Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.170]) by ronja.ntg.nl (Postfix) with ESMTP id 302291FC14 for ; Fri, 20 Jun 2008 16:23:10 +0200 (CEST) Original-Received: by wf-out-1314.google.com with SMTP id 27so1327513wfd.5 for ; Fri, 20 Jun 2008 07:23:08 -0700 (PDT) Original-Received: by 10.142.105.13 with SMTP id d13mr1258815wfc.275.1213971788255; Fri, 20 Jun 2008 07:23:08 -0700 (PDT) Original-Received: by 10.151.113.9 with HTTP; Fri, 20 Jun 2008 07:23:08 -0700 (PDT) In-Reply-To: <485BBA3C.4040009@free.fr> Content-Disposition: inline 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:41790 Archived-At: 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-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________