On Mon 07 Apr 2014 03:34:40 PM SGT, P Purkayastha wrote:
It depends on how Sage presents the latex in the HTML code. Mathjax
does not parse all latex code. It only parses those that are in a
special <span> or <div>.

One way to get Sage to pass on the latex within the specific <span> or
<div> is to make the string a "LatexExpr" string.


Sorry, I should have checked before mailing. Sage passes on the latex in a <script> tag. And MathJax generates the required <span> or <div>. You can look at methods and classes in the file "sage.misc.latex??" to see what is generated.



On Mon 07 Apr 2014 03:07:06 PM SGT, Dominique Laurain wrote:
I don't know so much about cell display in SAGE cloud...but I guess...
there are step s:
1. cell content in ASCII raw text is processed by Tex
2. tex content is then displayed by Mathjax

I am sure about Mathjax because I can  mouse right button click on the
displayed matrix in my browser (currently Chrome) and I get
one menu about Mathjax renderer (can be HTML-CSS, Mathml or SVG ; I
cannot use MathMl because my browser has not brwser extension to
display mathml ; SVG is my default display)

With the menu "show math as / tex commands" I get :

{x= \left(\begin{array}{rr}
1 & 2 \\
3 & 4
\end{array}\right)}

That means that default commands (set by new command) have been
already parsed by Tex before send to Mathjax.

I can advice you to check is your browser can parse Mathjax commands
: go to URL www.mathjax.org with your browser, to check if you have
nice display

 of math upper right in the windo w. If not, check Javascript is ok.


If ok, then try to use various things in the SAGE cloud : first try to
process a TEX file ; second search in one terminal is tex working for
your projects; third, use the %latex tag in one cell

--
You received this message because you are subscribed to a topic in the
Google Groups "sage-support" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/sage-support/1vtfecpnDJ0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
sage-support+unsubscr...@googlegroups.com
<mailto:sage-support+unsubscr...@googlegroups.com>.
To post to this group, send email to sage-support@googlegroups.com
<mailto:sage-support@googlegroups.com>.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.




--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to