// float.sty
// natbib.sty
- if (isRequired("natbib")) {
+ if (isRequired("natbib") && ! tclass.provides(LyXTextClass::natbib)) {
packages << "\\usepackage[";
if (params.use_numerical_citations) {
packages << "numbers";
// other
if (isRequired("NeedLyXMinipageIndent"))
macros << minipageindent_def;
- if (isRequired("ParagraphIndent"))
- macros << paragraphindent_def;
+ if (isRequired("ParagraphLeftIndent"))
+ macros << paragraphleftindent_def;
if (isRequired("NeedLyXFootnoteCode"))
macros << floatingfootnote_def;
// floats
getFloatDefinitions(macros);
+ return macros.str().c_str();
+}
+
+
+string const LaTeXFeatures::getBabelOptions() const
+{
+ ostringstream tmp;
+
for (LanguageList::const_iterator cit = UsedLanguages.begin();
cit != UsedLanguages.end(); ++cit)
if (!(*cit)->latex_options().empty())
- macros << (*cit)->latex_options() << '\n';
+ tmp << (*cit)->latex_options() << '\n';
if (!params.language->latex_options().empty())
- macros << params.language->latex_options() << '\n';
+ tmp << params.language->latex_options() << '\n';
- return macros.str().c_str();
+ return tmp.str().c_str();
}
set<string>::const_iterator cit = layout.begin();
set<string>::const_iterator end = layout.end();
for (; cit != end; ++cit) {
- tcpreamble << tclass[*cit].preamble();
+ tcpreamble << tclass[*cit]->preamble();
}
return tcpreamble.str().c_str();