> How about a GUI interface menu item, under Layout->Document, permitting you
> to specify a file containing a preamble you want to import?

That's a nice feature to have.

I think the preamble should be an inset, like Allan suggested.  But if it is
empty, it's not visible!  If it contains something, it appears like a foldable
button.  When you click on it, you will open it up and be able to type text
into it, much like you can in a code environment now.

Then you can use "Import->Ascii" to import some text into the preamble.
You can also close the preamble and copy and paste it into another document. 
If the receiving document has a preamble itself, LyX should do something
intelligent:  Offer to chose which one to use, concatenate them together, or
cancel.

In an empty document, you will use "Insert->Preamble" (or "Edit->Preamble") to
insert a preamble inset.

Obviously, when we get the text insets in dialgos, we will also be able to
provide the other way:  Use "Edit->Preamble" to get a dialog box where you can
edit the preamble, a la the way we do now, except that it would be a real work
area, and for instance all the custom key support works (along with copy/paste,
undo, etc.).

If somebody stepped up to do it, the preamble area would also be able to do
syntax highlighting.  (Just like a new LaTeX inset would, because the preamble
and the LaTeX inset are closely related.)

Greets,

Asger

Reply via email to