]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/preamble.cpp
* src/frontends/GuiDocument.{cpp,h}:
[lyx.git] / src / tex2lyx / preamble.cpp
index 8a884713d528b4ce7a1bd93a9e870689c650e240..3813a36bf66b734d09bab2ce81252b729c44eacf 100644 (file)
@@ -18,7 +18,9 @@
 #include "Layout.h"
 #include "Lexer.h"
 #include "TextClass.h"
+
 #include "support/convert.h"
+#include "support/FileName.h"
 #include "support/filetools.h"
 #include "support/lstrings.h"
 
@@ -459,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();