On Jan 25, 11:39 am, composer314 <jeremy.saw...@gmail.com> wrote: > I just downloaded and installed Sage yesterday. I am a brand new user > of this particular computer algebra system, though I have used > Mathematica in the past. > > I was very pleased to see that Sage supports Latex, but I am confused > over how to use it. I have searched the documentation and tutorials > thoroughly, but could not get a clear answer on my question. Maybe I > am just approaching things from the wrong direction. > > Sage has a latex function: latex( ), which returns the Latex > representation of an expression. > > Example: > f=x^2 + 1 > latex(f) > > This will print out the appropriate Latex commands for rendering the > expression or, with jsMath enabled, will render the Latex commands as > valid HTML. > > Sage also has a %latex mode. After typing %latex, everything after the > prompt is interpreted as Latex and rendered on the server into a > graphic (png file). > > Here's what I am trying to do: > I would like to typeset my Sage expressions into Latex without the > intermediate step of copying the Latex generated by the latex( ) > function and then pasting it into an expression that starts with > %latex.
In the notebook, if you check the "Typeset" box at the top, then all output from Sage will be automatically typeset. > In other words, I would like to do something like this: > %latex latex(f) > > would create a png graphic of the expression f. However, it currently > just creates a graphic of the literal string "latex(f)". I understand > that the Latex interpreted doesn't understand Sage syntax, but is > there a way to get Sage to render to Latex? > > I am working in a single user environment, so performance is not an > issue. I really would just prefer the PNG output over the jsMath > output so that I could copy and paste the PNG files into other > documents, such as word processor documents or HTML pages where the > user does not have jsMath support. The "Typeset" box gives jsMath output, but you can take a screenshot to get a graphics file in whatever format you want. --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---