]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/math.cpp
update tex2lyx tests once more
[lyx.git] / src / tex2lyx / math.cpp
index d17d1d90174a5e11c01fd49a9318c14c5d7acbdd..9fddeea16c7536cd32f0fecf49098c446686d087 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <config.h>
 
+#include "Preamble.h"
 #include "tex2lyx.h"
 
 #include <iostream>
@@ -120,7 +121,7 @@ void parse_math(Parser & p, ostream & os, unsigned flags, const mode_type mode)
 
                else if (t.cat() == catComment) {
                        if (!t.cs().empty())
-                               cerr << "Ignoring comment: " << t.asInput();
+                               os << t.asInput();
                        else
                                // "%\n" combination
                                p.skip_spaces();
@@ -231,6 +232,16 @@ void parse_math(Parser & p, ostream & os, unsigned flags, const mode_type mode)
                        os << "\\\\";
                }
 
+               else if (t.cs() == "vref" || t.cs() == "vpageref") {
+                       os << t.asInput();
+                       preamble.registerAutomaticallyLoadedPackage("varioref");
+               }
+
+               else if (t.cs() == "textipa") {
+                       os << t.asInput();
+                       preamble.registerAutomaticallyLoadedPackage("tipa");
+               }
+
                else
                        os << t.asInput();