Hi Dana, 1. Backslashes At the Sage command line the help shows the two backslashes, but in the notebook the help gets Sphinx-icated (which is very nice!) but the double slash gets clobbered. LaTeX, escape codes, Python string, Python raw strings, Sphinx are all interacting improperly here. I'm going to post something in sage-devel. Thanks for pointing out the bug - keep it up and you'll become a Sage developer before you know it.
2. % directives The preamble addition is a one-time deal (so run it once at the top of a worksheet), the %latex will call your latex installation to process what follows. A %hide in the first line of a cell will (mostly, 99%) hide the whole cell. A %auto will execute a cell when you open the worksheet (IIRC). I think the %hide always has to be first. Some combination of these might lead to appealing worksheets with diagrams visible and code hidden, but executed. Experiment. 3. Mac Its been too long since I used a Mac regularly and never with Sage. So I can't help here. 4. Images in LaTeX I think what you are trying to do brings up a larger issue with the notebook. It is easy to paste jsMath (simple TeX basically) in the text version of a worksheet and it renders nicely. But this is not TeX doing the rendering. jsMath is a totally separate deal (javascript routines) that implements a subset of TeX. So for example, there may be no way to place a tikz graphic into the textual portion of a worksheet. All of the above is about making a Sage notebook executable cell produce the graphic and insert it into the worksheet as an output cell. So suppose a LaTeX document has a tikz (or other) graphic in it. How should it migrate to a worksheet as part of an automated conversion? Build the graphic first and put the image file in the worksheet? Thjis would be fairly easy, I think, and not totally dissimilar to what SageTeX does for plots (but maybe in reverse). Or should the tikz/latex code migrate to the notebook and get processed by some mechanism in the notebook? This sounds harder to me. TeX is oriented to fonts (the old picture environment used a limited supply of lines with "nice" slopes) and jsMath is similar - it is placing font elements in the rendered web page, so TeX code that produces a graphic (PNG, etc) is a bit out of bounds. I think. Rob
-- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.