From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28824 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: \hexstringtonumber{..} Date: Sat, 24 Jun 2006 20:05:24 +0200 (CEST) Message-ID: References: <449D62C7.7030900@elvenkind.com> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151172430 17253 80.91.229.2 (24 Jun 2006 18:07:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Jun 2006 18:07:10 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 24 20:07:08 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 1FuCX9-0006CE-KS for gctc-ntg-context-518@m.gmane.org; Sat, 24 Jun 2006 20:07:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4697A1287A; Sat, 24 Jun 2006 20:07:03 +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 05316-03; Sat, 24 Jun 2006 20:06:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0B2811278F; Sat, 24 Jun 2006 20:06:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B1B41278F for ; Sat, 24 Jun 2006 20:06:56 +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 05770-01 for ; Sat, 24 Jun 2006 20:06:55 +0200 (CEST) Original-Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.67]) by ronja.ntg.nl (Postfix) with SMTP id 109261276C for ; Sat, 24 Jun 2006 20:06:54 +0200 (CEST) Original-Received: from gaston.pm (unknown [84.7.236.74]) by smtp.cegetel.net (Postfix) with ESMTP id 965301A4A3A for ; Sat, 24 Jun 2006 20:06:48 +0200 (CEST) Original-Received: by gaston.pm (Postfix, from userid 500) id B26FB13C021; Sat, 24 Jun 2006 20:05:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.pm (Postfix) with ESMTP id AB27C14801A for ; Sat, 24 Jun 2006 20:05:24 +0200 (CEST) X-X-Sender: peter@gaston.pm Original-To: mailing list for ConTeXt users In-Reply-To: <449D62C7.7030900@elvenkind.com> 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:28824 Archived-At: On Sat, 24 Jun 2006, Taco Hoekwater wrote: > Your macro is making the thing harder then needed, this > works just as well: > > \starttext > \number\hexstringtonumber{1F} > \number\hexstringtonumber{f5} > \stoptext Hello Taco, thanks for your answer! (I mentioned Hans, because he is the author of syst-con.tex) Now I understand the meaning of the " character: interpret the following number as hex-value. With this knowledge, my macro becomes as easy as this: \def\HexToNum#1{\number"#1} since I only need uppercase hex-values. Thanks for your enlightenment! Cheers, Peter -- http://pmrb.free.fr/contact/