From 63caef55052207982b9df95862bfd8b174696e7c Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 21 Aug 2012 04:04:54 +0200 Subject: [PATCH] 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 ac92f2a79b85fac329a4d50def73cce9453d7073) --- lib/syntax.default | 2 ++ status.20x | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/syntax.default b/lib/syntax.default index 0d235f1dbf..62c4eea4d2 100644 --- a/lib/syntax.default +++ b/lib/syntax.default @@ -400,6 +400,8 @@ $$ \bottomfraction \caption[]{} \cc{} +\ce{} +\cf{} \ccname \centering \centerline{translate} diff --git a/status.20x b/status.20x index 9f07dc6962..2b90afa49a 100644 --- a/status.20x +++ b/status.20x @@ -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