Hey Jianping,
   So for Sage to use dot2tex, it currently does not use the system 
install, but instead it has to be installed in Sage by running "sage -i 
dot2tex". You might also need to install graphviz on your computer for the 
crystal graph to work.

The reason why there is different output is because the default setting for 
crystal graphs depends on if you have a Sage install of dot2tex.

Best,
Travis


On Monday, May 1, 2017 at 11:15:50 PM UTC-5, Jianping Pan wrote:
>
> Hi, I'm on mac OS Sierra 10.12.4, and am using Sage 7.6.  I also have my 
> Xcode upt to date. When I tried to display the crystal graph
>
> sage: B = crystals.Tableaux(['A',2],shape=[2,1])
>
> However, I can not view(B). 
> I have installed Texlive 2016 and dot2tex on my computer. So I checked the 
> latex file of B, and that on sagemath cloud. It turned out that my computer 
> can compile the latex code from the "latex(B)" from sagemath cloud to get 
> the correct crystal graph, but not for the latex code from Sage 7.6. By a 
> glimpse, the two codes are entirely different. Following is the latex for 
> Sage 7.6
> "sage: latex(B)" output 
>
> \begin{tikzpicture}
>
> \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}
>
> \definecolor{cv1}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cfv1}{rgb}{1.0,1.0,1.0}
>
> \definecolor{clv1}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv2}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cfv2}{rgb}{1.0,1.0,1.0}
>
> \definecolor{clv2}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv3}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cfv3}{rgb}{1.0,1.0,1.0}
>
> \definecolor{clv3}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv4}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cfv4}{rgb}{1.0,1.0,1.0}
>
> \definecolor{clv4}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv5}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cfv5}{rgb}{1.0,1.0,1.0}
>
> \definecolor{clv5}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv6}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cfv6}{rgb}{1.0,1.0,1.0}
>
> \definecolor{clv6}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv7}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cfv7}{rgb}{1.0,1.0,1.0}
>
> \definecolor{clv7}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv0v1}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv0v3}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv1v2}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv2v5}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv3v4}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv4v6}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv5v7}{rgb}{0.0,0.0,0.0}
>
> \definecolor{cv6v7}{rgb}{0.0,0.0,0.0}
>
> %
>
> \Vertex[style={minimum 
> size=1.0cm,draw=cv0,fill=cfv0,text=clv0,shape=circle},LabelOut=false,L=\hbox{${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}
>
> \raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}
>
> \lr{1}&\lr{1}\\\cline{1-2}
>
> \lr{2}\\\cline{1-1}
>
> \end{array}$}
>
> }$},x=2.9386cm,y=0.0cm]{v0}
>
> \Vertex[style={minimum 
> size=1.0cm,draw=cv1,fill=cfv1,text=clv1,shape=circle},LabelOut=false,L=\hbox{${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}
>
> \raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}
>
> \lr{1}&\lr{2}\\\cline{1-2}
>
> \lr{2}\\\cline{1-1}
>
> \end{array}$}
>
> }$},x=4.6178cm,y=0.9475cm]{v1}
>
> \Vertex[style={minimum 
> size=1.0cm,draw=cv2,fill=cfv2,text=clv2,shape=circle},LabelOut=false,L=\hbox{${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}
>
> \raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}
>
> \lr{1}&\lr{3}\\\cline{1-2}
>
> \lr{2}\\\cline{1-1}
>
> \end{array}$}
>
> }$},x=5.0cm,y=2.8802cm]{v2}
>
> \Vertex[style={minimum 
> size=1.0cm,draw=cv3,fill=cfv3,text=clv3,shape=circle},LabelOut=false,L=\hbox{${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}
>
> \raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}
>
> \lr{1}&\lr{1}\\\cline{1-2}
>
> \lr{3}\\\cline{1-1}
>
> \end{array}$}
>
> }$},x=1.0741cm,y=0.3724cm]{v3}
>
> \Vertex[style={minimum 
> size=1.0cm,draw=cv4,fill=cfv4,text=clv4,shape=circle},LabelOut=false,L=\hbox{${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}
>
> \raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}
>
> \lr{1}&\lr{2}\\\cline{1-2}
>
> \lr{3}\\\cline{1-1}
>
> \end{array}$}
>
> }$},x=0.0cm,y=2.07cm]{v4}
>
> \Vertex[style={minimum 
> size=1.0cm,draw=cv5,fill=cfv5,text=clv5,shape=circle},LabelOut=false,L=\hbox{${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}
>
> \raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}
>
> \lr{1}&\lr{3}\\\cline{1-2}
>
> \lr{3}\\\cline{1-1}
>
> \end{array}$}
>
> }$},x=3.8682cm,y=4.5402cm]{v5}
>
> \Vertex[style={minimum 
> size=1.0cm,draw=cv6,fill=cfv6,text=clv6,shape=circle},LabelOut=false,L=\hbox{${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}
>
> \raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}
>
> \lr{2}&\lr{2}\\\cline{1-2}
>
> \lr{3}\\\cline{1-1}
>
> \end{array}$}
>
> }$},x=0.3987cm,y=4.0355cm]{v6}
>
> \Vertex[style={minimum 
> size=1.0cm,draw=cv7,fill=cfv7,text=clv7,shape=circle},LabelOut=false,L=\hbox{${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}
>
> \raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}
>
> \lr{2}&\lr{3}\\\cline{1-2}
>
> \lr{3}\\\cline{1-1}
>
> \end{array}$}
>
> }$},x=1.9942cm,y=5.0cm]{v7}
>
> %
>
> \Edge[lw=0.1cm,style={post, bend right,color=cv0v1,},](v0)(v1)
>
> \Edge[lw=0.1cm,style={post, bend right,color=cv0v3,},](v0)(v3)
>
> \Edge[lw=0.1cm,style={post, bend right,color=cv1v2,},](v1)(v2)
>
> \Edge[lw=0.1cm,style={post, bend right,color=cv2v5,},](v2)(v5)
>
> \Edge[lw=0.1cm,style={post, bend right,color=cv3v4,},](v3)(v4)
>
> \Edge[lw=0.1cm,style={post, bend right,color=cv4v6,},](v4)(v6)
>
> \Edge[lw=0.1cm,style={post, bend right,color=cv5v7,},](v5)(v7)
>
> \Edge[lw=0.1cm,style={post, bend right,color=cv6v7,},](v6)(v7)
>
> %
>
> \end{tikzpicture}
>
> And this is the latex from sagemath cloud: also latex(B)
>  
> \begin{tikzpicture}[>=latex,line join=bevel,] %% \node (node_7) at 
> (34.5bp,15.5bp) [draw,draw=none] 
> {${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}\raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}\lr{2}&\lr{3}\\\cline{1-2}\lr{3}\\\cline{1-1}\end{array}$}}$};
>  
> \node (node_6) at (58.5bp,100.5bp) [draw,draw=none] 
> {${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}\raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}\lr{2}&\lr{2}\\\cline{1-2}\lr{3}\\\cline{1-1}\end{array}$}}$};
>  
> \node (node_5) at (13.5bp,100.5bp) [draw,draw=none] 
> {${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}\raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}\lr{1}&\lr{3}\\\cline{1-2}\lr{3}\\\cline{1-1}\end{array}$}}$};
>  
> \node (node_4) at (58.5bp,185.5bp) [draw,draw=none] 
> {${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}\raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}\lr{1}&\lr{2}\\\cline{1-2}\lr{3}\\\cline{1-1}\end{array}$}}$};
>  
> \node (node_3) at (58.5bp,270.5bp) [draw,draw=none] 
> {${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}\raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}\lr{1}&\lr{1}\\\cline{1-2}\lr{3}\\\cline{1-1}\end{array}$}}$};
>  
> \node (node_2) at (13.5bp,185.5bp) [draw,draw=none] 
> {${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}\raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}\lr{1}&\lr{3}\\\cline{1-2}\lr{2}\\\cline{1-1}\end{array}$}}$};
>  
> \node (node_1) at (13.5bp,270.5bp) [draw,draw=none] 
> {${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}\raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}\lr{1}&\lr{2}\\\cline{1-2}\lr{2}\\\cline{1-1}\end{array}$}}$};
>  
> \node (node_0) at (35.5bp,355.5bp) [draw,draw=none] 
> {${\def\lr#1{\multicolumn{1}{|@{\hspace{.6ex}}c@{\hspace{.6ex}}|}{\raisebox{-.3ex}{$#1$}}}\raisebox{-.6ex}{$\begin{array}[b]{*{2}c}\cline{1-2}\lr{1}&\lr{1}\\\cline{1-2}\lr{2}\\\cline{1-1}\end{array}$}}$};
>  
> \draw [red,->] (node_0) ..controls (42.981bp,327.5bp) and 
> (47.816bp,310.05bp) .. (node_3); \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; 
> \pgfsetstrokecolor{strokecol} \draw (57.0bp,313.0bp) node {$2$}; \draw 
> [blue,->] (node_5) ..controls (13.24bp,74.426bp) and (14.14bp,60.663bp) .. 
> (17.5bp,49.0bp) .. controls (18.326bp,46.132bp) and (19.42bp,43.224bp) .. 
> (node_7); \draw (26.0bp,58.0bp) node {$1$}; \draw [red,->] (node_6) 
> ..controls (50.694bp,72.504bp) and (45.648bp,55.054bp) .. (node_7); \draw 
> (57.0bp,58.0bp) node {$2$}; \draw [blue,->] (node_4) ..controls 
> (58.5bp,157.62bp) and (58.5bp,140.39bp) .. (node_6); \draw (67.0bp,143.0bp) 
> node {$1$}; \draw [red,->] (node_1) ..controls (13.5bp,242.62bp) and 
> (13.5bp,225.39bp) .. (node_2); \draw (22.0bp,228.0bp) node {$2$}; \draw 
> [blue,->] (node_3) ..controls (58.5bp,242.62bp) and (58.5bp,225.39bp) .. 
> (node_4); \draw (67.0bp,228.0bp) node {$1$}; \draw [blue,->] (node_0) 
> ..controls (22.513bp,334.49bp) and (19.359bp,328.18bp) .. (17.5bp,322.0bp) 
> .. controls (15.067bp,313.92bp) and (13.896bp,304.8bp) .. (node_1); \draw 
> (26.0bp,313.0bp) node {$1$}; \draw [red,->] (node_2) ..controls 
> (13.5bp,157.62bp) and (13.5bp,140.39bp) .. (node_5); \draw (22.0bp,143.0bp) 
> node {$2$}; % \end{tikzpicture}
>
> So my understanding that Sage 7.6 is not the one that is running on 
> sagemath cloud. And I don't know how I can fix it. Would getting the beta 
> version solve this problem? Or do I need to install/update anything on my 
> computer?
>
> Thank you very much!
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to