commit b3db2325ed7de33671758ee7ddcc6cb9d21680c5
Author: Enrico Forestieri <[email protected]>
Date: Sun May 26 13:06:44 2019 +0200
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 (β).
---
src/mathed/MathExtern.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp
index 2925565..504fab7 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) {