namespace fs = boost::filesystem;
+LayoutPtr captionlayout;
// Hacks to allow the thing to link in the lyxlayout stuff
LyXErr lyxerr(std::cerr.rdbuf());
stringstream ss;
TextClass textclass = parse_preamble(p, ss, documentclass);
+ captionlayout = LayoutPtr(Layout::forCaption());
active_environments.push_back("document");
Context context(true, textclass);