rgheck schreef:
On 10/26/2009 12:10 PM, Vincent van Ravesteijn wrote:
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.
Are the last two options (yet)?
No.
We'd have to know to treat \ce one way when the package was selected,
or the module was included, and another way when it is not.
rh
I think this is a very serious problem and it breaks a lot of existing
documents, if we keep adding new features and new support for packages
and macros in the future.
Vincent