[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defining environments
From: |
Werner LEMBERG |
Subject: |
Re: defining environments |
Date: |
Fri, 21 Nov 2008 11:39:39 +0100 (CET) |
> > On the other hand, it would be really nice to have address@hidden' and
> > address@hidden' to define real environments like this:
> >
> > @envmacro foo
> > @flushleft
> > @end envmacro
> >
> > @endenvmacro foo
> > @end flushleft
> > @end endenvmacro
>
> I think that a new @macro like @-command is not a good thing to
> introduce, especially when there is dissatisfaction about the
> current @macro. More to the point, I can't see why it should be
> needed here since @macro should just work, and in the mean time the
> workaround to use makeinfo to expand the @macro seems fine to me.
Well, in my previous answer I forgot one thing: @macro can't define
environments at all! What I can define is a pseudo environment
@foo
@endfoo
However, I can't define a real environment
@foo
@end foo
(which would, BTW, generate a proper error if not nested correctly).
Thus it actually *does* make sense to have new macros for that
purpose.
Werner