commit 19297a891cdaa2f60d49e2f8ce5bce2c6b881106
Author: Georg Baum <[email protected]>
Date: Sun Mar 22 17:56:07 2015 +0100
Fix tex2lyx import of \LaTeXe
Previously, it did generate an invalid SpecialChar inset.
diff --git a/src/tex2lyx/test/test-insets.lyx.lyx
b/src/tex2lyx/test/test-insets.lyx.lyx
index 1fb8cdc..422775d 100644
--- a/src/tex2lyx/test/test-insets.lyx.lyx
+++ b/src/tex2lyx/test/test-insets.lyx.lyx
@@ -6766,7 +6766,7 @@ status collapsed
\begin_layout Standard
LyX translates the phrases LyX, TeX, LaTeX2e and LaTeX to the commands
\SpecialChar \LyX
, \SpecialChar \TeX
-, \SpecialChar \LaTeXe
+, \SpecialChar \LaTeX2e
and \SpecialChar \LaTeX
. If these phrases occur as part of other words (like 1LyX or aTeX or LaTeX3)
they should not be put into ERT.
\end_layout
diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index 68f4ec9..6a67b58 100644
--- a/src/tex2lyx/text.cpp
+++ b/src/tex2lyx/text.cpp
@@ -261,7 +261,7 @@ char const * const known_special_protect_chars[] = {"LyX",
"TeX",
char const * const known_coded_special_chars[] = {"\\SpecialChar \\ldots{}\n",
"\\SpecialChar \\menuseparator\n", "\\SpecialChar \\textcompwordmark{}\n",
"\\SpecialChar \\slash{}\n", "~", "^", "\n\\backslash\n",
-"\\SpecialChar \\LyX\n", "\\SpecialChar \\TeX\n", "\\SpecialChar \\LaTeXe\n",
+"\\SpecialChar \\LyX\n", "\\SpecialChar \\TeX\n", "\\SpecialChar \\LaTeX2e\n",
"\\SpecialChar \\LaTeX\n", 0};
/*!