All I am using is plain sage-4.6, then

(1) Install dot2tex: sage -f
     http://sage.math.washington.edu/home/nthiery/dot2tex-2.8.7-2.spkg

(2) Install graphviz

(3) I have this in my .sage/init.sage

from sage.misc.latex import latex
latex.add_to_preamble('\\usepackage{tikz}')
latex.add_to_jsmath_avoid_list('\\begin{tikzpicture}')

Then the worksheet on the wiki should work.

On the wishlist is better lateX support for tableaux, compatible with 
jsmath/mathjax
for visualization in the notebook, see trac#4355.

But as William says

%latex
\sage{Tableau([[1,2,2],[2,3]])}

works.

Cheers,

Anne


On 12/8/10 10:35 AM, Gagan Sekhon wrote:
You will also need the following latex code

from sage.misc.latex import latex
latex.add_to_preamble('\\usepackage{tikz}')
latex.add_to_jsmath_avoid_list('\\begin{tikzpicture}')

Gagan

On Wed, Dec 8, 2010 at 9:56 AM, William Stein<wst...@gmail.com>  wrote:
Hi,

This is how to plot anne's plots in standard sage 4.6 under OS X.

(1) Install dot2tex: sage -f
http://sage.math.washington.edu/home/nthiery/dot2tex-2.8.7-2.spkg

(2) Install graphviz from the graphviz website.  Nothing to do with
sage.  Graphviz has a stupid non-GPL compatible license.

(3) This from her worksheet doesn't work:
B = CrystalOfTableaux(['A',2], shape=[2,1])
show(B)

(4) However, put the following two lines in a *different* notebook
cell after defining B, and your plot should appear fine:

%latex
\sage{B}


My guess is that Anne's using some extra non-standard patches, which
is why plots work for her.



  -- William

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

--
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to