extractSums(ar);
extractNumbers(ar);
extractMatrices(ar);
+ extractFunctions(ar, kind);
if (kind != MATHML && kind != HTML) {
- extractFunctions(ar, kind);
extractDets(ar);
extractDiff(ar);
extractExps(ar);
{
MathData ar = dat;
extractStructure(ar, MATHML);
- if (ar.size() == 0) {
- if (!os.inText())
- os << "<mrow/>";
- } else if (ar.size() == 1)
+ if (ar.size() == 0)
+ os << "<mrow/>";
+ else if (ar.size() == 1)
os << ar.front();
else {
- if (!os.inText())
- os << MTag("mrow");
+ os << MTag("mrow");
for (MathData::const_iterator it = ar.begin(); it != ar.end(); ++it)
(*it)->mathmlize(os);
- if (!os.inText())
- os << ETag("mrow");
+ os << ETag("mrow");
}
}
}
// run external sript
- string out = captureOutput(file.absFilename(), data);
+ string out = captureOutput(file.absFileName(), data);
MathData res;
mathed_parse_cell(res, from_utf8(out));
return res;