ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Denis B. Roegel" <Denis.Roegel@loria.fr>
Cc: "Denis B. Roegel" <Denis.Roegel@loria.fr>, ntg-context@ntg.nl
Subject: Re: Labeling a tree with MetaObj.
Date: Mon, 2 Jul 2001 23:27:43 +0200	[thread overview]
Message-ID: <20010702232743.A20777@bar.loria.fr> (raw)
In-Reply-To: <Pine.GSO.4.05.10107022358090.22357-100000@sumak>; from ktarik@Bilkent.EDU.TR on Tue, Jul 03, 2001 at 12:13:32AM +0300

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


      reply	other threads:[~2001-07-02 21:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-30 11:41 Problem to create PDF File Karsten Hachmeister
2001-06-30 12:09 ` Berend de Boer
2001-06-30 14:28   ` Karsten Hachmeister
2001-06-30 17:21     ` Re[2]: " Giuseppe Bilotta
2001-07-02  8:11       ` Labeling a tree with MetaObj Tarik Kara
2001-07-02  8:15         ` Hans Hagen
2001-07-02 19:23         ` Denis B. Roegel
2001-07-02 21:13           ` Tarik Kara
2001-07-02 21:27             ` Denis B. Roegel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010702232743.A20777@bar.loria.fr \
    --to=denis.roegel@loria.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).