mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
If the "force" flag is in effect and a textmode command from the unicodesymbols
file is used, don't add the \lyxmathsym definition to the preamble if we already are in textmode. This hopefully smashes all weird cases. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26604 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8f76634f10
commit
d7daeb752e
@ -410,7 +410,8 @@ bool Encodings::latexMathChar(char_type c, bool mathmode,
|
||||
if (!encoding || command.empty()) {
|
||||
command = it->second.textcommand;
|
||||
addTextCmd(c);
|
||||
} else if (mathmode)
|
||||
}
|
||||
if (mathmode)
|
||||
addMathSym(c);
|
||||
}
|
||||
return use_math;
|
||||
@ -559,10 +560,6 @@ void Encodings::validate(char_type c, LaTeXFeatures & features, bool for_mathed)
|
||||
} else
|
||||
features.addPreambleSnippet(it->second.textpreamble);
|
||||
}
|
||||
if (for_mathed) {
|
||||
features.require("relsize");
|
||||
features.require("lyxmathsym");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (for_mathed && isMathSym(c)) {
|
||||
|
Loading…
Reference in New Issue
Block a user