From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26352 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: typing and linenumbering Date: Thu, 16 Mar 2006 10:02:46 +0100 Message-ID: <441929B6.1000704@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142499782 28330 80.91.229.2 (16 Mar 2006 09:03:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Mar 2006 09:03:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 16 10:02:58 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FJoNm-0001DN-1f for gctc-ntg-context-518@m.gmane.org; Thu, 16 Mar 2006 10:02:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7EAC3127A2; Thu, 16 Mar 2006 10:02:56 +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 11106-05; Thu, 16 Mar 2006 10:02:49 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 851371279B; Thu, 16 Mar 2006 10:02:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D84C71279B for ; Thu, 16 Mar 2006 10:02:48 +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 11105-05 for ; Thu, 16 Mar 2006 10:02:47 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id 9DA9012796 for ; Thu, 16 Mar 2006 10:02:47 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 3689E1B41A for ; Thu, 16 Mar 2006 10:02:47 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27440-05 for ; Thu, 16 Mar 2006 10:02:47 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id EAB13182F0 for ; Thu, 16 Mar 2006 10:02:46 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26352 Archived-At: nico wrote: > Hello, > The output is pretty as I wish, but unfortunately the line numbers are > *not* the numbers of the listing lines, but the numbers of the lines once > wrapped in the frame. In the example below the first line is very long > (the "blah blah" line), but in the output it is shown as 4 lines (with 4 > line numbers). I've tried this with a "method" trick, but that does not work too well with 'location=intext'. Anyway, here is what I did: \setuptyping[prog] [bodyfont=small, before={\begingroup\setuplinenumbering[style=small,% step=2,start=3,location=inmargin,method=type] \startframelisting \obeylines \startlinenumbering}, after={\stoplinenumbering\stopframelisting\endgroup}] > Is there a way to achieve this in a more integrated way with the typing > environment? Probably, but I do not know. > The other side effect of the method used is that it changes > the linenumbering behaviour outside the typing environment. I tried the > "reset" option, but it doesn't change the intext location. Is there a > possibility to come back to default settings? The setup obeys normal grouping rules (hence the \begingroup ... \endgroup in the code above) > Last but not least, is it possible to customize the wrapping behaviour so > that an arbitrary command can be called before the cut, and another > command after the cut? What I would like to have is {\space\wrapsign} > before the cut and an indentation after the cut to show that the line is > wrapped. That should be possible in typing environments. I even think there was a wiki page on that. But in non-verbatim environments, the breaking is simply TeX's paragraph builder, and I do not think context allows tinkering with that (I could be proven wrong, of course) Cheers, Taco