Fix bug #8306: LyX incorrectly imports mhchem commands outside math mode

Those commands can also be used in text mode but tex2lyx tries to
translate their argument causing havoc. So, import the whole commands
as ERT.

(cherry picked from commit ac92f2a79b)
This commit is contained in:
Enrico Forestieri 2012-08-21 04:04:54 +02:00
parent 0e33060337
commit 63caef5505
2 changed files with 4 additions and 0 deletions

View File

@ -400,6 +400,8 @@ $$
\bottomfraction
\caption[]{}
\cc{}
\ce{}
\cf{}
\ccname
\centering
\centerline{translate}

View File

@ -119,6 +119,8 @@ What's new
- Fix support for mhchem upward arrows, which in mathed are rendered as
empty (brace insets) superscripts (bug 8305).
- Fix tex2lyx import of mhchem commands outside math mode (bug 8306).
* USER INTERFACE