From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62970 Path: news.gmane.org!not-for-mail From: Stefan =?windows-1252?q?M=FCller?= Newsgroups: gmane.comp.tex.context Subject: Re: Referencing line numbers inside a typing Date: Wed, 27 Oct 2010 11:34:01 +0200 Message-ID: <201010271134.01793.warrence.stm@gmx.de> References: <4CC691B2.3010808@gmx.de> <4CC72255.2050907@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1288172067 25203 80.91.229.12 (27 Oct 2010 09:34:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 09:34:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 27 11:34:23 2010 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 1PB2Oj-0008Cp-1p for gctc-ntg-context-518@m.gmane.org; Wed, 27 Oct 2010 11:34:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 49F02CA7A8; Wed, 27 Oct 2010 11:34:19 +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 cduenF0PGz-J; Wed, 27 Oct 2010 11:34:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57B00CA790; Wed, 27 Oct 2010 11:34:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 93DD2CA790 for ; Wed, 27 Oct 2010 11:34:01 +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 kqf8kgnbPdFm for ; Wed, 27 Oct 2010 11:33:56 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 471DFC9A7C for ; Wed, 27 Oct 2010 11:33:56 +0200 (CEST) Original-Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id o9R9XtcE021700 for ; Wed, 27 Oct 2010 11:33:55 +0200 Original-Received: (qmail invoked by alias); 27 Oct 2010 09:33:54 -0000 Original-Received: from 77-64-197-78.dynamic.primacom.net (EHLO bragi.localnet) [77.64.197.78] by mail.gmx.net (mp007) with SMTP; 27 Oct 2010 11:33:54 +0200 X-Authenticated: #11064435 X-Provags-ID: V01U2FsdGVkX18V3apGSbsV8f7h3PspAtY4jl/n3kZj/iNV6m0xAE BN9zig2uryK/Hl User-Agent: KMail/1.13.5 (Linux/2.6.34.7-61.fc13.i686; KDE/4.4.5; i686; ; ) In-Reply-To: X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DnJxTdi - 9dfbdcd60dea - 20101027 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:62970 Archived-At: Am Dienstag 26 Oktober 2010, 21:12:01 schrieb Wolfgang Schuster: > Am 26.10.2010 um 20:47 schrieb Stefan M=FCller: > > One more question before wikifying: Is there a way to prevent the prefix > > "line"? I want to say something like "In lines 3 to 13". > = > The texts =84line=93 and =84lines=93 are set with \setuplabeltext but you= can see > alternative texts with \inline{...}[]. > = > \setuptyping[numbering=3Dline,escape=3Dyes] > = > \starttext > = > See \inline[line:single] and also \inline[line:range]. > = > See \inline{typeline}[line:single] and also \inline{typelines}[line:range= ]. > = > See line~\inlinerange[line:single] and also lines~\inlinerange[line:range= ]. > = > \starttyping > line 1 > line 2/BTEX\startline[line:range]/ETEX > line 3/BTEX\someline[line:single]/ETEX > line 4 > line 5/BTEX\stopline[line:range]/ETEX > line 6 > \stoptyping > = > \stoptext > = > Wolfgang Thanks Wolgang, this looks pretty nice. Unfortunately I get the following = error when running your example (ConTeXt ver: 2010.10.22 16:46 MKIV fmt: = 2010.10.27 int: english/english): references : unknown reference [][lr:b:line:single] references : unknown reference [][lr:b:line:range] Any ideas? Stefan ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________