+ nullptr, from_utf8(macro));
+ if (!extra.empty() || !htmlname.empty() || !xmlname.empty() || !required.empty()) {
+ MathWordList::iterator wit = theMathWordList.find(it->first);
+ if (wit != theMathWordList.end())
+ LYXERR(Debug::MATHED, "readSymbols: inset "
+ << to_utf8(it->first) << " already exists.");
+ else {
+ latexkeys tmp;
+ tmp.inset = "macro";
+ tmp.name = it->first;
+ tmp.extra = from_utf8(extra);
+ tmp.htmlname = from_utf8(htmlname);
+ tmp.xmlname = from_utf8(xmlname);
+ if (required == "hiddensymbol") {
+ required = "";
+ tmp.hidden = hidden = true;
+ } else
+ tmp.required = required;
+ theMathWordList[it->first] = tmp;
+ wit = theMathWordList.find(it->first);
+ it->second.setSymbol(&(wit->second));
+ }
+ }