From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46986 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 22:23:07 +0100 Message-ID: <326847810901221323j74041dc8mf8a6a24f039fb994@mail.gmail.com> References: <326847810901220302l29b87b99y1365b88515261b2b@mail.gmail.com> <115224fb0901220322o283aeee0vc5dff37b20d9bdca@mail.gmail.com> <326847810901220639w6ffede09hbc5c3f0378c79129@mail.gmail.com> <2771FAB4-23A1-430F-ACB0-D1C039CD247A@gmail.com> <326847810901220654h76c99dbdk759027cc997044ea@mail.gmail.com> <326847810901220820q644ce3d6se3fa6fef447d4b56@mail.gmail.com> <97BDE3E6-E17E-41F2-B975-5D01C5DF21B5@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0776216850==" X-Trace: ger.gmane.org 1232659505 19467 80.91.229.12 (22 Jan 2009 21:25:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 21:25:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 22 22:26:17 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 1LQ744-0002NO-Nd for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jan 2009 22:26:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 701E71FE07; Thu, 22 Jan 2009 22:24:57 +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 29140-08; Thu, 22 Jan 2009 22:23:51 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A5601FE06; Thu, 22 Jan 2009 22:23:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0841E1FE06 for ; Thu, 22 Jan 2009 22: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 21046-07-4 for ; Thu, 22 Jan 2009 22:23:13 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 70C361FC66 for ; Thu, 22 Jan 2009 22:23:13 +0100 (CET) Original-Received: from mail-ew0-f13.google.com (mail-ew0-f13.google.com [209.85.219.13]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0MLNCGt017793 for ; Thu, 22 Jan 2009 22:23:12 +0100 Original-Received: by ewy6 with SMTP id 6so3689148ewy.2 for ; Thu, 22 Jan 2009 13:23:12 -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=pbPbsSiIAcy9tnSwuYOUu5vkd784Cfbhx08PFIn/PK4=; b=JVxCEPEJb728/JGWPwOVAHAovIYpTScf0umDXf51MHtJ/lKxofNhu3ogLZPdcYixWI r/TDNPLu4R2cV1oqKHeu/j6BkgrqqEkF+s32F8B9p+82yxZZLQJ4YFkjevmOg2iw222u qLdMrWp2zRLUlGSwz8Jzl6Hc/U5DKXOf24ZI8= 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=yEUxPRvWB2pFHCijErAscSEvt0LZl5+iNNWt7gj8ymIefANk8/zFbZV7CjfE5B6F32 EJnCgHENos8LW9M4ox6oMh6cANegWgm4Ixt4X40yJkbqOWvpUOa5cNZGsAzxHLb63ymw q9YzLeIlz3r5Mt5wzKjdupUc/iLAbr9ptGZBY= Original-Received: by 10.210.114.11 with SMTP id m11mr2509272ebc.16.1232659387518; Thu, 22 Jan 2009 13:23:07 -0800 (PST) In-Reply-To: <97BDE3E6-E17E-41F2-B975-5D01C5DF21B5@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: 169368445 - 888f6fb59983 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:46986 Archived-At: --===============0776216850== Content-Type: multipart/alternative; boundary=0015174c4646ec1153046118e0f6 --0015174c4646ec1153046118e0f6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Thu, Jan 22, 2009 at 5:54 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > > Am 22.01.2009 um 17:20 schrieb Alan Stone: > > On Thu, Jan 22, 2009 at 3:54 PM, Alan Stone < >> software.list.1es9s@gmail.com> wrote: >> Try: Your text has {\the\noflines} lines. >> >> Your text has \the\noflines\ lines. % works also >> >> Thanks. >> >> How do you substract/add a number from/to \noflines ? >> >> I tried >> >> \thinrules[n=\advance\the\noflines by -2] >> \thinrules[n=\advance\noflines by -2] >> \thinrules[n={\advance\the\noflines by -2}] >> \thinrules[n={\advance\noflines by -2}] >> > > \thinrules[n=\number\numexpr\noflines-2\relax] And how do you make a division of \number\numexpr\noflines-2, for ex. by 2 ? Wolfgang > --0015174c4646ec1153046118e0f6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Thu, Jan 22, 2009 at 5:54 PM, Wolfgang Schust= er <schuster.wolfgang@googlemail.com> wrote:

Am 22.01.2009 um 17:20 schrieb Alan Stone:


On Thu, Jan 22, 2009 at 3:54 PM, Alan Stone <software.list.1es9s@gmail.com&g= t; wrote:
Try: Your text has {\the\noflines} lines.

Your text has \the\noflines\ lines.  % works also

Thanks.

How do you substract/add a number from/to \noflines ?

I tried

\thinrules[n=3D\advance\the\noflines by -2]
\thinrules[n=3D\advance\noflines by -2]
\thinrules[n=3D{\advance\the\noflines by -2}]
\thinrules[n=3D{\advance\noflines by -2}]

\thinrules[n=3D\number\numexpr\noflines-2\relax]

And h= ow do you make a division of \number\numexpr\noflines-2, for ex. by 2 ?
=
Wolfgang

--0015174c4646ec1153046118e0f6-- --===============0776216850== 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 ___________________________________________________________________________________ --===============0776216850==--