For a quick solution, you can try

print('a2 ='),a2

I hope someone who know SAGE much better can tell you how to print it
in the LaTeX form.

On Oct 3, 7:07 am, Samuel Gaehwiler <[EMAIL PROTECTED]> wrote:
> hi,
>
> I use sage (in notebook mode) for basic calculations on a daily basis.
> I also like to print out my calculations and hand it in with my
> exercise.
> Since the people who correct them here at the ETH university in Zürich
> are not familiar with sage, I would like to print every result with
> the variable-name in front of it.
>
> i.e.
> sage> a_2 = 2/3+1
> sage> show(a_2)
>
>   a_2 = 5/3  (nicly formated, as if typsetted in latex)
>
> is this somehow possible? (is there an argument for show() I've
> missed, or maybe a little phyton script?)
>
> best regards,
> Samuel
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to