#include <config.h>
#include "tex2lyx.h"
+
#include "Context.h"
-#include "Layout.h"
#include "FloatList.h"
-#include "lengthcommon.h"
+#include "Layout.h"
+#include "Length.h"
+
#include "support/lstrings.h"
#include "support/convert.h"
#include "support/filetools.h"
-#include <boost/filesystem/operations.hpp>
#include <boost/tuple/tuple.hpp>
#include <iostream>
using support::contains;
using support::subst;
-namespace fs = boost::filesystem;
-
void parse_text_in_inset(Parser & p, ostream & os, unsigned flags, bool outer,
Context const & context)
opt1 + opt2 +
'{' + p.verbatim_item() + '}';
- if (opt2.empty()) {
- context.check_layout(os);
- begin_inset(os, "FormulaMacro");
- os << "\n" << ert;
- end_inset(os);
- } else
- // we cannot handle optional argument, so only output ERT
- handle_ert(os, ert, context);
+ context.check_layout(os);
+ begin_inset(os, "FormulaMacro");
+ os << "\n" << ert;
+ end_inset(os);
}
else if (t.cs() == "vspace") {