On Tue, Jan 15, 2013 at 6:37 PM, P Purkayastha <ppu...@gmail.com> wrote:
> 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(...). While we are at this, let me mention that the way latex() handles operation tables of algebraic objects needs to be fixed. There are a couple of tickets on this theme: 1. http://trac.sagemath.org/sage_trac/ticket/11362 2. http://trac.sagemath.org/sage_trac/ticket/10787 I am willing to work on this ticket if someone will give me some pointers. Regards, ~KnS > > > -- > 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+unsubscribe@** > googlegroups.com <sage-devel%2bunsubscr...@googlegroups.com>. > Visit this group at > http://groups.google.com/**group/sage-devel?hl=en<http://groups.google.com/group/sage-devel?hl=en> > . > > > -- 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.