rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

Uncompilable TeX output #2065

Open rtoy opened 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-05 17:42:22 Created by hajaju on 2016-06-25 18:01:08 Original: https://sourceforge.net/p/maxima/bugs/3181


If I let maxima solve powerseries(-log(5-x),x,1) the latex output use "\it" primitive. TeX Live 15 will compile, but warn about usage of deprecated font command. Tex Live 16 will produce error. I believe \mathit should be used.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-05 17:42:23 Created by l_butler on 2016-06-25 19:25:28 Original: https://sourceforge.net/p/maxima/bugs/3181/#7791


In fact, a simpler example is

tex(xx);
$${\it xx}$$

The function tex-stripdollar is responsible for adding that \it. I don't think it should be inserting any typesetting instructions as mathmode has its own typesetting conventions in TeX.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-05 17:42:26 Created by hajaju on 2016-06-27 16:35:50 Original: https://sourceforge.net/p/maxima/bugs/3181/#dea5


Meanwhile we figured out that the issue is not generic. The error in texlive appears only in case of using KOMA-Script classes.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-05 17:42:30 Created by robert_dodier on 2016-06-28 20:08:52 Original: https://sourceforge.net/p/maxima/bugs/3181/#ed2c


rtoy commented 3 months ago

Imported from SourceForge on 2024-07-05 17:42:33 Created by robert_dodier on 2016-06-28 20:08:52 Original: https://sourceforge.net/p/maxima/bugs/3181/#c1fa


OP reports that the problem is in TeX Live, therefore I'm closing this as "won't fix".

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-05 17:42:37 Created by robert_dodier on 2016-06-28 20:13:21 Original: https://sourceforge.net/p/maxima/bugs/3181/#7791/d283


$$xx$$ is typeset like two x symbols, while $${\whatever xx}$$ is typeset as a word xx (where whatever is it or anything else).

It would probably be a good idea to make the output of tex more easily configurable. I toyed with the idea of a TeX flavor system some time ago, but I was never able to come to any conclusions. Ideas about how to make it work are welcome.