From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59713 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Line Numbering (blank lines) Date: Fri, 18 Jun 2010 18:46:36 +0200 Message-ID: <4C1BA2EC.2090401@googlemail.com> References: 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: dough.gmane.org 1276879611 15813 80.91.229.12 (18 Jun 2010 16:46:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Jun 2010 16:46:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 18 18:46:47 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OPeiN-0001Mh-N1 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Jun 2010 18:46:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 489BBC9BF4; Fri, 18 Jun 2010 18:46:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9YlmOlIt4ac8; Fri, 18 Jun 2010 18:46:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5B3EC9BD0; Fri, 18 Jun 2010 18:46:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 49EF0C9BD0 for ; Fri, 18 Jun 2010 18:46:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pVUmtkTUbrSq for ; Fri, 18 Jun 2010 18:46:39 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by balder.ntg.nl (Postfix) with ESMTP id B0F1DC9BCF for ; Fri, 18 Jun 2010 18:46:39 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id 19so315167fgg.2 for ; Fri, 18 Jun 2010 09:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=M8NBaKjXPld+CDGaLEuM1/WDxs6DF2JOH+v3Tzhihbw=; b=pqFzWxihi78GvIJor6wTgNxANfDr12t0q9BP4S+A+O7XY7StkU5lQ33MhNztHib0Lo TiwRvQ6In7qkjz3w0hv21fIQBz432TS9t9LXIgpNg0j54MLEaekE7gpKRIpRF3wwke0L e+mOYbj9EHhr3x6XOFUxkCal7Kms1iRkw0gmY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=LmJI/GO7dR6SziVIQ89sHoxfxqmQPZHe5ewFLwL7FTBv9SoWsIeUVFYhV2CN8k+/8q 8mQ2T0WKbaTUR0Se9qGeElP9HoF2Iupp6USdcoS3IYUWkB4mzz00VK7X2UvYtdAE/Fl4 +hika0zmNYFAW14Y/Xz5NDIG6HneVG4SJ8z0s= Original-Received: by 10.87.71.7 with SMTP id y7mr2095001fgk.63.1276879599347; Fri, 18 Jun 2010 09:46:39 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B2940B1.dip.t-dialin.net [91.41.64.177]) by mx.google.com with ESMTPS id 22sm2243634fkq.47.2010.06.18.09.46.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 18 Jun 2010 09:46:38 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:59713 Archived-At: Am 18.06.10 17:55, schrieb David Abdurachmanov: > Hi, > > How make ConTeXt to number blank lines? Blank lines by default are > skipped. Especially when giving programming examples (source code) in > ConTeXt documents, I would prefer blank lines still have number. For mkiv it's works out of the box, for mkii it's not possible to change this with a simple key. Here is a working solution but it redefined a *internal* macro: % \def\doemptyverbatimline % {\vskip\verbatimbaselineskip % {\setbox0\hbox{\the\everyline}}% % \global\linepartrue} \def\doemptyverbatimline {\dontleavehmode \strut \the\everyline \par} \starttext \setuptyping[numbering=line] \starttyping one two four five \stoptyping \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________