+ if (!par_extra_stuff.empty())
+ cerr << "Bug: Ignoring par-level extra stuff '"
+ << par_extra_stuff << '\'' << endl;
+}
+
+
+void Context::begin_layout(ostream & os, Layout const * const & l)
+{
+ os << "\n\\begin_layout " << to_utf8(l->name()) << "\n";
+ if (!extra_stuff.empty()) {
+ os << extra_stuff;
+ }
+ if (!par_extra_stuff.empty()) {
+ os << par_extra_stuff;
+ par_extra_stuff.erase();
+ }
+ // FIXME: This is not enough for things like
+ // \\Huge par1 \\par par2
+ // FIXME: If the document language is not english this outputs a
+ // superflous language change. Fortunately this is only file format
+ // bloat and does not change the TeX export of LyX.
+ output_font_change(os, normalfont, font);