On Sun, Jun 26, 2022 at 1:42 AM Eric Gourgoulhon <egourgoul...@gmail.com> wrote: > > Le samedi 25 juin 2022 à 17:31:10 UTC+2, wst...@gmail.com a écrit : >> >> > There is some issue in the latex display of manifold maps: >> > ParseError: KaTeX parse error: Undefined control sequence: \mbox at >> > position 96: …thbb{E}^{2} \\ \̲m̲b̲o̲x̲{on}\ A : & \ph… >> >> Thanks -- I've created this issue in case you're curious about the situation: >> >> https://github.com/sagemathinc/cocalc/issues/6019 >> >> In particular, I think it would be better if the latex representation >> output by sage manifolds used "\text{on}" instead of "\mbox{on}"; >> however, I'll add a workaround in CoCalc so that isn't necessary. > > > IIRC, I used \mbox instead of \text because \mbox is plain LaTeX, while \text > requires the package amstext, so I naively thought that \mbox was more > robust. The katex example shows that it is rather the converse. So yes, we > may change \mbox to \text. Note that \mbox is quite heavily used in all Sage: > running
I think what happened is that the problem \mbox tries to solve is solved in a slightly better way by other commands like \text. As a result katex only implemented the better solution. Your reasoning to use \mbox instead \of text might be a reasonable argument for keeping the current behavior in Sage, despite this annoying katex situation. Regarding CoCalc, yesterday I added an alias so that now our katex rendering works with \mbox (it just sets \mbox to \text), so these sage manifolds notebooks all look fine now. William > grep -r '\\mbox' > from src/sage returns 206 lines, among which 34 in src/sage/manifolds. > > Eric. > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/c103e430-0e8f-4780-a5de-47c5398d7446n%40googlegroups.com. -- William (http://wstein.org) -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CACLE5GAfCGT7NdhPhJrDJMu0gSYEXgWDg3FCgp3kDrDQL0Vbtg%40mail.gmail.com.