> 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.

I'd like to head in that direction, but I'm still a novice.

> 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.

Great, thanks for the tip.

> 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.

My fantasy is that I would be able to utilize all the features of LaTeX 
(including packages like TikZ) to write prose with figures and be able to 
insert a Sage cell (for @interacts, etc.) wherever I'd like.  

Dana
-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
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-edu?hl=en.


Reply via email to