On Thu, Feb 09, 2006 at 01:34:05AM +0100, Charles de Miramon wrote:
> Martin Vermeer wrote:
> 
> >> 
> >> as be can just embed verbatim macros here. No dirty tricks and lots of
> >> slow, extra files needed. And all this trouble just because
> >> environments can't have arguments in lyx... Oh my dear...
> > 
> > That would be easy to fix...
> > 
> 
> Would nested environments be very difficult to implement in LyX ? Something
> like,
> 
> \begin{linenumbers}
> blabla
> \begin{itemize}
> \item bla
> \end{itemize}
> bla
> \end{linenumbers}
> 
> That would also dramatically improve the number of LaTeX packages that can
> be LyXified. 
> 
> I understand that designing a GUI for nested environments is not easy. Maybe
> something similar to http://www.conglomerate.org/shots/edit_hal.png
> 
> Cheers,
> Charles


Methinks we already have it. See paragraph.C:

    595 Paragraph::depth_type Paragraph::getMaxDepthAfter() const
    596 {
    597         if (layout()->isEnvironment())
    598                 return params().depth() + 1;
    599         else
    600                 return params().depth();
    601 }

or, if you are of the empirical persuasion, just try for yourself...

- Martin

Attachment: pgpx84vzCKbQ8.pgp
Description: PGP signature

Reply via email to