]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathParser.cpp
Add support for feyn package and Diagram inset.
[features.git] / src / mathed / MathParser.cpp
index 1803da7f3a217917912e1989bf0b2bfb2e37eea4..c4fad04b46838467b835e8eb9a2be11d58d526d0 100644 (file)
@@ -1727,6 +1727,14 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                delEmptyLastRow(subgrid);
                }
 
+               else if (t.cs() == "Diagram") {
+                       odocstringstream os;
+                       while (good() && nextToken().cat() != catBegin)
+                               os << getToken().asInput();
+                       cell->push_back(createInsetMath(t.cs() + os.str(), buf));
+                       parse2(cell->back(), FLAG_ITEM, mode, false);
+               }
+
                else if (t.cs() == "framebox" || t.cs() == "makebox") {
                        cell->push_back(createInsetMath(t.cs(), buf));
                        parse(cell->back().nucleus()->cell(0), FLAG_OPTION, InsetMath::TEXT_MODE);