From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28817 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: \hexstringtonumber{..} Date: Sat, 24 Jun 2006 18:05:27 +0200 Message-ID: <449D62C7.7030900@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1151165147 30650 80.91.229.2 (24 Jun 2006 16:05:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Jun 2006 16:05:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 24 18:05:43 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FuAdd-00074s-Lx for gctc-ntg-context-518@m.gmane.org; Sat, 24 Jun 2006 18:05:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B13171283D; Sat, 24 Jun 2006 18:05:37 +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 21174-02-5; Sat, 24 Jun 2006 18:05:31 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C31D912848; Sat, 24 Jun 2006 18:05:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F12CB12848 for ; Sat, 24 Jun 2006 18:05:29 +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 21174-02-4 for ; Sat, 24 Jun 2006 18:05:28 +0200 (CEST) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with SMTP id C04E31283D for ; Sat, 24 Jun 2006 18:05:28 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:54908 helo=[192.168.1.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1FuAdT-000522-T0 for ntg-context@ntg.nl; Sat, 24 Jun 2006 16:05:28 +0000 User-Agent: Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:28817 Archived-At: Peter M=FCnster wrote: > Hello Hans, > = > what is the purpose of \hexstringtonumber{..}? I am not Hans, of course, but: Your macro is making the thing harder then needed, this works just as well: \starttext \number\hexstringtonumber{1F} \number\hexstringtonumber{f5} \stoptext However, like you, I would have expected it to return a decimal value directly, like this: \def\hexstringtonumber#1% {\number\dohexstringtonumber#1} Cheers, Taco