From: Enrico Forestieri Date: Sun, 26 Jun 2016 11:22:44 +0000 (+0200) Subject: Tweak output from maxima X-Git-Tag: 2.3.0alpha1~1401^2 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3c6f2427c35064cd248ed2ca0482e6ea30b4d609;p=features.git Tweak output from maxima Maxima uses \it as a markup for multiletter variables. However, it has been reported that since texlive 2016 using \it in math mode produces an error, even though I was not able to reproduce. Anyway, this can be avoided by replacing the old-style construct "{\it ...}" with the new-style one "\mathit{...}". The problem has also been reported upstream: https://sourceforge.net/p/maxima/bugs/3181/ but this workaround will hold whatever the resolution. --- diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp index f3df8c884e..b3443fa919 100644 --- a/src/mathed/MathExtern.cpp +++ b/src/mathed/MathExtern.cpp @@ -1106,7 +1106,7 @@ namespace { if (tmp.size() < 2) return MathData(); - out = subst(tmp[1], "\\>", string()); + out = subst(subst(tmp[1], "\\>", string()), "{\\it ", "\\mathit{"); lyxerr << "output: '" << out << "'" << endl; // Ugly code that tries to make the result prettier