if (!encoding || command.empty()) {
command = it->second.textcommand;
addTextCmd(c);
- } else if (mathmode)
+ }
+ if (mathmode)
addMathSym(c);
}
return use_math;
{
CharInfoMap::const_iterator const end = unicodesymbols.end();
CharInfoMap::const_iterator it = unicodesymbols.begin();
- for (; it != end; ++it) {
+ for (combining = false; it != end; ++it) {
docstring const math = it->second.mathcommand;
docstring const text = it->second.textcommand;
if (math == cmd || text == cmd) {
} else
features.addPreambleSnippet(it->second.textpreamble);
}
- if (for_mathed) {
- features.require("relsize");
- features.require("lyxmathsym");
- }
}
}
if (for_mathed && isMathSym(c)) {