"\\DeclareRobustCommand{\\textcyr}[1]{\\leavevmode{\\cyrtext #1}}\n"
"\\DeclareFontEncoding{T2A}{}{}\n";
-static string const mathsym_def =
- "\\DeclareRobustCommand{\\mathsym}[1]{%\n"
+static string const lyxmathsym_def =
+ "\\DeclareRobustCommand{\\lyxmathsym}[1]{%\n"
" \\begingroup\n"
" \\edef\\b@ld{bold}%\n"
" \\def\\rmorbf##1{\\ifx\\math@version\\b@ld\\textbf{##1}\\else\\textrm{##1}\\fi}%\n"
if (mustProvide("textcyr"))
macros << textcyr_def << '\n';
- if (mustProvide("mathsym"))
- macros << mathsym_def << '\n';
+ if (mustProvide("lyxmathsym"))
+ macros << lyxmathsym_def << '\n';
// quotes.
if (mustProvide("quotesinglbase"))
if (char_ >= 0x80) {
encodings.validate(char_, features);
features.require("relsize");
- features.require("mathsym");
+ features.require("lyxmathsym");
}
}
docstring::const_iterator cit = str_.begin();
docstring::const_iterator end = str_.end();
- bool in_mathsym = false;
+ bool in_lyxmathsym = false;
while (cit != end) {
char_type const c = *cit;
try {
if (c < 0x80) {
- if (in_mathsym) {
+ if (in_lyxmathsym) {
os << '}';
- in_mathsym = false;
+ in_lyxmathsym = false;
}
os << docstring(1, c);
} else if (can_encode) {
- if (!in_mathsym) {
- os << "\\mathsym{";
- in_mathsym = true;
+ if (!in_lyxmathsym) {
+ os << "\\lyxmathsym{";
+ in_lyxmathsym = true;
}
os << encit->latexChar(c, true);
} else {
}
++cit;
}
- if (in_mathsym)
+ if (in_lyxmathsym)
os << '}';
}