// packages
array = false;
color = false;
- graphics = false;
+ graphics = false; // INSET_GRAPHICS: remove this when InsetFig is thrown.
+ graphicx = false;
setspace = false;
makeidx = false;
verbatim = false;
} else if (name == "color") {
color = true;
} else if (name == "graphics") {
-#ifdef USE_GRAPHICX
graphicx = true;
-#else
- graphics = true;
-#endif
+ graphics = true;// INSET_GRAPHICS: remove this when InsetFig is thrown.
} else if (name == "setspace") {
setspace = true;
} else if (name == "makeidx") {
packages += "\\makeindex\n";
}
+ // graphicx.sty
+ if (graphicx && params.graphicsDriver != "none") {
+ if (params.graphicsDriver == "default")
+ packages += "\\usepackage{graphicx}\n";
+ else
+ packages += "\\usepackage["
+ + params.graphicsDriver + "]{graphicx}\n";
+ }
+
+ // INSET_GRAPHICS: remove this when InsetFig is thrown.
// graphics.sty
if (graphics && params.graphicsDriver != "none") {
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 + "\">";
+ FileMap::const_iterator end = IncludedFiles.end();
+ for(FileMap::const_iterator fi=IncludedFiles.begin(); fi != end; ++fi)
+ sgmlpreamble += "\n<!entity " + fi->first
+ + " system \"" + fi->second + "\">";
return sgmlpreamble;
}