On Tue, 13 Feb 2001, Allan Rae wrote:
> On Mon, 12 Feb 2001, Lior Silberman wrote:
>
> > On Sat, 10 Feb 2001, R. Lahaye wrote:
> > > Hi,
> > >
> > > I have a few comments on the Layout items, as they appear in the Layout menu.
> > >
> > > LaTeX Preamble:
> > > Could a better place for the LaTeX Preamble be inside the
> > > Layout->Document , instead of being a window of its own?
> > >
> > [snip]
> > >
> > > Regards,
> > > Rob.
> > >
> >
> > I find it is nice to have the preamble accessible with a keyboard shortcut
> > directly, without the bother of using the mouse or having to navigate a
> > tabbed form.
>
> With a little trickery it should be possible to hookup the
> Dialogs::LaTeXPreamble signal to open the Document dialog and select the
> Preamble tab (if one existed and someone was keen to make this work).
> So you both could have your cake and eat it too.
>
That's a good idea!
> > In my case, since we have the "Layout->Document" form, most of what goes
> > into the preamble is not layout definitions, but other definitions.
>
> It's still document scope though.
>
> > IMHO, even with LyX, the user is programming a LaTeX document, so it's
> > better to have the preamble readily accessible. Consider an editor where
> > accessing the header of your C program (where you put #include's) is
> > complicated.
>
> Sure, so I'd like an ERT inset at the head of the document to do this but
> it'd be a special case because we'd need a pos of -1 since it comes before
> the start of the document. Either that or we just open another buffer
> that is locked to only have LaTeX or raw paragraphs and eliminate the
> dialog completely (this is probably the better option).
>
Until then, I find the current implementation even better because it's
accessible from everywhere in the document (whenever I discover I forgot
to add something to the preamble).
> Allan. (ARRae)
>
>
Lior.