[sage-devel] Re: latex function and operations with fraction subscripts

2022-07-18 Thread dmo...@deductivepress.ca
Thanks for reporting the unpickling issue. I opened trac ticket #34199 to address this. I posted a fix there that should solve the latex_name problem for you if you can rebuild sagemath from source, but I do not know much about pickling and I think this

[sage-devel] Re: latex function and operations with fraction subscripts

2022-07-10 Thread 'Markk' via sage-devel
Thanks, that does work. After (re-)implementing it I remembered why I didn't use latex_name--it doesn't seem to pickle: sage: logr = SR.symbol('logr', domain='complex', latex_name=r'L_{x/x_0}') : latex(logr) L_{x/x_0} sage: import pickle : path_name = '/home/mark/' :

[sage-devel] Re: latex function and operations with fraction subscripts

2022-07-07 Thread Samuel Lelievre
Note: also asked on Ask Sage: - Ask Sage question 63145 How do you define a symbol with a quotient in the subscript? https://ask.sagemath.org/question/63145 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and

[sage-devel] Re: latex function and operations with fraction subscripts

2022-07-07 Thread Emmanuel Charpentier
The /character cannot be part of a symbol’s name (not acepted by the Python interpreter). Try : sage: logr = SR.symbol("logr", latex_name='L_{x/x_0}') sage: x*logr logr*x sage: latex(x*logr) L_{x/x_0} x BTW (question of taste…), I’d rather use logr = SR.symbol("logr",

[sage-devel] Re: latex function and operations with fraction subscripts

2022-07-07 Thread Emmanuel Charpentier
the `/`character cannot be part of a symbol's name (not acepted by the Python interpreter). Try : ``` sage: logr = SR.symbol("logr", latex_name='L_{x/x_0}') sage: x*logr logr*x sage: latex(x*logr) L_{x/x_0} x ``` BTW (question of taste...), I'd rather use `logr = SR.symbol("logr",