os << "}\n";
texrow.newline();
}
- if (use_geometry || nonstandard_papersize) {
+ if (!tclass.provides("geometry")
+ && (use_geometry || nonstandard_papersize)) {
odocstringstream ods;
if (!getGraphicsDriver("geometry").empty())
ods << getGraphicsDriver("geometry");
}
if (package == Encoding::CJK || features.mustProvide("CJK")) {
if (language->encoding()->name() == "utf8-cjk"
- && features.isAvailable("CJKutf8"))
+ && LaTeXFeatures::isAvailable("CJKutf8"))
os << "\\usepackage{CJKutf8}\n";
else
os << "\\usepackage{CJK}\n";
break;
case Encoding::CJK:
if (encoding().name() == "utf8-cjk"
- && features.isAvailable("CJKutf8"))
+ && LaTeXFeatures::isAvailable("CJKutf8"))
os << "\\usepackage{CJKutf8}\n";
else
os << "\\usepackage{CJK}\n";