#include <config.h>
+#include "Preamble.h"
#include "tex2lyx.h"
#include <iostream>
}
+bool is_display_math_env(string const & name)
+{
+ CommandMap::const_iterator it = known_math_environments.find(name);
+ if (it != known_math_environments.end())
+ if (!it->second.empty())
+ return it->second.back() == displaymath;
+ return false;
+}
+
+
void parse_math(Parser & p, ostream & os, unsigned flags, const mode_type mode)
{
while (p.good()) {
else if (t.cat() == catComment) {
if (!t.cs().empty())
- cerr << "Ignoring comment: " << t.asInput();
+ os << t.asInput();
else
// "%\n" combination
p.skip_spaces();
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();