} else if (tmptok == "Include") {
InsetCommandParams p("Include");
inset = new InsetInclude(p, buf);
+ } else if (tmptok == "Environment") {
+ lex.next();
+ inset = new InsetEnvironment(buf.params, lex.getString());
} else if (tmptok == "ERT") {
inset = new InsetERT(buf.params);
} else if (tmptok == "Tabular") {
//LyXLayout_ptr const & layout = tc.getEnv(name);
//header_ = layout->latexheader;
//footer_ = layout->latexfooter;
+ header_ = "\\begin{" + name + "}";
+ footer_ = "\\end{" + name + "}";
}
void InsetEnvironment::write(Buffer const * buf, ostream & os) const
{
- os << "Environment " << getInsetName() << "\"\n";
+ os << "Environment " << getInsetName() << "\n";
InsetCollapsable::write(buf, os);
}
* Full author contact details are available in file CREDITS
*/
-#ifndef InsetMinipage_H
-#define InsetMinipage_H
+#ifndef INSETMINIPAGE_H
+#define INSETMINIPAGE_H
#include "insetcollapsable.h"