Uwe Stöhr wrote: > We have a general problem here: Everything that LyX adds to the preamble is > not editable by the user. The preamble stuff that is inserted by Lyx > without setting an option in the preferences should appear in the normal > preamble dialog. This would solve various problems like this:
We need a package manager. > - when using a prettyref inset \usepackage{prettyref} is set to the > preamble. What when the user needs to load this package with an option? He can add the option to the "Class Options" widget. > When the user also uses hyperref he want to have the \usepackage{hyperref} > command before the \usepackage{prettyref} because otherwise some hyperref > stuff gets broken. (When \usepackage{prettyref} is set in the user visible > preamble I could solve the problem described above easily.) Yes, that's a good reason for a package manager. > - what when the user needs to load babel with a special option, for example > to give the index another name? \usepackage{babel} is invisibly set by LyX > always behind the preamble. He can just insert it in the preamble a second time. > I mean the preamble has always been something for the experts but they > should have a chance to edit it to get a proper output. I have some hacks > in the EmbeddedObjects manual and in many of my private documents due to > this problematic. There are also frequently questions on the users list and > in bugzilla concerning this problem. Well, someone needs to sit down and write the thing ;-) Jürgen