From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46968 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: number of lines ? Date: Thu, 22 Jan 2009 12:22:05 +0100 Message-ID: <115224fb0901220322o283aeee0vc5dff37b20d9bdca@mail.gmail.com> References: <326847810901220302l29b87b99y1365b88515261b2b@mail.gmail.com> 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 1232623440 19777 80.91.229.12 (22 Jan 2009 11:24:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 11:24:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 22 12:25:12 2009 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 1LPxgN-0004Fk-9i for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jan 2009 12:25:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1AAE41FE62; Thu, 22 Jan 2009 12:23:50 +0100 (CET) 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 18488-02; Thu, 22 Jan 2009 12:22:44 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3F3391FCBB; Thu, 22 Jan 2009 12:22:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 302381FCBB for ; Thu, 22 Jan 2009 12:22:43 +0100 (CET) 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 19571-01-4 for ; Thu, 22 Jan 2009 12:22:06 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 689F51FB49 for ; Thu, 22 Jan 2009 12:22:06 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0MBM51L026958 for ; Thu, 22 Jan 2009 12:22:06 +0100 Original-Received: by fg-out-1718.google.com with SMTP id 19so2187294fgg.8 for ; Thu, 22 Jan 2009 03:22:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Gio7Zz/ZSFZiy9tdcB2kbpZ/CJgVA6wkyscN25Pm17w=; b=Oz8UZYTJS/EmhkCk6D+Xu1rba74wosqDHUVDz/MKMCC06OY7FgOnoBYvaZWYxP+Z2X yucJvuvJZO/s0X89ByGtLylJcxUzr7xghV+bIqfhswXt7yh6v4xkVCO+YBj7cD4G3xmv OOqhU8u0zVpju/2ZmeTWVEYlVzQNkVtdeG7T4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=RDE3gBYPiHI9d0Zuw8B46Fn5yEDfE5mb+sTU0szdavrmrOGJv6+fGDeQ5KVxt/Zhw0 JneUsBci8vpHsfnWNQb5Rd47LphRvzyJ6h0apMAtDR3uwwWRG16/leqzdO/3y2sFjpWd xT+fHyKWX4CYNFHwsTb9rghYZ2EprzrXlGCzA= Original-Received: by 10.223.115.195 with SMTP id j3mr979765faq.99.1232623325431; Thu, 22 Jan 2009 03:22:05 -0800 (PST) In-Reply-To: <326847810901220302l29b87b99y1365b88515261b2b@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.155; 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: 169032510 - f8c852f950f2 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46968 Archived-At: On Thu, Jan 22, 2009 at 12:02 PM, Alan Stone wrote: > Hi, > > Is there a command which returns the number of lines for a given portion of > text ? \starttext \setbox\scratchbox\vbox{\input knuth\par} \getnoflines\htdp\scratchbox Your text has \noflines\ lines. \stoptext 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 ___________________________________________________________________________________