[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Thanks! Both of these tips are very important to me so extra thanks. Linda -- 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
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Found problem. The mathjax works great if all equations are properly input! However in sage editor, if you have an open span tag and you edit before the end /span tag, it will sometimes do a dreamweaver thing of closing the spantag and reopening it. You cannot see this in the editor. This may happen even if you are inside jsmath / mathjax delimiters. So then you get span tags INSIDE your equation. In jsmath, this still renders properly, in mathjax it does not. Recommendation: Do not edit equations in editor. ALWAYS edit in html mode. (I have had similar problem in wikispaces too.) -- 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
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Just adding one more comment for search purposes: If you see your equation being cut off from text field into sage field, it means your translator is using 3 braces in a row {{{ Sage interprets {{{ as the beginning of a sage field. So check your translation. I had this problem using my equation editor mathjax translator. I FINALLY figured out the problem. It had translated the arc length function as sqrt {{{\dot x}^2} + {{\dot y}^2} + {{\dot z}^2}} . Notice the 3 braces in a row. -- 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
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
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 usingspan tags. The canterbury site had some problems with that (e.g. it would ignore aspan tag followed by astrong tag). * I am working with vectors and the (now standard) notation for vectors is usinga,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 $xspan=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 $xspan=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 tolt; which is html for this symbol. Arrays in latex have between the elements in a row. The editor changes this toamp; 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
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
On 1/28/12 4:56 AM, LFS wrote: Just adding one more comment for search purposes: If you see your equation being cut off from text field into sage field, it means your translator is using 3 braces in a row {{{ Sage interprets {{{ as the beginning of a sage field. So check your translation. I had this problem using my equation editor mathjax translator. I FINALLY figured out the problem. It had translated the arc length function as sqrt {{{\dot x}^2} + {{\dot y}^2} + {{\dot z}^2}} . Notice the 3 braces in a row. Yes; this has bit me before too. Putting a space between two of the braces works, IIRC. By the way, earlier today I was looking at your worksheets, and they look fantastic! I did note on one worksheet that you defined a vector-valued function like this: r=vector((t,t^2,t^3)). You can also define a vector-valued function like this: r(t)=(t,t^2,t^3). 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
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
On 1/27/12 8:34 AM, LFS wrote: Hiya - we are looking at an array inside big left brace ... On my wikispaces page (you have to open the + details ...), big brace renders properly. http://sagemath.wikispaces.com/Surface+integral+function However On the sagenb page, you get encoding problems: http://sagenb.org/home/pub/4147/ (you get top, middle and bottom; sometimes you lose these too). Couple of ideas (caveat: I know NOTHING, please forgive if stupid). Latest mathjax hub thing not done. Encoding problem. Mathjax is not used on sagenb.org (jsmath is there), but it *is* experimentally used on test.sagenb.org. Can you try on test.sagenb.org? 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
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Hiya Jason Thanks Jason for reply! http://test.sagenb.org/home/pub/27 Everything seems to work fine. However, I had to go into the html and fix it a zillion times. I highly recommend keeping the html as simple as possible and always COPYING IT (not the WYSIWYG since sagenb editor seems to add tags that mathjax cannot understand (and you don't see here, but do see in the html)). On Jan 27, 4:04 pm, Jason Grout jason-s...@creativetrax.com wrote: On 1/27/12 8:34 AM, LFS wrote: Hiya - we are looking at an array inside big left brace ... On my wikispaces page (you have to open the + details ...), big brace renders properly. http://sagemath.wikispaces.com/Surface+integral+function However On the sagenb page, you get encoding problems:http://sagenb.org/home/pub/4147/ (you get top, middle and bottom; sometimes you lose these too). Couple of ideas (caveat: I know NOTHING, please forgive if stupid). Latest mathjax hub thing not done. Encoding problem. Mathjax is not used on sagenb.org (jsmath is there), but it *is* experimentally used on test.sagenb.org. Can you try on test.sagenb.org? 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
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
On 1/27/12 11:11 AM, LFS wrote: Hiya Jason Thanks Jason for reply! http://test.sagenb.org/home/pub/27 Everything seems to work fine. However, I had to go into the html and fix it a zillion times. I highly recommend keeping the html as simple as possible and always COPYING IT (not the WYSIWYG since sagenb editor seems to add tags that mathjax cannot understand (and you don't see here, but do see in the html)). I don't understand what you mean in those last few sentences. Can you give an example of what was happening? 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
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
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 $xspan=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 = 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; = However, these replacements seem to work in mathjax, but I really wish editors did not want to help me :) Best, Linda On Jan 27, 7:55 pm, Jason Grout jason-s...@creativetrax.com wrote: On 1/27/12 11:11 AM, LFS wrote: Hiya Jason Thanks Jason for reply! http://test.sagenb.org/home/pub/27 Everything seems to work fine. However, I had to go into the html and fix it a zillion times. I highly recommend keeping the html as simple as possible and always COPYING IT (not the WYSIWYG since sagenb editor seems to add tags that mathjax cannot understand (and you don't see here, but do see in the html)). I don't understand what you mean in those last few sentences. Can you give an example of what was happening? 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