From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69118 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: measuring alphabet length Date: Mon, 13 Jun 2011 15:14:25 +0200 Message-ID: <6B198B55-C40F-4DAD-BE3B-11CF6F622DA7@googlemail.com> References: <2BAEF00E-F2AE-4E30-9F86-548BB2A7B918@fiee.net> <4DD261BD.60309@wxs.nl> <23BF6F68-2A11-45A8-936A-1CBA0536CDE0@fiee.net> <4DF5FF7B.1000400@tu-harburg.de> <9A201E81-5847-4768-A619-26D7AE0ACFFF@googlemail.com> <4DF605FA.40208@tu-harburg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307970892 5919 80.91.229.12 (13 Jun 2011 13:14:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 13:14:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 13 15:14:47 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 1QW6yd-00061y-0g for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jun 2011 15:14:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC991CADAC; Mon, 13 Jun 2011 15:14:44 +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 4yDitTF3ORRj; Mon, 13 Jun 2011 15:14:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6032FCAD9E; Mon, 13 Jun 2011 15:14:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 832E6CAD9E for ; Mon, 13 Jun 2011 15:14:41 +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 lgfLODwFOj6p for ; Mon, 13 Jun 2011 15:14:30 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 92D72CAD9D for ; Mon, 13 Jun 2011 15:14:30 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5DDESx2013597 for ; Mon, 13 Jun 2011 15:14:29 +0200 Original-Received: by bwz17 with SMTP id 17so5706421bwz.14 for ; Mon, 13 Jun 2011 06:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=zXMV/fMhPvBsldST5EKF9f/OEVnxtjAH617CtrbT38k=; b=JCwKhAu50Ckxs8DAXdfg8eGWp483L6lZs2yzkqzgWDiIR8ofqVdy4WKiud41+HvcyP 84fqoo0vzkXCL1BiYzkvAF3dEo3T22tbvMgRZoR+gydRuTrddpiNwLe20pKBfkhE1TmX PE74vR7PfvxP/R2hARnDoHRj6dMapfDqE6tJY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=n5eCGzsdTjrukqEzk3hihvSTrZquOwzyyuH54/2RdzqH88L40yLvZGUPHynyvNYs3W Gqkr/9NK5tYmG7NYitFhiWRMrczMJYjm9uo+y5WE/UurhJ/3v38oLL8bxkQnUOHaAnET 8Eyvmbr6fk2XH8Wr2r+awVJ7lmHAk275yfCNk= Original-Received: by 10.204.41.74 with SMTP id n10mr4566427bke.186.1307970868735; Mon, 13 Jun 2011 06:14:28 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EE88E.dip.t-dialin.net [91.14.232.142]) by mx.google.com with ESMTPS id k16sm5339737bks.1.2011.06.13.06.14.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 06:14:28 -0700 (PDT) In-Reply-To: <4DF605FA.40208@tu-harburg.de> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0013 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 0dETpetPC - 109f8a069abf - 20110613 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:69118 Archived-At: Am 13.06.2011 um 14:43 schrieb Christoph Redecker: > Thanks to both of you, all three suggestions work. However, I don't under= stand all of the code. What does \dowithnextbox do exactly? It=92s a high level version of Luigis example. The content of the box with = the text =93abc=85=94 is saved in the box nextbox which can be accessed wit= h \flushnextbox, the dimensions of the box are available through the comman= d \nextboxht, \nextboxdp and \nextboxwd. > In your last example, does it define the command \measure just for the ne= xt box? \definemeasure is a alternative to dimension and use a macro to store a len= gth. The first argument is the name of the length and you can access the va= lue with the command \measure{} but i forgot to expand the value of t= he box in my example and it should be: \dowithnextbox {\expanded{\definemeasure[alphabetlength][\the\nextboxwd]}}% \hbox{abcdefghijklmnopqrstuvwxyz} Wolfgang ___________________________________________________________________________= ________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________