From b2d9a004672920abb3fcdc0d211765adc0889637 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 26 May 2019 13:06:44 +0200 Subject: [PATCH] Prefer mathmode commands over textmode ones MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Translating → to \rightarrow in a \ce inset produces the right glyph. Instead, translating it to \textrightarrow produces a different glyph (β). --- src/mathed/MathExtern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5