]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/math.C
add config.h
[lyx.git] / src / tex2lyx / math.C
index 7a883d928b21a4b814289c6ce53c84af822d86af..7e03031872761828328c8b50acd89a51dff519e8 100644 (file)
@@ -16,6 +16,9 @@
 
 #include <iostream>
 
+
+namespace lyx {
+
 using std::cerr;
 using std::endl;
 
@@ -185,6 +188,17 @@ void parse_math(Parser & p, ostream & os, unsigned flags, const mode_type mode)
                        os << '}';
                }
 
+               else if (t.cs() == "tag") {
+                       os << '\\' << t.cs();
+                       if (p.next_token().asInput() == "*") {
+                               p.get_token();
+                               os << '*';
+                       }
+                       os << '{';
+                       parse_math(p, os, FLAG_ITEM, MATHTEXT_MODE);
+                       os << '}';
+               }
+
                else if (t.cs() == "mbox" || t.cs() == "fbox") {
                        os << "\\" << t.cs() << '{';
                        parse_math(p, os, FLAG_ITEM, MATHTEXT_MODE);
@@ -226,3 +240,6 @@ void parse_math(Parser & p, ostream & os, unsigned flags, const mode_type mode)
 
 
 // }])
+
+
+} // namespace lyx