]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/preamble.cpp
* src/frontends/GuiDocument.{cpp,h}:
[lyx.git] / src / tex2lyx / preamble.cpp
index 3fa21d87b331d04fbad97fd839353fcbf2bff448..3813a36bf66b734d09bab2ce81252b729c44eacf 100644 (file)
@@ -461,8 +461,10 @@ TextClass const parse_preamble(Parser & p, ostream & os, string const & forcecla
                        p.setCatCode('@', catOther);
                }
 
-               else if (t.cs() == "newcommand" || t.cs() == "renewcommand"
-                           || t.cs() == "providecommand") {
+               else if (t.cs() == "newcommand" 
+                        || t.cs() == "renewcommand"
+                        || t.cs() == "providecommand"
+                        || t.cs() == "newlyxcommand") {
                        bool star = false;
                        if (p.next_token().character() == '*') {
                                p.get_token();