Hi, here's what worked for me:

latex(Determinant(A), mat_delim='')

On Sunday, May 10, 2015 at 1:19:33 PM UTC-4, Aaron Meurer wrote:
>
> Try using Determinant from sympy.matrices.expressions. 
>
> Aaron Meurer 
>
> On Sun, May 10, 2015 at 12:06 AM, Jason Moore <[email protected] 
> <javascript:>> wrote: 
> > You can subclass the LatexPrinter and override this method: 
> > https://github.com/sympy/sympy/blob/master/sympy/printing/latex.py#L1299 
> to 
> > create your custom printer. 
> > 
> > 
> > Jason 
> > moorepants.info 
> > +01 530-601-9791 
> > 
> > On Sat, May 9, 2015 at 7:19 PM, PG <[email protected] <javascript:>> 
> wrote: 
> >> 
> >> Hi, 
> >> 
> >> If I have 
> >> 
> >> m = Matrix([ [ 1, 2 ], [ 3, 4 ] ]) 
> >> 
> >> how can I latex m so it is printed as a determinant: 
> >> 
> >> \begin{vmatrix} 
> >> 1 & 2\\ 
> >> 3 & 4 
> >> \end{vmatrix} 
> >> 
> >> Many thanks in advance, 
> >> 
> >> PG 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups 
> >> "sympy" group. 
> >> To unsubscribe from this group and stop receiving emails from it, send 
> an 
> >> email to [email protected] <javascript:>. 
> >> To post to this group, send email to [email protected] 
> <javascript:>. 
> >> Visit this group at http://groups.google.com/group/sympy. 
> >> To view this discussion on the web visit 
> >> 
> https://groups.google.com/d/msgid/sympy/46633e2a-d020-48b8-b5c4-1441b474052f%40googlegroups.com.
>  
>
> >> For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sympy" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/sympy. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/sympy/CAP7f1AjQu4%2Bxsv8JPWae2kQWRzJ-B0bSPX84DSyyopqQTrwJzw%40mail.gmail.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/e7b4cc1d-86d5-4c2a-bc05-b342cd933dce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to