}
usermacros.clear();
updateMacros();
- updateMacroInstances();
+ updateMacroInstances(InternalUpdate);
return res;
}
// fold macros if possible, still with parent buffer as the
// macros will be put in the prefix anyway.
- updateMacroInstances();
+ updateMacroInstances(OutputUpdate);
// There are a few differences between nice LaTeX and usual files:
// usual is \batchmode and has a
updateBuffer(UpdateMaster, OutputUpdate);
d->bibinfo_.makeCitationLabels(*this);
updateMacros();
- updateMacroInstances();
+ updateMacroInstances(OutputUpdate);
if (!only_body) {
os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
}
-void Buffer::updateMacroInstances() const
+void Buffer::updateMacroInstances(UpdateType utype) const
{
LYXERR(Debug::MACROS, "updateMacroInstances for "
<< d->filename.onlyFileName());
MacroContext mc = MacroContext(this, it);
for (DocIterator::idx_type i = 0; i < n; ++i) {
MathData & data = minset->cell(i);
- data.updateMacros(0, mc);
+ data.updateMacros(0, mc, utype);
}
}
}
// fix macros
updateMacros();
- updateMacroInstances();
+ updateMacroInstances(OutputUpdate);
// Plain text backend
if (backend_format == "text") {