Hi Robert, Sorry for long delay, I was troubled by other things.
Thanks a lot for the great solution, I tried your code and it works well for most cases, except some corner cases, which is not caused by your function actually: 1. Greek letters Most Greek letters do not work: tex(%beta); $${\it \%beta}$$ tex(superq(%beta)); $${\it \%beta}$$ While a few special Greek letters like Pi works: tex(%pi); $$\pi$$ tex(superq(%pi)); $$\pi$$ The demo patch attached 0001-alpha.diff fixed the problem for me, should I submit a full patch to update all Greek letters? 2. Some math functions like Sum / Product / Integrate / etc Some functions do not work: tex(sum(x^2, x, a, b)); $$\sum_{x=a}^{b}{x^2}$$ tex(superq(sum(x^2, x, a, b))); $${\it sum}\left(x^2 , x , a , b\right)$$ While some functions work: tex(abs(5)); $$5$$ tex(superq(abs(5))); $$\left| 5\right| $$ I guess the right fix should be inside src/mactex.lisp as well? BTW, thanks for the suggestion about 100k dataset, it's a good candidate, I'll catch up and update later. Cheers! -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
diff --git a/src/mactex.lisp b/src/mactex.lisp index 0c39ae5..13daa52 100644 --- a/src/mactex.lisp +++ b/src/mactex.lisp @@ -496,6 +496,7 @@ (defprop $xi "\\xi" texword) (defprop $omicron " o" texword) (defprop $%pi "\\pi" texword) +(defprop $%alpha "\\alpha" texword) (defprop $pi "\\pi" texword) (defprop $rho "\\rho" texword) (defprop $sigma "\\sigma" texword)