lex.setFile(filename);
while (lex.isOK() && lex.next()) {
latexkeys tmp;
- string xmlname;
tmp.name = lex.getString();
if (lex.next())
tmp.token = tokenEnum(lex.getString());
if (lex.next())
tmp.type = lex.getString();
if (lex.next())
- xmlname = lex.getString();
+ tmp.xmlname = lex.getString();
if (theWordList.find(tmp.name) != theWordList.end())
lyxerr << "readSymbols: token " << tmp.name
<< " already exists.\n";
unsigned char latex_font_id;
///
string type;
+ ///
+ string xmlname;
};
void MathSymbolInset::mathmlize(MathMLStream & os) const
{
char const * type = MathMLtype(sym_->type);
- os << '<' << type << "> " << name().c_str() << " </" << type << '>';
+ os << '<' << type << "> ";
+ if (sym_->xmlname == "x") // unknown so far
+ os << name().c_str();
+ else
+ os << sym_->xmlname.c_str();
+ os << " </" << type << '>';
}