On Saturday 21 February 2009 13:48:58 David Allouche wrote: > On Tue, Feb 17, 2009 at 23:24, Bas Spitters <[email protected]> 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 _______________________________________________ Texmacs-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/texmacs-dev
