Ask Your Question
1

Getting hasse diagram of truncated young lattice

asked 2016-07-01 12:31:20 -0500

Ahmed gravatar image

updated 2017-01-05 15:11:23 -0500

FrédéricC gravatar image

Hi! So I compile the following code on sage cloud:

ord = lambda x,y: y.contains(x)

def baseyoung(N):
    return [b for n in range(N) for b in Partitions(n)]

view(Poset((baseyoung(5),ord)))

and it shows a hasse diagram of young diagrams. But whenever I compile it on sage in my laptop's terminal it gives the following error

An error occurred. This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex 2016.7.1)  1 JUL 2016 10:28 entering extended mode  restricted \write18 enabled.  %&-line parsing enabled.
**\nonstopmode \input{sage.tex} (./sage.tex (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty Package: amsmath 2016/03/03 v2.15a AMS math features \@mathmargin=\skip43

For additional information on amsmath, use the `?' option. (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty Package: amstext 2000/06/29 v2.01 AMS text

(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks14 \ex@=\dimen103 )) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen104 ) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty Package: amsopn 1999/12/14 v2.01 operator names ) \inf@bad=\count87 LaTeX Info: Redefining \frac on input line 199. \uproot@=\count88 \leftroot@=\count89 LaTeX Info: Redefining \overline on input line
297. \classnum@=\count90 \DOTSCASE@=\count91 LaTeX Info: Redefining \ldots on input line 394. LaTeX Info: Redefining \dots on input line 397. LaTeX Info: Redefining \cdots on input line 518. \Mathstrutbox@=\box26 \strutbox@=\box27 \big@size=\dimen105 LaTeX Font Info:    Redeclaring font encoding OML on input line 630. LaTeX Font Info:    Redeclaring font encoding OMS on input line 631. \macc@depth=\count92 \c@MaxMatrixCols=\count93 \dotsspace@=\muskip10 \c@parentequation=\count94 \dspbrk@lvl=\count95 \tag@help=\toks15 \row@=\count96 \column@=\count97 \maxfields@=\count98 \andhelp@=\toks16 \eqnshift@=\dimen106 \alignsep@=\dimen107 \tagshift@=\dimen108 \tagwidth@=\dimen109 \totwidth@=\dimen110 \lineht@=\dimen111 \@envbody=\toks17 \multlinegap=\skip44 \multlinetaggap=\skip45 \mathdisplay@stack=\toks18 LaTeX Info: Redefining \[ on input line 2735. LaTeX Info: Redefining \] on input line 2736. ) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty Package: amssymb 2013/01/14 v3.01 AMS font symbols

(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support \symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info:  Overwriting math alphabet `\mathfrak' in version `bold' (Font)               U/euf/m/n --> U/euf/b/n on input line
106. )) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty ...
(more)
edit retag flag offensive close merge delete

Comments

view tries to make something LaTeXy in a native Sage, on the cloud there is probably a different display hook. You should probably try to see what the output of latex(Poset((baseyoung(5),ord))) is and see what it has that might cause an error. Possibly there is a missing end.

kcrisman gravatar imagekcrisman ( 2016-07-01 14:35:08 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2017-04-06 15:26:09 -0500

dan_fulea gravatar image

My try was:

sage: joinme = ( lambda x,y:    y.contains(x) )
sage: p = Poset( ( [ b for n in [1..5] for b in Partitions(n) ], joinme ) )
sage: p . show()
Launched png viewer for Graphics object consisting of 44 graphics primitives
sage: latex( p )

The png file shows immediately.

And the latex conversion of p requires tikzpicture. We get the code, if we really need to make latex work with it.

\begin{tikzpicture}
%
\useasboundingbox (0,0) rectangle (5.0cm,5.0cm);
%
\definecolor{cv0}{rgb}{0.0,0.0,0.0}
\definecolor{cfv0}{rgb}{1.0,1.0,1.0}
\definecolor{clv0}{rgb}{0.0,0.0,0.0}
...  many further lines ...
\raisebox{-.6ex}{$\begin{array}[b]{*{5}c}\cline{1-5}
\lr{\phantom{x}}&\lr{\phantom{x}}&\lr{\phantom{x}}&\lr{\phantom{x}}&\lr{\phantom{x}}\\\cline{1-5}
\end{array}$}
}$},x=5.0cm,y=0.7357cm]{v17}
%
\Edge[lw=0.1cm,style={post, bend right,color=cv0v1,},](v0)(v1)
\Edge[lw=0.1cm,style={post, bend right,color=cv0v5,},](v0)(v5)
\Edge[lw=0.1cm,style={post, bend right,color=cv1v2,},](v1)(v2)
\Edge[lw=0.1cm,style={post, bend right,color=cv1v6,},](v1)(v6)
\Edge[lw=0.1cm,style={post, bend right,color=cv2v3,},](v2)(v3)
\Edge[lw=0.1cm,style={post, bend right,color=cv2v7,},](v2)(v7)
\Edge[lw=0.1cm,style={post, bend right,color=cv3v4,},](v3)(v4)
\Edge[lw=0.1cm,style={post, bend right,color=cv3v8,},](v3)(v8)
\Edge[lw=0.1cm,style={post, bend right,color=cv5v6,},](v5)(v6)
\Edge[lw=0.1cm,style={post, bend right,color=cv5v11,},](v5)(v11)
\Edge[lw=0.1cm,style={post, bend right,color=cv6v7,},](v6)(v7)
\Edge[lw=0.1cm,style={post, bend right,color=cv6v9,},](v6)(v9)
\Edge[lw=0.1cm,style={post, bend right,color=cv6v12,},](v6)(v12)
\Edge[lw=0.1cm,style={post, bend right,color=cv7v8,},](v7)(v8)
\Edge[lw=0.1cm,style={post, bend right,color=cv7v10,},](v7)(v10)
\Edge[lw=0.1cm,style={post, bend right,color=cv7v13,},](v7)(v13)
\Edge[lw=0.1cm,style={post, bend right,color=cv9v10,},](v9)(v10)
\Edge[lw=0.1cm,style={post, bend right,color=cv9v14,},](v9)(v14)
\Edge[lw=0.1cm,style={post, bend right,color=cv11v12,},](v11)(v12)
\Edge[lw=0.1cm,style={post, bend right,color=cv11v15,},](v11)(v15)
\Edge[lw=0.1cm,style={post, bend right,color=cv12v13,},](v12)(v13)
\Edge[lw=0.1cm,style={post, bend right,color=cv12v14,},](v12)(v14)
\Edge[lw=0.1cm,style={post, bend right,color=cv12v16,},](v12)(v16)
\Edge[lw=0.1cm,style={post, bend right,color=cv15v16,},](v15)(v16)
\Edge[lw=0.1cm,style={post, bend right,color=cv15v17,},](v15)(v17)
%
\end{tikzpicture}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-07-01 12:31:20 -0500

Seen: 176 times

Last updated: Apr 06