I wrote:
When using hyperref to reference floats with hyperlinks, new floats have to be defined after loading hyperref. But LyX inserts the float definition at the beginning of the preamble. This should be easy to fix
> and I don't know a case where float definitions must be defined at first.
Ok I found a case. If the float definition is behind the user defined preamble, it is impossible to translate the float label. Translating is necessary, because the word "algorithm" is not covered by babel.
To solve all the problems with the package order in the preamble, LyX should have an option in the preferences, that prints out all LyX- and documentclass-specific stuff into the preamble window. This will it also make it possible to use other package options than LyX's default.
regards Uwe
