]> git.lyx.org Git - features.git/commitdiff
Fix bug #8306: LyX incorrectly imports mhchem commands outside math mode
authorEnrico Forestieri <forenr@lyx.org>
Tue, 21 Aug 2012 02:04:54 +0000 (04:04 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 20 Sep 2012 11:39:38 +0000 (13:39 +0200)
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 ac92f2a79b85fac329a4d50def73cce9453d7073)

lib/syntax.default
status.20x

index 0d235f1dbfb68f5e589b9a205f53ab291e7769c3..62c4eea4d23223ef488bdeeef000af1b44001ba6 100644 (file)
@@ -400,6 +400,8 @@ $$
 \bottomfraction
 \caption[]{}
 \cc{}
+\ce{}
+\cf{}
 \ccname
 \centering
 \centerline{translate}
index 9f07dc6962c1f54f23a80862b02dcd1400967f48..2b90afa49a772df4a5748c619eb7d0a6e3bd5b8a 100644 (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