Guy Rutenberg schrieb:
In the document
settings I've disabled the "Use AMS math package automatically" and
unchecked the "Use AMS math package", but when I add a formula containing
the \iint symbol, this setting gets ignored and LyX uses the AMS math
package.
Not LyX inserts this, you did, see below:
The problem with it is that I need to add the amsmath package after babel so
I have to do it manually in the latex preamble section of the document
settings. However, when LyX adds it it does so *before* adding babel.
Everything that you insert to the preamble is placed by LyX before babel. I know that this might be
a weird decision, but we had to decide to load babel before the user preamble or behind it, and the
latter turned out to be more safe.
To get what you want, use this in the preamble:
\usepackage{babel}
\usepackage{amsmath}
That babel is then again loaded after the preamble, can be ignored.
regards Uwe