From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49120 Path: news.gmane.org!not-for-mail From: Wei-Wei Guo Newsgroups: gmane.comp.tex.context Subject: How to get the number of lines of a paragraph? Date: Mon, 06 Apr 2009 23:17:36 +0800 Message-ID: <49DA1D10.3090902@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239030477 11055 80.91.229.12 (6 Apr 2009 15:07:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Apr 2009 15:07:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 06 17:09:14 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 1LqqRl-00011H-EP for gctc-ntg-context-518@m.gmane.org; Mon, 06 Apr 2009 17:09:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7CDD71FB77; Mon, 6 Apr 2009 17:07:47 +0200 (CEST) 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 28276-03-5; Mon, 6 Apr 2009 17:07:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2EF011FADB; Mon, 6 Apr 2009 17:07:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 91C381FADB for ; Mon, 6 Apr 2009 17:07:10 +0200 (CEST) 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 28632-02-5 for ; Mon, 6 Apr 2009 17:07:02 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 628D11FAD7 for ; Mon, 6 Apr 2009 17:07:02 +0200 (CEST) Original-Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.184]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n36F70qp032501 for ; Mon, 6 Apr 2009 17:07:01 +0200 Original-Received: by ti-out-0910.google.com with SMTP id 24so2394445tim.14 for ; Mon, 06 Apr 2009 08:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=KH7E1cMQ6m1Owcs1Ro+RuLwZh/nVHtxwPx2IlI1AW/4=; b=yA3kXzxNS0Hft/rVKGmEJzUPrRIlwfBHL5bDzs8vkZNXqo6GNdh5JEYGv3SgVQIRiu HLqxf2eBwOvakQ1ZZLIR5coQLYVoFO8tp68FRfAQCvgFn3IUIhmm8JhWQagR8KAjGau0 YBVclkeLE/CrORhtRon4CQW6rQthGaqOxYkYk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=sfYz62OaNZSC0L9gpV5cVeaRkizuvI/l/2jiULWjmkw6nBgfSB0epWDOpWXgBCVsJr /egHoHLI0sysFJFai6x/2q6kR4O8bpMZUbHcabJlt+xcgv/4WAyZle+hbRDA4H3zexTj iCBlNJJqM+rHuRYv8uKxtlvN6Fmj2q+zySq3E= Original-Received: by 10.110.84.3 with SMTP id h3mr6579650tib.22.1239030418660; Mon, 06 Apr 2009 08:06:58 -0700 (PDT) Original-Received: from ?172.16.149.232? ([60.12.143.17]) by mx.google.com with ESMTPS id j5sm751201tid.1.2009.04.06.08.06.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Apr 2009 08:06:57 -0700 (PDT) User-Agent: Thunderbird 2.0.0.19 (X11/20081209) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.142.184; 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: 204650133 - f0d57350f4eb - 20090406 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:49120 Archived-At: Dear all, I need to draw underlines under a paragraph. The number of underlines is determined by the number of lines of the paragraph. For example: If the paragraph have one line: text of paragraph, blur blur. ---------------------------------------------------------- If the paragraph have two lines: text of paragraph, blur blur blur blur blur blur blur blur ---------------------------------------------------------- blur blur blur blur blur blur blur blur. ---------------------------------------------------------- Another question: How can I set the header of the pages of contents? Thanks! Best wishes, Wei-Wei ___________________________________________________________________________________ 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 ___________________________________________________________________________________