On 01/15/2013 02:12 PM, Andrew Mathas wrote:
Almost every object in sage can return latex output. I think that the
answer is no, but is there anyway to tell whether the latex output
should be typeset in math-mode or as plain text?
For example,
sage: latex(CyclicPermutationGroup(5).character_table())
\left(\begin{array}{rrrrr}
1 & 1 & 1 & 1 & 1 \\
1 & \zeta_{5} & \zeta_{5}^{2} & \zeta_{5}^{3} & -\zeta_{5}^{3} -
\zeta_{5}^{2} - \zeta_{5} - 1 \\
1 & \zeta_{5}^{2} & -\zeta_{5}^{3} - \zeta_{5}^{2} - \zeta_{5} - 1 &
\zeta_{5} & \zeta_{5}^{3} \\
1 & \zeta_{5}^{3} & \zeta_{5} & -\zeta_{5}^{3} - \zeta_{5}^{2} -
\zeta_{5} - 1 & \zeta_{5}^{2} \\
1 & -\zeta_{5}^{3} - \zeta_{5}^{2} - \zeta_{5} - 1 & \zeta_{5}^{3} &
\zeta_{5}^{2} & \zeta_{5}
\end{array}\right)
Here the output should clearly be typset in math-mode but as far as I
can see python doesn't know this.
It is typeset here alright. http://i.imgur.com/UEvj3.jpg
Do you have "typeset" checked? Otherwise you need to do either
view(latex(...)), or pretty_print(latex(...)), or even just view(...)
and pretty_print(...).
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.