Jürgen Spitzmüller schrieb:

% used for tables with dashed lines
\newboolean{arydshln}
\IfFileExists{arydshln} ...

(It must be
\IfFileExists{arydshln.sty} )

It's in. There's now only one problem: Besides arydshln and marginnote the package prettyref is not on all LaTeX-systems. As LyX supports this package directly the solution for marginnote, etc. doesn't help here: Whenever the document contains a prettyref inset \usepackage{prettyref} is written to the preamble.

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:

- when using a prettyref inset \usepackage{prettyref} is set to the preamble. What when the user needs to load this package with an option? 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.)

- 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.

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.

regards Uwe

Reply via email to