On Mon, 29 Jan 2007 10:15:34 -0500 (EST) Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> On Mon, 29 Jan 2007, Wolfgang Schuster wrote: > > > Hi all, > > > > > > I have a module with a envrionment defined in the following way: > > > > \def\startFOO#1\stopFOO{...#1...} > > > > > > I try currently to write a command \defineFOO[MYFOO] that expands to my > > already created environment. > > > > \startMYFOO#1\stopMYFOO -> \startFOO#1\stopFOO > > > > > > I know it is possible to make this in the following way: > > > > \def\startMYFOO#1\stopMYFOO{\startFOO#1\stopFOO} > > > > but this not what I want. > > Something like this > > \def\defineFOO[#1]% > {\setvalue{\c!start#1}{\startFOO} > \setvalue{\c!stop#1} {\stopFOO}} > Hi Aditya, this can only be used if you define your environment in this way: \def\startFOO{...} \def\stopFoo{...} I defined my environment in this way: \def\startFOO#1\stopFOO{...} This means TeX reads everything from \startFOO till \stopFOO and looks afterwards at the replacement text. I used tried the first way with saving the content into a buffer and using the buffer content. This did no longer work when you try to write: \placefloat {\startFOO ... \stopFOO} or \starcombination[...] {\startFOO ... \stopFOO} {} ... \stopcombination Wolfgang _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context