From f836783908a083cad9898a21937bc5294d0669c1 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 24 Mar 2019 17:28:01 +0100 Subject: [PATCH] Fix bug #11526 Correctly categorize a textmode symbol in mathed. (cherry picked from commit c2af2cfd94dc3ff83b0e8cfaef4bfaf8768b6d08) --- src/Encoding.cpp | 3 ++- status.23x | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Encoding.cpp b/src/Encoding.cpp index 96e35ecbb7..35a93b40ec 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -306,10 +306,11 @@ bool Encodings::latexMathChar(char_type c, bool mathmode, if (!encoding || command.empty()) { command = it->second.textcommand(); needsTermination = !it->second.textnotermination(); - addTextCmd(c); } if (mathmode) addMathSym(c); + else + addTextCmd(c); } return use_math; } diff --git a/status.23x b/status.23x index 29f9d20add..bfd25c1036 100644 --- a/status.23x +++ b/status.23x @@ -102,6 +102,9 @@ What's new - Correctly add the branch name suffix when the stem of the filename contains a dot (bug 11490). +- Load required packages to correctly typeset unicode symbols entered + in math mode (bug 11526). + * USER INTERFACE