ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 23 Nov 2021 23:58:29 +0100displaysing show(f) in some colorhttps://ask.sagemath.org/question/59912/displaysing-showf-in-some-color/ hi
i type this :
f(x,y)=(x+y)^3+x+y
show("f",f)
i would like the "f" to be displayed in some color
is it possible to do it ?
i've searched a lot with jsmaths, latex(), html(), text(), view() but, for different reasons nothing seems to answer to my question
thanks
VincentTue, 23 Nov 2021 14:32:09 +0100https://ask.sagemath.org/question/59912/displaysing-showf-in-some-color/Answer by rburing for <p>hi</p>
<p>i type this :</p>
<pre><code>f(x,y)=(x+y)^3+x+y
show("f",f)
</code></pre>
<p>i would like the "f" to be displayed in some color</p>
<p>is it possible to do it ?</p>
<p>i've searched a lot with jsmaths, latex(), html(), text(), view() but, for different reasons nothing seems to answer to my question</p>
<p>thanks</p>
<p>Vincent</p>
https://ask.sagemath.org/question/59912/displaysing-showf-in-some-color/?answer=59927#post-id-59927Like this:
html(r"$\color{blue}{" + latex(f) + r"}$")Tue, 23 Nov 2021 23:58:29 +0100https://ask.sagemath.org/question/59912/displaysing-showf-in-some-color/?answer=59927#post-id-59927