From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69110 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: measuring alphabet length Date: Mon, 13 Jun 2011 14:30:41 +0200 Message-ID: References: <2BAEF00E-F2AE-4E30-9F86-548BB2A7B918@fiee.net> <4DD261BD.60309@wxs.nl> <23BF6F68-2A11-45A8-936A-1CBA0536CDE0@fiee.net> <4DF5FF7B.1000400@tu-harburg.de> 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: dough.gmane.org 1307968268 22142 80.91.229.12 (13 Jun 2011 12:31:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 12:31:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 13 14:31:04 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QW6II-00018S-Kt for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jun 2011 14:31:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 74E95CADAB; Mon, 13 Jun 2011 14:31:01 +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 JGfpWJOYhbOn; Mon, 13 Jun 2011 14:30:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 89C59CADA1; Mon, 13 Jun 2011 14:30:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D01DCADA1 for ; Mon, 13 Jun 2011 14:30:55 +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 VJdYEY+AvagI for ; Mon, 13 Jun 2011 14:30:43 +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 92ACCCADA0 for ; Mon, 13 Jun 2011 14:30:43 +0200 (CEST) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5DCUgTk010511 for ; Mon, 13 Jun 2011 14:30:43 +0200 Original-Received: by qyk30 with SMTP id 30so3056353qyk.14 for ; Mon, 13 Jun 2011 05:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=6sVWU8iQip+FYcdnuDCSjZKg1UkqAoNknbWe9w8voLw=; b=TOEMnJia/ktfY7AJSqpq6dK9G3Ez7eZYrOXtPYnamQ+ONvUAJZpKJEcLSiE7un+5VD tztxNofy6TstQOEmg2lQbrv8VZ67Ifgg53iaJNOBC2Ufbr4pPrcfAXA/MlDa3xAwQBiU NtkQ17kRhtqVrHwla1B9fHO5jK+RwEYV4FMNk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ihEgol7Q4tpu4e83aAS28x6Zpp09FUVAydDc/tZ4Xiu9ThGdzGowbeR4oTsMGsayMF Gl347ceCHwrhD80Psv2CuOZScpdK57s+cGUJ//fdqi402TPoHkNUang2RWGstsjf3I6h e4tGPcg5V0WxuSPg/375RQDSjoCfBNIR1MepU= Original-Received: by 10.229.126.129 with SMTP id c1mr3669391qcs.6.1307968241654; Mon, 13 Jun 2011 05:30:41 -0700 (PDT) Original-Received: by 10.229.247.7 with HTTP; Mon, 13 Jun 2011 05:30:41 -0700 (PDT) In-Reply-To: <4DF5FF7B.1000400@tu-harburg.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; 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: 0rETouGmR - 9f3344fd5320 - 20110613 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:69110 Archived-At: On Mon, Jun 13, 2011 at 2:15 PM, Christoph Redecker wrote: > Hi, > > I want to measure and typeset the lower case alphabet length. The LaTeX > method doesn't work: > > \newlength{\alphabetlength} > \settowidth{\alphabetlength}{abcdefghijklmnopqrstuvwxyz} > \the\alphabetlength > > ConTeXt gives me an error saying that \newlength{...} is undefined. Is it > undefined because ConTeXt is built around TeX and not LaTeX and \newlength > is a LaTeX command (I do not know if it actually is)? yes > How can I do the same thing in ConTeXt? plain TeX is ok, for example, \newdimen\AlphaBet \bgroup \setbox10=\hbox{abcdefghijklmnopqrstuvwxyz} \global\AlphaBet=\wd10\egroup \the\AlphaBet Use CamelCase to avoid conflits with ConTeXt names. There are much more at http://wiki.contextgarden.net/Category:ConTeXt_programming -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________