[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] Cleverref
From: |
Bas Spitters |
Subject: |
Re: [Texmacs-dev] Cleverref |
Date: |
Sat, 21 Feb 2009 15:23:17 +0100 |
User-agent: |
KMail/1.11.0 (Linux/2.6.27-11-generic; KDE/4.2.0; i686; ; ) |
On Saturday 21 February 2009 13:48:58 David Allouche wrote:
> On Tue, Feb 17, 2009 at 23:24, Bas Spitters <address@hidden> wrote:
> > I am going to ask a dangerous question:
> > Can we have latex feature X in texmacs?
> >
> > This time X is cleverref.
> >
> > It allows you to replace
> > Lemma \ref{one}
> > by
> > \cref{one}
> > and still obtain Lemma 1
> >
> > This is very convenient when you decide to upgrade the Lemma by a
> > Proposition. I haven't looked at the implementation of this part of
> > texmacs, so I am unsure how difficult it is.
>
> Since your question looks like a question "is it reasonably feasible
> without too much effort", instead of a request "can I have it please
> please please", I'll answer the question:
>
> It should be fairly feasible. You just need to define a new
> anchor-like macro, and use that new macro in place of the standard
> one. You might be able to just redefine the anchor macro in your
> package to do what you want.
Could you give me some more pointers? Where is the anchor macro defined?
If I understand you correctly, texmacs is aware of the environment it is in
(lemma, proposition, section, etc)
How do I test for this?
Bas