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

2012-08-20 Thread Enrico Forestieri
The branch, master, has been updated.

- Log -

commit ac92f2a79b85fac329a4d50def73cce9453d7073
Author: Enrico Forestieri for...@lyx.org
Date:   Tue Aug 21 04:04:54 2012 +0200

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.

diff --git a/lib/syntax.default b/lib/syntax.default
index 0d235f1..62c4eea 100644
--- a/lib/syntax.default
+++ b/lib/syntax.default
@@ -400,6 +400,8 @@ $$
 \bottomfraction
 \caption[]{}
 \cc{}
+\ce{}
+\cf{}
 \ccname
 \centering
 \centerline{translate}

---

Summary of changes:
 lib/syntax.default |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository


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

2012-08-20 Thread Enrico Forestieri
The branch, master, has been updated.

- Log -

commit ac92f2a79b85fac329a4d50def73cce9453d7073
Author: Enrico Forestieri 
Date:   Tue Aug 21 04:04:54 2012 +0200

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.

diff --git a/lib/syntax.default b/lib/syntax.default
index 0d235f1..62c4eea 100644
--- a/lib/syntax.default
+++ b/lib/syntax.default
@@ -400,6 +400,8 @@ $$
 \bottomfraction
 \caption[]{}
 \cc{}
+\ce{}
+\cf{}
 \ccname
 \centering
 \centerline{translate}

---

Summary of changes:
 lib/syntax.default |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository