}
-void MathMacro::Write(ostream & os)
+void MathMacro::Write(ostream & os, signed char fragile)
{
if (tmplate->flags & MMF_Exp) {
lyxerr[Debug::MATHED] << "Expand " << tmplate->flags
<< ' ' << MMF_Exp << endl;
tmplate->update(this);
- tmplate->Write(os);
+ tmplate->Write(os, fragile);
} else {
if (tmplate->flags & MMF_Env) {
os << "\\begin{"
for (int i = 0; i < nargs; ++i) {
array = args[i].array;
- MathParInset::Write(os);
+ MathParInset::Write(os, fragile);
if (i < nargs - 1)
os << "}{";
}
}
-void MathMacroArgument::Write(ostream & os)
+void MathMacroArgument::Write(ostream & os, signed char fragile)
{
if (expnd_mode) {
- MathParInset::Write(os);
+ MathParInset::Write(os, fragile);
} else {
os << '#' << number << ' ';
}
}
-void MathMacroTemplate::WriteDef(ostream & os)
+void MathMacroTemplate::WriteDef(ostream & os, signed char fragile)
{
os << "\n\\newcommand{\\" << name << "}";
for (int i = 0; i < nargs; ++i) {
args[i].setExpand(false);
}
- Write(os);
+ Write(os, fragile);
os << "}\n";
}