Problem solved! Thank you very much!

Il giorno domenica 19 dicembre 2021 alle 21:55:55 UTC+1 
dmo...@deductivepress.ca ha scritto:

> Yes, this is the intended behaviour.  If you don't like it, then, as a 
> workaround, you could try to clear the variable called 
> "sage_configurable_latex_macros".  YMMV, but this works for me in a fresh 
> sage session:
>     sage: from sage.misc.latex_macros import sage_configurable_latex_macros
>     sage: global sage_configurable_latex_macros
>     sage: 
> sage_configurable_latex_macros.remove("\\newcommand{\\Bold}[1]{\\mathbf{#1}}")
> If I now type "html(x)", then the result is "<html>\[x\]</html>", instead 
> of "<html>\[\newcommand{\Bold}[1]{\mathbf{#1}}x\]</html>".
>
> If that gives errors due to a bad definition of "\\Bold", then maybe you 
> should also do:
>     sage: 
> sage_configurable_latex_macros.append("\\renewcommand{\\Bold}[1]{\\mathbf{#1}}")
>
> On Sunday, December 19, 2021 at 7:34:13 AM UTC-7 AlbertHilb wrote:
>
>> Hi all. 
>>
>> I noted every command LaTeX output is prefaced by the definition of a 
>> \Bold newcommand even if the \Bold command is not really used in the 
>> output.
>> For example, if I type "1" and press return I get
>>
>> \newcommand{\Bold}[1]{\mathbf{#1}}1
>>
>> Is this intended?
>>
>> Among other things, the presence of the newcommand definition prevent me 
>> from using KaTeX as LaTeX renderer because it complains \Bold command 
>> already exists and \renewcommand should be used to redefine it.
>>
>> I use SageMath 9.4 binary for Ubuntu 20.04 64 bit with jupyterlab 3.2.4 
>> as frontend.
>>
>>

-- 
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/05779db3-5581-4ac7-8212-4191f1f34078n%40googlegroups.com.

Reply via email to