>>>>> "Ozgur" == Ozgur Ugras BARAN <[EMAIL PROTECTED]> writes:

Ozgur> I guess the short answer is: letting the user to set the
Ozgur> arguments in the form of: {echo=true, eval=false, ...} in
Ozgur> layouts is not possible for the moment. I believe this would be
Ozgur> a good feature. However, it seems that it is not possible to
Ozgur> add it during the lyx-1.5 cycle, since the version is in alpha/
Ozgur> feature freeze.

Well, the basic feature itself would be reasonably easy: add a new LatexType
EnvironmentWithArg, and when such an environment is used, output the
first paragraph as argument and the next ones inside the environment.
The patch for that would be very small.

However there are problems:

- first thing people will do is ask for more arguments. THis means
  more code.

- what happens when there is a required and an optional argument? In
  what order should they be output?

- we need an UI to show to the user that the first paragraph and the
  second one are of different nature. This means that the font, for
  example should be different. This means much more changes to LyX'
  kernel.

JMarc

Reply via email to