: layout(n, false), params(p)
{
// packages
+ array = false;
color = false;
graphics = false;
setspace = false;
}
void LaTeXFeatures::require(string const & name) {
- if (name == "color") {
+ if (name == "array") {
+ array = true;
+ } else if (name == "color") {
color = true;
} else if (name == "graphics") {
#ifdef USE_GRAPHICX
LyXTextClass const & tclass =
textclasslist.TextClass(params.textclass);
+ // array-package
+ if (array)
+ packages += "\\usepackage{array}\n";
+
// color.sty
if (color) {
if (params.graphicsDriver == "default")
}
+string LaTeXFeatures::getIncludedFiles()
+{
+ string sgmlpreamble;
+
+ for(FileMap::const_iterator fi=IncludedFiles.begin(); fi != IncludedFiles.end(); ++fi)
+ sgmlpreamble += "\n<!entity " + fi->first + " system \"" + fi->second + "\">";
+
+ return sgmlpreamble;
+}
+
+
void LaTeXFeatures::showStruct() {
lyxerr << "LyX needs the following commands when LaTeXing:"
<< "\n***** Packages:" << getPackages()