On Sat, Jun 25, 2016 at 10:54:10PM +0200, Enrico Forestieri wrote: > On Sat, Jun 25, 2016 at 02:19:36PM -0400, Scott Kostyshak wrote: > > > On Sat, Jun 25, 2016 at 12:38:14PM +0200, Enrico Forestieri wrote: > > > On Sat, Jun 25, 2016 at 10:23:57AM +0200, Scott Kostyshak wrote: > > > > > > > commit 3f9335548872c028fcc6eea9997040c500683b19 > > > > Author: Scott Kostyshak <skost...@lyx.org> > > > > Date: Sat Jun 25 03:26:16 2016 -0400 > > > > > > > > Change \it to \mathit in Math.lyx > > > > > > > > On TeX Live 2016, Math.lyx gives an error when compiling with > > > > pdflatex. On TeX Live 2015, Math.lyx compiles but the log gives the > > > > following warning: > > > > > > > > Usage of deprecated font command `\it'! > > > > > > Note that this is the output produced by maxima, which does use \it > > > instead of \mathit. Moreover, the formula is wrong as log(-1) should > > > really be log(4). > > > > Ah good to know. Do you think I should contact the maxima developers to > > make sure they are aware of the deprectation? > > Pavel did that already, apparently. > > > In the meantime, is the only thing we can do from a LyX perspective to > > document this issue in the CAS section? > > Please, try the attached patch, instead.
Tested and works well. I think you should commit (and add as a comment the link to the bug report that Pavel filed: https://sourceforge.net/p/maxima/bugs/3181/). Thanks, Scott > > -- > Enrico > diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp > index f3df8c8..b3443fa 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
signature.asc
Description: PGP signature