From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4917 Path: main.gmane.org!not-for-mail From: "Denis B. Roegel" Newsgroups: gmane.comp.tex.context Subject: Re: Labeling a tree with MetaObj. Date: Mon, 2 Jul 2001 23:27:43 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <20010702232743.A20777@bar.loria.fr> References: <20010702212300.A13559@bar.loria.fr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035395549 29826 80.91.224.250 (23 Oct 2002 17:52:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:52:29 +0000 (UTC) Cc: "Denis B. Roegel" , ntg-context@ntg.nl Original-To: Tarik Kara In-Reply-To: ; from ktarik@Bilkent.EDU.TR on Tue, Jul 03, 2001 at 12:13:32AM +0300 Xref: main.gmane.org gmane.comp.tex.context:4917 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4917 On Tue, Jul 03, 2001 at 12:13:32AM +0300, Tarik Kara wrote: > Thank you very much for the nice package and the answer to my problem. > One small comment: It would be nice if one could also use > > ObjLabel.ntreepos(Obj(t))(btex $o$ etex) "labpathid(1)","labdir(lft)"; > > In addition to > > ObjLabel.Obj(t)(btex $o$ etex) "labpathid(1)", "labdir(lft)"; > > Just for the sake of symmetry between a tree and its subtrees: The same > idea as to get the "treeroot" function to work with an empty argument. This is not easily possible, maybe even impossible, because ntreepos expects two arguments. However, it is possible to write a macro Ntreepos such that Ntreepos(t) Ntreepos(t,1) Ntreepos(t,1,1) Ntreepos(t,1,2,1) etc., are accepted. Here Ntreepos takes one argument, which is a list of numbers (t is also a number). This would restore the symmetry, and even make it easier to use! (And actually treeroot can also be simplified along these lines!) I'll probably write such a macro for the next version, but I'll keep the current ones for compatibility. I am sure other things can be simplified. The problem is that I still want to keep the package as general as possible. Thanks for your comments! Denis