trackChanges = false;
outputChanges = false;
use_default_options = true;
+ maintain_unincluded_children = false;
secnumdepth = 3;
tocdepth = 3;
language = default_language;
readRemovedModules(lex);
} else if (token == "\\begin_includeonly") {
readIncludeonly(lex);
+ } else if (token == "\\maintain_unincluded_children") {
+ lex >> maintain_unincluded_children;
} else if (token == "\\options") {
lex.eatLine();
options = lex.getString();
os << *it << '\n';
os << "\\end_includeonly" << '\n';
}
+ os << "\\maintain_unincluded_children "
+ << convert<string>(maintain_unincluded_children) << '\n';
// local layout information
if (!local_layout.empty()) {
writeEncodingPreamble(os, features, texrow);
// includeonly
- if (!includedChildren_.empty()) {
+ if (!features.runparams().includeall && !includedChildren_.empty()) {
os << "\\includeonly{";
list<string>::const_iterator it = includedChildren_.begin();
bool first = true;