From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45149 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.comp.tex.context Subject: Re: Reference to a subitem Date: Tue, 28 Oct 2008 01:34:53 +0100 Message-ID: <20081028003453.GF13542@atos.labs.wmid.amu.edu.pl> References: <83e5fb980810221555k3e24caben36af44d360cf9207@mail.gmail.com> <115224fb0810230022x413a048dl90db8d24ca6bb00b@mail.gmail.com> <83e5fb980810241758x785fb138q95d18c9d92560cfc@mail.gmail.com> <20081025070757.GS21389@atos.labs.wmid.amu.edu.pl> <83e5fb980810270924p14cbe40esad32b6d8aeeeb663@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225156213 9645 80.91.229.12 (28 Oct 2008 01:10:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 01:10:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 28 02:11:14 2008 connect(): Connection refused 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 1Kud73-000137-CV for gctc-ntg-context-518@m.gmane.org; Tue, 28 Oct 2008 02:11:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 479421FBB8; Tue, 28 Oct 2008 02:10:04 +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 03682-02-5; Tue, 28 Oct 2008 02:09:04 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 93DC91FB60; Tue, 28 Oct 2008 02:09:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C8C6B1FB4E for ; Tue, 28 Oct 2008 02:08:59 +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 02934-03-5 for ; Tue, 28 Oct 2008 02:08:13 +0100 (CET) Original-Received: from atos.wmid.amu.edu.pl (atos.wmid.amu.edu.pl [150.254.78.2]) by ronja.ntg.nl (Postfix) with ESMTP id 8AB441FB14 for ; Tue, 28 Oct 2008 01:34:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by atos.wmid.amu.edu.pl (Postfix) with ESMTP id 53C08107AD18 for ; Tue, 28 Oct 2008 01:34:54 +0100 (CET) X-Virus-Scanned: by amavisd-new (PLD-Linux) at wmid.amu.edu.pl Original-Received: from atos.wmid.amu.edu.pl ([127.0.0.1]) by localhost (atos.wmid.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Y83dvTt7Vez9 for ; Tue, 28 Oct 2008 01:34:54 +0100 (CET) Original-Received: by atos.wmid.amu.edu.pl (Postfix, from userid 3884) id E9C6E105210B; Tue, 28 Oct 2008 01:34:53 +0100 (CET) Content-Disposition: inline In-Reply-To: <83e5fb980810270924p14cbe40esad32b6d8aeeeb663@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:45149 Archived-At: Dnia Mon, Oct 27, 2008 at 05:24:56PM +0100, Diego Depaoli napisał(a): > 2008/10/25 Marcin Borkowski : > > Dnia Sat, Oct 25, 2008 at 02:58:24AM +0200, Diego Depaoli napisał(= a): > > This code seems to work (approximately) like this: it expands the "full" > > reference, which is: > > > > and selects "everything from the first dot up to the second one (w/o the > > dots themselves). So I consider it to be a bit dirty hack (sorry, > > Wolfgang;)), in a sense that it is not very flexible. > Thanks for clarification, here I begin to understand > = > > If your stopper is, say ")" (and the second one, say, "]", so you have > > references in a strange form like "1)2]"), you might want to say > > something like > > \def\doItemNumber #1)#2]#3\relax > mmmm... I tried before posting... doesn't work Could you please send me a minimal example? > > \edef\sometemporarymacroname{% > > \def\noexpand\doItemNumber ##1\stopper ##2\stopperr ##3\relax > > {\noexpand\doifelsenothing{##2} > > {##1} > > {##2}}% > > }% > > \sometemporarymacroname > Here I stop understand and I can't get this code working. > Could you give me a full example? As above; send me a file, I'll try to do something. Still, I'm not really sure this would work, it was only a rough idea. I'll explain it later (it's 1:30 AM here in Poland;)). > > I'm not sure whether this works, though, *please* check it and tell me > > (maybe I'm doing some stupid error, please the TeX gurus correct me if > > yes). I hope this is ok, though, because then it my first post to this > > list containing actually an _answer_ and not a _question_:))). > This time will never come for me. If you follow the path of TeX, your expertise will gradually rise;). You'll never notice, though, until people start coming to you asking questions, and will be baffled by your expert-like, impossible-to-understand-and-technical answers;). > Cheers > -- = > Diego Depaoli Greets -- = Marcin Borkowski (http://mbork.pl) - Gandalf! A ja my=B6la=B3em, =BFe nie =BFyjesz. Co prawda o sobie te=BF = by=B3em tego zdania. Sam Gamgee ___________________________________________________________________________= ________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________