As soon as you write in the lyx-math mode "\ce", lyx will include the
following two lines to the LaTeX source:
\PassOptionsToPackage{version=3}{mhchem}
\usepackage{mhchem}
What should we do ?
- Warn the user if he has defined a macro that is declared in a package
? (we know this, because LyX includes the package).
- Make mhchem a module which has to be selected when you want to use this.
- Make it optional to use the mhchem package, like we do with esint and
amsmath.
The more packages we automatically include, the larger the probability
it will collide with a user-defined one. It's very difficult for a user
to see this when upgrading it's LyX version.
VInce t