using std::endl;
using std::find;
-
+using std::string;
using std::list;
using std::ostream;
using std::ostringstream;
using std::set;
-LaTeXFeatures::LaTeXFeatures(Buffer const & b, BufferParams const & p)
- : buffer_(b), params_(p)
+LaTeXFeatures::LaTeXFeatures(Buffer const & b, BufferParams const & p, bool n)
+ : buffer_(b), params_(p), nice_(n)
{}
"prettyref",
"float",
"wasy",
- "dvipost"
+ "dvipost",
+ "fancybox",
+ "calc"
};
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
macros << mathcircumflex_def << '\n';
// other
- if (isRequired("NeedLyXMinipageIndent"))
- macros << minipageindent_def;
if (isRequired("ParagraphLeftIndent"))
macros << paragraphleftindent_def;
if (isRequired("NeedLyXFootnoteCode"))
tcpreamble << tclass[*cit]->preamble();
}
+ CharStyles::iterator cs = tclass.charstyles().begin();
+ CharStyles::iterator csend = tclass.charstyles().end();
+ for (; cs != csend; ++cs) {
+ if (isRequired(cs->name))
+ tcpreamble << cs->preamble;
+ }
+
return tcpreamble.str();
}