From: Enrico Forestieri Date: Sun, 26 May 2019 11:06:44 +0000 (+0200) Subject: Prefer mathmode commands over textmode ones X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b2d9a004672920abb3fcdc0d211765adc0889637;p=features.git Prefer mathmode commands over textmode ones Translating → to \rightarrow in a \ce inset produces the right glyph. Instead, translating it to \textrightarrow produces a different glyph (β). --- diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp index 292556513d..504fab717b 100644 --- a/src/mathed/MathExtern.cpp +++ b/src/mathed/MathExtern.cpp @@ -1431,7 +1431,7 @@ void writeString(docstring const & s, WriteStream & os) docstring cmd; for (char_type c : s) { try { - Encodings::latexMathChar(c, false, os.encoding(), cmd, space); + Encodings::latexMathChar(c, true, os.encoding(), cmd, space); os << cmd; os.pendingSpace(space); } catch (EncodingException const & e) {