Hi Jose! Thanks much for that update. I did read the help on the notebook() page and it answered my evaluate-immediately query (Shift-Enter) and I think your new worksheet has answered the pretty-text-in-between-cells question. From here I think its mostly a matter of trial and error and experimenting with other people's notebooks.
You're right, my new first impression of Sage is that it is right on the cusp of being a real serious competitor to Maple et al, and to things like Enthought's EPD for a generic math-ready python distro. My first first impression on v1 of Sage was that it needed another commercial package along side it, but now it looks like Sage will have all of the other capabilities natively. Thanks again, J On Mar 23, 10:26 am, Jose Guzman <[email protected]> wrote: > Hi J Elaych, > > I am the author of the mentioned worksheet > (http://sagenb.com/home/pub/365/). You can check the new version here : > (http://sagenb.org/home/pub/398/) the old one was full of awful > mistakes, it was for simply testing purposes. I know some C and Python, > etc..., but I am a completely sage newbie and have myself little > experience with any mathematics computing environment (I hope this will > change with Sage, such a nice software!!!!). I had the same hard time > trying to figure out how the notebook() and some general principles of > Sage work, however, it came out to be generally very intuitive (still > far away of being an advanced user). > > For LaTeX typesetting what I do is simply the following (I assume > you're in notebook mode). > > Version 3.2 or below of Sage > in the worksheet of interest you you can edit html code by clicking in > the big blue "Edit" button (up, just after the blue "worksheet" button). > There you will get a source code form where find that you can simply > type html code between the {{{id=x ///}}} statements (which are indeed > the sagecells). To add LaTeX to your html code just type the LaTeX > formula between $ symbols, for example to type the solution to a second > degree equation type > > $x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ > > Versions 3.3 or above. > Double click on the text, or just shift+click when the blue line > appears bellow the cell to create a new text block (remember, generally > above a Sage Cell). This will make a small html editor of the type ' > what you see is what you type" or similar. (TinyCE I think is the > name). There, just apply the same method. Write your text (now you do > not need to edit in html format any more) and edit your formulas with > between $ symbols. > > I have the same feeling that there is a little or no documentation to > explain the basic Sage for the newcomer, my recommendation is to follow > this list. This list will provide you with a full source of tips and > tricks and people here are really ready to help (thank you guys!!!!). In > any case, once I am familiar with Sage I am planning to give a course an > introductory sage course in my department to persuade my colleagues to > move from mathematica to sage. Just let me know if I can help you, my > email is just written in the worksheet. > > all the best! > > Jose. > > J Elaych wrote: > > It takes quite a while to learn how to use the notebook just by > > googling around (search google for 'sage %hide' for instance) so I > > hope someone can point me in a better direction. > > > One simple thing I would like to be able to do is to enter a bunch of > > forumula's, say integrals or ODEs, at the very beginning of my session > > and display them each in nicely formatted latex, as they are entered. > > Sort of like a typical maple session, where each equation is typeset > > as its entered. However, the closest I get to such output is to 1) > > assign the formula to a variable, 2) assign the latex(forumula) to a > > variable, 3) jsmath(this latex variable) and 4) click 'evaluate' under > > the cell. > > > Thats a bit of work and I've found that if I have several jsmath() > > displays in a row and hit evaluate, only one of them shows up > > typeset. I know there has to be an easier way and it probably > > requires various settings in the dropdown boxes above the worksheet > > and some % declares and so on, and I would like to find a good > > resource to read about these options. > > > For instance, the otherwise excellent 'an-invitation-to-sage.pdf' > > whitepaper has a nice screenshot of a notebook that seems to do what I > > want, with the helpful comment: > > > ------------------------------------------------------- > > Here are the commands used to create the output in the Notebook > > session > > in the above screenshot: > > Sage Notebook > > a,b,c,d,x,y=var(’a,b,c,d,x,y’) > > show(solve(a*xˆ2+b*x+c==0,x)) > > show(solve(a*xˆ3+b*x+c==0,x)) > > solve(a*x+b*y==0,c*x+d*y==0,x,y) > > ------------------------------------------------------- > > > but when I type them in to my notebook cell nothing happens, and when > > I click 'evaluate' under the cell I just get an error message. Also, > > I can't tell if the whitepaper's screenshot was generated after each > > of these 'show' commands, or if all of the commands are executed at > > once via the 'evaluate' button. Is there, for instance, a mode where > > 'evaluate' is implicit after each carriage return? > > > Likewise, searching google for 'sage latex' turns up some interesting > > messages, but nothing that helps me set the notebook up to display > > formulae. Another forinstance: I would like to know how the author > > ofhttp://sagenb.com/home/pub/365/ managed to have the nicely latex'd > > comments above each of the cells. > > > I am still playing around and experimenting with the notebook but > > there have to be some shortcuts to learning all this, and I'd > > appreciate any pointers to websites, archives, and so on. > > > Thanks, > > > J --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
