From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46980 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: number of lines ? Date: Thu, 22 Jan 2009 19:35:18 +0100 Message-ID: <326847810901221035s1e3a323bk55e8840c3da916d1@mail.gmail.com> References: <326847810901220302l29b87b99y1365b88515261b2b@mail.gmail.com> <115224fb0901220322o283aeee0vc5dff37b20d9bdca@mail.gmail.com> <326847810901220639w6ffede09hbc5c3f0378c79129@mail.gmail.com> <2771FAB4-23A1-430F-ACB0-D1C039CD247A@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0015174bdfdec47564046116885f X-Trace: ger.gmane.org 1232649447 15557 80.91.229.12 (22 Jan 2009 18:37:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 18:37:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 22 19:38:40 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 1LQ4Rj-0004oS-Cz for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jan 2009 19:38:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D17A71FE55; Thu, 22 Jan 2009 19:37:09 +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 04405-04; Thu, 22 Jan 2009 19:36:33 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5AC581FDE6; Thu, 22 Jan 2009 19:36:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C3671FDE6 for ; Thu, 22 Jan 2009 19:36:29 +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 09387-04-6 for ; Thu, 22 Jan 2009 19:35:50 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 8A8621FBF9 for ; Thu, 22 Jan 2009 19:35:50 +0100 (CET) Original-Received: from mail-ew0-f13.google.com (mail-ew0-f13.google.com [209.85.219.13]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0MIZn2a015042 for ; Thu, 22 Jan 2009 19:35:50 +0100 Original-Received: by ewy6 with SMTP id 6so3455161ewy.2 for ; Thu, 22 Jan 2009 10:35:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=6sNRsgZLMDPqduWjuWJlmOgbxQ9Sz5gmpD4WORp9z68=; b=dkJIks3u81JUGIxqQqi8B9yUmj1HWvvk7crUrvYIooyPN17r2tSm7X6SsV0zYG48LE xlg1LOEwYaiOg1ltWs2RWFfMm5sn1gkYKo47tYyTQun4QsvTvqX6NE8Ayy9xKofYKoEv i7q8t/fyCxu2D3TdBZ8iG87k35qsifuxj2JXM= 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=mIcVWMWqLlNT41VNUuAp3u501ld4bHFSUYBUP0KVPu6vGB5zxGTVnd+ByJatWfYKCp E600D8S3I0rDZwrradc7wUy3QMYTTwkKV/rtrtLo/mOrkANfyBZ0anjYpmhsL2mg53eY 88rqIKHW4lbP6IYLsBvbJr8uvuZXZXPendTgM= Original-Received: by 10.210.69.6 with SMTP id r6mr1191468eba.83.1232649318593; Thu, 22 Jan 2009 10:35:18 -0800 (PST) In-Reply-To: <2771FAB4-23A1-430F-ACB0-D1C039CD247A@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.13; 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: 169321416 - 7c367ff4b815 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:46980 Archived-At: --0015174bdfdec47564046116885f Content-Type: multipart/alternative; boundary=0015174bdfdec47554046116885d --0015174bdfdec47554046116885d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit How do you make the attached example work (see comments at the beginning of the file) ? {Thus, I came to the conclusion that the designer of a new system mus\ETC. ! Paragraph ended before \makelines was complete. \par l.22 ? Alan On Thu, Jan 22, 2009 at 3:46 PM, Otared Kavian wrote: > > On 22 janv. 09, at 15:39, Alan Stone wrote: > > On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster < > schuster.wolfgang@googlemail.com> 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 > --0015174bdfdec47554046116885d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable How do you make the attached example work (see comments at the beginning of= the file) ?

{Thus, I came to the conclusion that the designer of a = new system mus\ETC.
! Paragraph ended before \makelines was complete. <to be read again>
       &nbs= p;           \par
l.2= 2
    
?

Alan

On Thu, Jan 22, 2009 at 3:46 PM, Otared Kavian &l= t;otared@gmail.com> wrote= :
<= br>
On 22 janv. 09, at 15:39, Alan Stone wro= te:

On Thu, Jan 22, 20= 09 at 12:22 PM, Wolfgang Schuster <schuster.wolfgang@google= mail.com> wrote:
On Thu, Jan= 22, 2009 at 12:02 PM, Alan Stone
<software.list.1es9s@gmail.com> wro= te:
> 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\s= cratchbox

\getnoflines{\htdp\scratchbox}  % this works

 = ;
Your text has \noflines\ lines.

or: Your text has \no= flines lines.

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


Best r= egards: OK

--0015174bdfdec47554046116885d-- --0015174bdfdec47564046116885f Content-Type: application/x-tex; name="makelines.tex" Content-Disposition: attachment; filename="makelines.tex" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fq9rjl690 DQolIFxtYWtlbGluZXMgd29ya3MNCiUNCiUgLSB3aGVuIGFwcGx5aW5nIFxtYWtlbGluZXN7fSB0 byBlYWNoIHBhcmFncmFwaA0KJSAtIHdpdGggXG1ha2VsaW5lc3tcaW5wdXQgdGVzdGxpbmVzfSBh bmQgdGVzdGxpbmVzLnRleCBjb250YWlucyB0aGUgdGV4dA0KJQ0KJSBBcyBhbiBhbHRlcm5hdGl2 ZSwgaG93IGRvIHlvdSBtYWtlIGl0IHdvcmsgYXMgYmVsb3cuLi4NCg0KXGRlZlxtYWtlbGluZXMj MXslDQoJCQlcc2V0Ym94XHNjcmF0Y2hib3hcdmJveHsjMVxwYXJ9DQolCQkJXHNldGJveFxzY3Jh dGNoYm94XHZib3h7IzF9DQoJCQlcZ2V0bm9mbGluZXN7XGh0ZHBcc2NyYXRjaGJveH0NCgkJCVx0 aGlucnVsZXNbbj1cdGhlXG5vZmxpbmVzXX0NCg0KXHN0YXJ0dGV4dA0KDQolXG1ha2VsaW5lc3tc aW5wdXQgdGVzdGxpbmVzfQ0KDQpcbWFrZWxpbmVze1RodXMsIEkgY2FtZSB0byB0aGUgY29uY2x1 c2lvbiB0aGF0IHRoZSBkZXNpZ25lciBvZiBhIG5ldyBzeXN0ZW0gbXVzdCBub3Qgb25seSBiZQ0K dGhlIGltcGxlbWVudGVyIGFuZCBmaXJzdCBsYXJnZS0tc2NhbGUgdXNlcjsgdGhlIGRlc2lnbmVy IHNob3VsZCBhbHNvIHdyaXRlIHRoZSBmaXJzdA0KdXNlciBtYW51YWwuDQoNClRoZSBzZXBhcmF0 aW9uIG9mIGFueSBvZiB0aGVzZSBmb3VyIGNvbXBvbmVudHMgd291bGQgaGF2ZSBodXJ0IFRFWCBz aWduaWZpY2FudGx5Lg0KSWYgSSBoYWQgbm90IHBhcnRpY2lwYXRlZCBmdWxseSBpbiBhbGwgdGhl c2UgYWN0aXZpdGllcywgbGl0ZXJhbGx5IGh1bmRyZWRzIG9mIGltcHJvdmVtZW50cw0Kd291bGQg bmV2ZXIgaGF2ZSBiZWVuIG1hZGUsIGJlY2F1c2UgSSB3b3VsZCBuZXZlciBoYXZlIHRob3VnaHQg b2YgdGhlbSBvcg0KcGVyY2VpdmVkIHdoeSB0aGV5IHdlcmUgaW1wb3J0YW50Ln0NCg0KXHN0b3B0 ZXh0DQo= --0015174bdfdec47564046116885f 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 ___________________________________________________________________________________ --0015174bdfdec47564046116885f--