From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46974 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: number of lines ? Date: Thu, 22 Jan 2009 15:46:59 +0100 Message-ID: <2771FAB4-23A1-430F-ACB0-D1C039CD247A@gmail.com> References: <326847810901220302l29b87b99y1365b88515261b2b@mail.gmail.com> <115224fb0901220322o283aeee0vc5dff37b20d9bdca@mail.gmail.com> <326847810901220639w6ffede09hbc5c3f0378c79129@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============1046597853==" X-Trace: ger.gmane.org 1232635795 28900 80.91.229.12 (22 Jan 2009 14:49:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 14:49:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 22 15:51:07 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 1LQ0tA-0003hE-TA for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jan 2009 15:50:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9DF851FE8A; Thu, 22 Jan 2009 15:49:17 +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 13523-03; Thu, 22 Jan 2009 15:48:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D4E711FE79; Thu, 22 Jan 2009 15:48:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 200311FE79 for ; Thu, 22 Jan 2009 15:48:01 +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 12738-03-2 for ; Thu, 22 Jan 2009 15:47:22 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 29A9C1FE53 for ; Thu, 22 Jan 2009 15:47:22 +0100 (CET) Original-Received: from titan.uvsq.fr (titan.uvsq.fr [193.51.24.4]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0MElLED027936 for ; Thu, 22 Jan 2009 15:47:21 +0100 Original-Received: from cauchy.math.uvsq.fr (cauchy.math.uvsq.fr [193.51.32.2]) by titan.uvsq.fr (8.14.1/jtpda-5.4) with ESMTP id n0MEl1Za020202 for ; Thu, 22 Jan 2009 15:47:01 +0100 (CET) Original-Received: from MacKavian.math.uvsq.fr (MacKavian.math.uvsq.fr [193.51.32.142]) by cauchy.math.uvsq.fr (8.14.2/jtpda-5.4) with ESMTP id n0MEl09o003441 for ; Thu, 22 Jan 2009 15:47:00 +0100 (CET) In-Reply-To: <326847810901220639w6ffede09hbc5c3f0378c79129@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (titan.uvsq.fr [193.51.24.4]); Thu, 22 Jan 2009 15:47:01 +0100 (CET) X-Miltered: at titan.uvsq.fr with ID 497886E5.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Score: MSGID : 497886E5.000 on titan.uvsq.fr : j-chkmail score : . : R=. U=. O=# B=0.000 -> S=0.083 X-j-chkmail-Status: Ham X-Virus-Scanned: ClamAV 0.94.2/8892/Thu Jan 22 15:34:53 2009 on titan.uvsq.fr X-Virus-Status: Clean X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=193.51.24.4; country=FR; region=A8; city=Versailles; latitude=48.8000; longitude=2.1333; http://maps.google.com/maps?q=48.8000,2.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 169192578 - 473fbe22754a X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:46974 Archived-At: --===============1046597853== Content-Type: multipart/alternative; boundary=Apple-Mail-1-925349356 --Apple-Mail-1-925349356 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 22 janv. 09, at 15:39, Alan Stone wrote: > On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster > wrote: > 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 > > \getnoflines{\htdp\scratchbox} % this works > > > Your text has \noflines\ lines. > > or: Your text has \noflines lines. Try: Your text has {\the\noflines} lines. Best regards: OK --Apple-Mail-1-925349356 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On 22 janv. 09, = at 15:39, Alan Stone wrote:

On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang = Schuster <schuster.wolfgang@googlem= ail.com> wrote:
On Thu, Jan 22, 2009 = at 12:02 PM, Alan Stone
<software.list.1es9s@gmail.co= m> 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

\getnoflines{\htdp\scrat= chbox}  % this works

 
Your text has = \noflines\ lines.

or: Your text has \noflines = lines.

Try: Your text has = {\the\noflines} lines.


Best = regards: OK
= --Apple-Mail-1-925349356-- --===============1046597853== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1046597853==--