On 1/27/12 1:39 PM, LFS wrote:
Yeah - thot that might be cryptic after I posted. Hard to write in
this forum. Editors tend to try to "help" you.
I would NOT worry unless someone else complains since:
* I have been moving stuff from the sagenb site to the canterbury site
and now back again. Each has different editors. The canterbury editor
has limited html options.
* I tend to "color" my text using<span>  tags. The canterbury site had
some problems with that (e.g. it would ignore a<span>  tag followed by
a<strong>  tag).
* I am working with vectors and the (now standard) notation for
vectors is using<a,b,c>  and of course html uses<  and>  as tags.
* I am an interminable reviser which drives editors crazy.
=========
Anyway what happened is:<span>  tags were added  inside  the mathjax
code:

Example: $x=2$  became $x<span>=2$.

jsmath would ignore this "addition" and process, mathjax would not.
You could not see this addition in the editor, only in the html and of
course my latex was much, much more complex than this example ....


I'm trying to understand. So someone (not sage notebook) was adding a <span> to the tex? Well, if I typed $x<span>=2$, I'd expect it to be interpreted as x less than span greater than equal 2. If you want to color output, I think using the latex color package inside the dollar signs (which is supposed to be latex) would be better.


=====
This MAY have been the ONLY problem, but (a) I don't know when they
got added and (b) other "editing" was happening.
=====
For sure, the test.sagenb editor does this:
For<, I always write \lt which is latex for the less than symbol. The
editor changes this to&lt; which is html for this symbol.
> Arrays in latex have&  between the elements in a row. The editor
> changes this to&amp;

When I type $x\lt y$ in a text cell, then look at the html by clicking on the "Edit" button on the right side of the worksheet, I see:

<p>$x\lt y$</p>

When I type

<p>$\begin{matrix} 3 &amp; 4 \\ 5 &amp; 6\end{matrix}$</p>

But that's okay; Mathjax correctly recognizes &amp; as a latex &. In fact, that is what has to happen, since the browser will get confused with the & if that occurs in the html.


=====
However, these replacements seem to work in mathjax, but I really wish
editors did not want to help me :)

It sounds like you may want to either click on the HTML button in the editor, or just go to the "edit" view of the worksheet that lets you just type in straight html. Then no editor is getting in the way.

But be aware that you have to encode ampersands as &amp; and < as &lt; (or \lt, of course), since otherwise the browser will get all confused when trying to render the html.

Thanks,

Jason

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to