Re: [sage-combinat-devel] Re: dot2tex, combinat
Hi Travis! On Sun, Jan 15, 2012 at 11:16:34PM -0800, Travis Scrimshaw wrote: Here's the new patch: http://trac.sagemath.org/sage_trac/ticket/12314 Note: this patch breaks later patches in the queue (tested on Sage 4.7.2): - displayhook-fh.patch - concrete_combinatorial_statistics_and_maps-cs.patch Please get in touch with their respective developers to handle the rebasing and guard out your patch (or theirs) in the mean time. Cheers, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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.
[sage-combinat-devel] Re: dot2tex, combinat
Here's the new patch: http://trac.sagemath.org/sage_trac/ticket/12314 I know that skew_partitions/tableau also needs a latex output as well, is there anything else? Also I am thinking of changing the structure instead of the output file (which just contains the array_to_tex() function and I believe is only called in Tableau, Partition_class, and Core) to a new class which would have a method to handle skew shapes and have the 2D_Box as was done in MuPAD. Best, Travis -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Wed, Jan 11, 2012 at 03:44:53PM -0800, Anne Schilling wrote: - The change: since #11498, strings are now rendered using \verb|...| instead of \texttt. - The issue: is that dot2tex Is there something missing in this sentence? Oh, yes: The issue is that dot2tex does not handle \verb|...| Would the best option be to implement a latex method for partitions? Travis volunteered to do so. Thanks Travis for volunteering. That would solve the issue for partition. But not for all the other Sage objects that do not have a latex method, and not for plain strings either. So, unless there is a compelling reason to implement latex for partitions (anything better than \verb|[4,3,1]|?), that would be just a workaround: i.e. something useful in the short term, and worth putting in the queue, but probably not something we would want to get in Sage. Cheers, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On 1/12/12 1:14 AM, Nicolas M. Thiery wrote: On Wed, Jan 11, 2012 at 03:44:53PM -0800, Anne Schilling wrote: - The change: since #11498, strings are now rendered using \verb|...| instead of \texttt. - The issue: is that dot2tex Is there something missing in this sentence? Oh, yes: The issue is that dot2tex does not handle \verb|...| Would the best option be to implement a latex method for partitions? Travis volunteered to do so. Thanks Travis for volunteering. That would solve the issue for partition. But not for all the other Sage objects that do not have a latex method, and not for plain strings either. So, unless there is a compelling reason to implement latex for partitions (anything better than \verb|[4,3,1]|?), that would be just a workaround: i.e. something useful in the short term, and worth putting in the queue, but probably not something we would want to get in Sage. I agree the problem should be fixed in general! But for partitions, I think a latex method is very desirable anyway. We need it for rigged configurations (which contain partitions) and for drawing nice posets containing partitions (like weak and strong order that Florent recently deleted from his patch). So I hope this method could go into sage anyway. Best, Anne -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Thu, Jan 12, 2012 at 08:04:48AM -0800, Anne Schilling wrote: But for partitions, I think a latex method is very desirable anyway. We need it for rigged configurations (which contain partitions) and for drawing nice posets containing partitions (like weak and strong order that Florent recently deleted from his patch). So I hope this method could go into sage anyway. Here you mean latexing a partition using it's Ferrers diagram? Then this is: http://trac.sagemath.org/sage_trac/ticket/4355 which has been in need for a volunteer for three years. Cheers, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On 1/12/12 8:10 AM, Nicolas M. Thiery wrote: On Thu, Jan 12, 2012 at 08:04:48AM -0800, Anne Schilling wrote: But for partitions, I think a latex method is very desirable anyway. We need it for rigged configurations (which contain partitions) and for drawing nice posets containing partitions (like weak and strong order that Florent recently deleted from his patch). So I hope this method could go into sage anyway. Here you mean latexing a partition using it's Ferrers diagram? Then this is: http://trac.sagemath.org/sage_trac/ticket/4355 which has been in need for a volunteer for three years. Yes, so Travis please use this ticket number for your patch! Cheers, Anne -- 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-devel@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.
[sage-combinat-devel] Re: dot2tex, combinat
Here you mean latexing a partition using it's Ferrers diagram? Then this is: http://trac.sagemath.org/sage_trac/ticket/4355 which has been in need for a volunteer for three years. Yes, so Travis please use this ticket number for your patch! It has been done. I basically just called output.tex_from_array() with a list of \phantom{x} (strings). So what needs to be done for this trac ticket? Best, Travis -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Thu, Jan 12, 2012 at 10:35:22AM -0800, Travis Scrimshaw wrote: It has been done. I basically just called output.tex_from_array() with a list of \phantom{x} (strings). So what needs to be done for this trac ticket? In principle, the ticket description (with the referenced MuPAD doc and code) is fairly complete. But feel free to ask further questions if needed! Cheers, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On 1/12/12 10:35 AM, Travis Scrimshaw wrote: Here you mean latexing a partition using it's Ferrers diagram? Then this is: http://trac.sagemath.org/sage_trac/ticket/4355 which has been in need for a volunteer for three years. Yes, so Travis please use this ticket number for your patch! It has been done. I basically just called output.tex_from_array() with a list of \phantom{x} (strings). So what needs to be done for this trac ticket? Great! I checked its functionality and ran the tests. Everything looks good! Here are some further comments: * Could you please also add a latex method to cores in /combinat/core.py ? There is a method to_partition which you can use and then it could just use the latex method of partitions that you just implemented. * Your patch creates a conflict with displayhook-fh.patch later on the in queue. Could you discuss with Florent whether to incorporate his patch into yours (since it also seems to be dealing with the display of partitions)? If not, then Florent should update his patch. Once your patch is finalized, you need to export it for the trac server, see http://wiki.sagemath.org/combinat/MercurialStepByStep#Exporting_Patches_for_use_with_trac and then upload that version to the sage-combinat queue and the trac server. Let me know when this is done! Anne -- 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-devel@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.
[sage-combinat-devel] Re: dot2tex, combinat
Nicolas and John, I added ImageMagick (since it's Fedora: yum install ImageMagick ), did the jsmath_avoid_list('tikz') command, and I was able to properly view the pdf. However it does not work if I don't do the jsmath_avoid command. John, perhaps you could elaborate why you thought to use this command? Also, I haven't had time yet to really look at the notebook code yet. I know some AJAX and (more importantly) I know someone who has a strong knowledge of server coding who I can pester if needed. As for an embedded pdf viewer, there seems to be a somewhat standard way of doing it (there are some html tags, or apparently one of the more common things to do is embed the viewer in flash). But yes, big, complex pictures are definitely better in their own window (especially since there will be double scroll bars which make it difficult to maneuver around). Anne, I tried reproducing your error first on my usual VM setup, and received a long list of latex errors (similar to the list when I first tried to get the crystal graphs to compile). Then I copied the latex output using latex(H) to my host tex editor/compile which generated the following errors: Error: Use of \tikz@@scope@env doesn't match its definition. twice on each of these lines: \Vertex[style={minimum size=1.0cm,draw=cv0,fill=cfv0,text=clv0,shape=circle},LabelOut=false,L= \hbox{$\verb[1,|\phantom{x}\verb|1,|\phantom{x}\verb|1,|\phantom{x} \verb|1,|\phantom{x}\verb|1,|\phantom{x}\verb|1]|$},x=0.0cm,y=0.0cm] {v0} \Vertex[style={minimum size=1.0cm,draw=cv1,fill=cfv1,text=clv1,shape=circle},LabelOut=false,L= \hbox{$\verb[2,|\phantom{x}\verb|1,|\phantom{x}\verb|1,|\phantom{x} \verb|1,|\phantom{x}\verb|1]|$},x=0.6998cm,y=0.2474cm]{v1} Finally I tried it on the notebook, but it kept taking issue with the facade option, so I couldn't attempt it with the view command. Best, Travis -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Wed, Jan 11, 2012 at 12:26:20AM -0800, Travis Scrimshaw wrote: I added ImageMagick (since it's Fedora: yum install ImageMagick ), did the jsmath_avoid_list('tikz') command, and I was able to properly view the pdf. However it does not work if I don't do the jsmath_avoid command. John, perhaps you could elaborate why you thought to use this command? Just to make sure the latex is not sent as is to jsmath (since jsmath does not, yet, handle tikz). Also, I haven't had time yet to really look at the notebook code yet. I know some AJAX and (more importantly) I know someone who has a strong knowledge of server coding who I can pester if needed. As for an embedded pdf viewer, there seems to be a somewhat standard way of doing it (there are some html tags, or apparently one of the more common things to do is embed the viewer in flash). But yes, big, complex pictures are definitely better in their own window (especially since there will be double scroll bars which make it difficult to maneuver around). Cool. I tried reproducing your error first on my usual VM setup, and received a long list of latex errors (similar to the list when I first tried to get the crystal graphs to compile). Then I copied the latex output using latex(H) to my host tex editor/compile which generated the following errors: Ah, I forgot to mention: I had to add the following command: sage: H.set_latex_options(format=dot2tex) before running the view. Otherwise, the graph is drawn with tkz-graph / tkz-berge, and the latex error you give look very similar to the one I mention in my previous e-mail. Cheers, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
Hi! Anne, I tried reproducing your error first on my usual VM setup, and received a long list of latex errors (similar to the list when I first tried to get the crystal graphs to compile). Then I copied the latex output using latex(H) to my host tex editor/compile which generated the following errors: Error: Use of \tikz@@scope@env doesn't match its definition. twice on each of these lines: \Vertex[style={minimum size=1.0cm,draw=cv0,fill=cfv0,text=clv0,shape=circle},LabelOut=false,L= \hbox{$\verb[1,|\phantom{x}\verb|1,|\phantom{x}\verb|1,|\phantom{x} \verb|1,|\phantom{x}\verb|1,|\phantom{x}\verb|1]|$},x=0.0cm,y=0.0cm] {v0} \Vertex[style={minimum size=1.0cm,draw=cv1,fill=cfv1,text=clv1,shape=circle},LabelOut=false,L= \hbox{$\verb[2,|\phantom{x}\verb|1,|\phantom{x}\verb|1,|\phantom{x} \verb|1,|\phantom{x}\verb|1]|$},x=0.6998cm,y=0.2474cm]{v1} Finally I tried it on the notebook, but it kept taking issue with the facade option, so I couldn't attempt it with the view command. Does this mean you get the same error? Sorry, the facade option uses code from the sage-combinat queue. You can also try sage: ord = lambda x,y: y.dominates(x) sage: P = Poset([Partitions(6), ord], cover_relations = False) sage: H = P.hasse_diagram() sage: view(H) or sage: view(H, pdflatex=True, tightpage=True) ERRORNo dimension data could be extracted from dot2tex.tex. ERRORFailed to preprocess the graph. Is the preview LaTeX package installed? ((Debian package preview-latex-style) To see what happened, run dot2tex with the --debug option. ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (88, 0)) /Applications/sage/local/lib/python2.6/site-packages/sage/misc/latex.pyc in view(objects, title, debug, sep, tiny, pdflatex, engine, viewer, tightpage, mode, **kwds) 1884 else: 1885 latex_options = {} - 1886 s = _latex_file_(objects, title=title, sep=sep, tiny=tiny, debug=debug, **latex_options) 1887 # notebook 1888 if EMBEDDED_MODE and viewer is None: Thanks, Anne -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On 1/11/12 6:15 AM, Nicolas M. Thiery wrote: On Mon, Jan 09, 2012 at 11:58:19AM -0800, Anne Schilling wrote: I also seem to have some trouble with view. sage: B = CrystalOfTableaux(['A',2],shape=[1]) sage: view(B, pdflatex=True, tightpage=True) works fine. But the following code gives an error: sage: ord = lambda x,y: y.dominates(x) sage: P = Poset([Partitions(6), ord], facade=True) sage: H = P.hasse_diagram() sage: view(H, pdflatex=True, tightpage=True) ERRORNo dimension data could be extracted from dot2tex.tex. ERRORFailed to preprocess the graph. Is the preview LaTeX package installed? ((Debian package preview-latex-style) To see what happened, run dot2tex with the --debug option. ... Has something changed (since this worked before)? I just tracked it down: Thank you very much for tracking this down! I knew this had worked for me recently. - The change: since #11498, strings are now rendered using \verb|...| instead of \texttt. - The issue: is that dot2tex Is there something missing in this sentence? - Besides, Partition's have no latex method, so are latex'ed by converting them to a string. I will send now an e-mail to the dot2tex dev to see if the issue can be fixed. In the mean time, you can use the following workaround, which change the latexing of partitions: sage: Partition([3]).__class__._latex_ = lambda p: \\texttt{+str(p)+} Then the rest should work. Great! For me the following now works sage: ord = lambda x,y: y.dominates(x) sage: sage: P = Poset([Partitions(6), ord], facade=True) sage: sage: H = P.hasse_diagram() sage: Partition([3]).__class__._latex_ = lambda p: \\texttt{+str(p)+} sage: view(H) Would the best option be to implement a latex method for partitions? Travis volunteered to do so. Well, almost: On my machine (Ubuntu 11.10), I have yet another issue: I have installed the tkz-berge latex package (as given in e.g. sagetex), and it seems to now have an incompatibility tikz. Namely, even the following file does not compile: \documentclass{article} \usepackage{tkz-arith} \begin{document} \end{document} Any idea anyone? If I uninstall tkz-graph.sty, tkz-berge.sty, and tkz-arith.sty, then Sage does not try to include it, and the compilation goes fine. I guess I do not have these installed. I did not have to include sage: H.set_latex_options(format=dot2tex) as you mentioned. Cheers, Anne -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On 12/26/11 2:48 AM, Nicolas M. Thiery wrote: On Sat, Dec 24, 2011 at 11:52:00AM -0800, John H Palmieri wrote: I copied the latest version of TikZ / PGF (using a shared folder) to the VM and installed it. I was able to compile the .tex file using the VM's latex compiler and view the output .pdf from my host OS (Windows Vista) in the shared folder, but I could not get it to display in the notebook. Did you try my suggestion about using jsmath_avoid_list? An alternative is to force the use of pdflatex to produce the file: view(C, engine=pdflatex) I also seem to have some trouble with view. sage: B = CrystalOfTableaux(['A',2],shape=[1]) sage: view(B, pdflatex=True, tightpage=True) works fine. But the following code gives an error: sage: ord = lambda x,y: y.dominates(x) sage: P = Poset([Partitions(6), ord], facade=True) sage: H = P.hasse_diagram() sage: view(H, pdflatex=True, tightpage=True) ERRORNo dimension data could be extracted from dot2tex.tex. ERRORFailed to preprocess the graph. Is the preview LaTeX package installed? ((Debian package preview-latex-style) To see what happened, run dot2tex with the --debug option. ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (88, 0)) /Applications/sage/local/lib/python2.6/site-packages/sage/misc/latex.pyc in view(objects, title, debug, sep, tiny, pdflatex, engine, viewer, tightpage, mode, **kwds) 1884 else: 1885 latex_options = {} - 1886 s = _latex_file_(objects, title=title, sep=sep, tiny=tiny, debug=debug, **latex_options) 1887 # notebook 1888 if EMBEDDED_MODE and viewer is None: ... Has something changed (since this worked before)? Cheers, Anne -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Fri, Dec 30, 2011 at 11:25:28AM -0800, Travis Scrimshaw wrote: John, I tried using it and I got the following error: Error: convert (from the ImageMagick suite) does not appear to be installed. Displaying PDFLaTeX output requires this program, so please install and try again. Go to http://www.imagemagick.org to download it. Latex error This is likely because the pdf output from sage depends upon the tikz package. Additionally the tikzpicture environment requires the tikz package so I doubt the pdf would be compiled despite the above error. I guess that this error is raised by sage.misc.latex._run_latex_. This function requires ``convert`` to convert the produced pdf into a png. Did you try installing imagemagick in the virtual machine? It should be something like: sudo apt-get install imagemagick The first issue should be easy enough to resolve and just make sure the base image for the Sage notebook download has the packages already installed. Yes, the issue is more social than technical: it is about convincing the virtual machine release manager that the extra kilobytes are worth it. So this probably needs a discussion on sage-devel. The inclusion (or not) of imagemagick is also to be discussed. For the second issue, do you know how the notebook communicates with the Sage in the VM and vice versa, or at least have some idea on where I could find the code? Also, could you tell me how Sage currently produces images/latex output to the notebook? As you suspect, the Sage server is a typical web server, with AJAX and the like for smooth interaction. But I am very unfamiliar with this area, so please lookup the sources and/or ask on sage-devel. For the notebook code, see SAGEROOT/devel/sagenb-main. I like your idea on sending the PDF directly the web browser, and I'm thinking we should have it as an option in the view() command since it is overkill in most cases and I don't know what kind of difficulties with pop-up blockers we might encounter. +1 Also, to me this is somewhat of a hack solution unless we could somehow embed a pdf viewer in the notebook I'd bet that some navigators allow for embedding a pdf viewer in the middle of an html page; however I have no idea if this is standardized. Anyway, for any complex picture, a separate window is as good, if not better (I usually want to view the picture in fullscreen). Anyways, I'll start a discussion on the sage-devel/trac and take a look at possibly cleaning up the patch. Excellent. Thanks! Happy new year, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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.
[sage-combinat-devel] Re: dot2tex, combinat
John, I tried using it and I got the following error: Error: convert (from the ImageMagick suite) does not appear to be installed. Displaying PDFLaTeX output requires this program, so please install and try again. Go to http://www.imagemagick.org to download it. Latex error This is likely because the pdf output from sage depends upon the tikz package. Additionally the tikzpicture environment requires the tikz package so I doubt the pdf would be compiled despite the above error. Nicolas, The first issue should be easy enough to resolve and just make sure the base image for the Sage notebook download has the packages already installed. For the second issue, do you know how the notebook communicates with the Sage in the VM and vice versa, or at least have some idea on where I could find the code? Also, could you tell me how Sage currently produces images/latex output to the notebook? I like your idea on sending the PDF directly the web browser, and I'm thinking we should have it as an option in the view() command since it is overkill in most cases and I don't know what kind of difficulties with pop-up blockers we might encounter. Also, to me this is somewhat of a hack solution unless we could somehow embed a pdf viewer in the notebook, but I doubt this is possible since I suspect the notebook runs through HTML with a C/S interface with the VM. Anyways, I'll start a discussion on the sage-devel/trac and take a look at possibly cleaning up the patch. Best, Travis -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Sat, Dec 24, 2011 at 11:52:00AM -0800, John H Palmieri wrote: I copied the latest version of TikZ / PGF (using a shared folder) to the VM and installed it. I was able to compile the .tex file using the VM's latex compiler and view the output .pdf from my host OS (Windows Vista) in the shared folder, but I could not get it to display in the notebook. Did you try my suggestion about using jsmath_avoid_list? An alternative is to force the use of pdflatex to produce the file: view(C, engine=pdflatex) Cheers, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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.
[sage-combinat-devel] Re: dot2tex, combinat
Hey, Here's the results of the tests I have done and my interpretations. Calling view() (from the notebook) calls the underlying OS's latex compiler, and then I believe the notebook displays the resulting pdf in the output window. So by doing ctrl-C twice to get to the shell, then running sudo yum install dot2tex (the root password is sage), and finally running ./sage -i dot2tex . This installs dot2tex on the underlying Fedora OS, then in sage specifically. From here I was able to generate the latex output in the notebook without errors on the first time, and you can copy this over to your external latex compiler and pdf viewer. I copied the latest version of TikZ / PGF (using a shared folder) to the VM and installed it. I was able to compile the .tex file using the VM's latex compiler and view the output .pdf from my host OS (Windows Vista) in the shared folder, but I could not get it to display in the notebook. (See http://wiki.sagemath.org/SageAppliance on the shared folders.) The error I got was `Unknown environment tikzpicture` and I also can compile the pdf on my host OS, so somehow there is a disconnect between the notebook and the VM's OS. Also, as for the mouse disappearing, that is when the mouse gets caught by the VM window and if you're running Virtual box, the default key to release the mouse is the *right* control (ctrl) key. The reason why you don't see the mouse is because the VM OS is a text- only environment, and with this, I believe you cannot easily open an external viewer from the VM. Best, Travis -- 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-devel@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.
[sage-combinat-devel] Re: dot2tex, combinat
On Friday, December 23, 2011 4:54:53 PM UTC-8, Travis Scrimshaw wrote: I copied the latest version of TikZ / PGF (using a shared folder) to the VM and installed it. I was able to compile the .tex file using the VM's latex compiler and view the output .pdf from my host OS (Windows Vista) in the shared folder, but I could not get it to display in the notebook. Did you try my suggestion about using jsmath_avoid_list? -- John -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To view this discussion on the web visit https://groups.google.com/d/msg/sage-combinat-devel/-/YVSFZP9ZF2UJ. To post to this group, send email to sage-combinat-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Tuesday, December 20, 2011 12:48:00 AM UTC-8, Nicolas M. Thiery wrote: On Tue, Dec 20, 2011 at 12:55:11AM +, Sagan, Bruce wrote: Formidable! This installed dot2tex. Thanks so much!! One last question. When I went back to the notebook and ran a view command (I just copied the first example of using this command from the section Crystals of Tableaux in Sage of the Classic Crystals thematic tutorial) I got as output the tex commands for the tikz picture of the crystal. Is there a way to get the picture itself printed in the notebook without having to create a latex file? Maybe I have to install another package? Alas, the notebook (or more precisely the component jsmath/mathjax which is the same used on e.g. mathscinet) isn't yet able to display all latex construct, and in particular tikz pictures. Instead, you can view it in an external pdf viewer: sage: view(B, pdflatex=True, tightpage=True) You could also use the jsmath avoid list: a list of strings which tells the notebook to use straight latex, rather than JSMath, to process them: sage: latex.add_to_jsmath_avoid_list('tikz') tells Sage to not try to use JSMath on any string which includes 'tikz'. This is documented in sage/misc/latex.py. You can do this to try an example: sage: from sage.misc.latex import latex_examples sage: G = latex_examples.graph() sage: G (prints an informative message about what you can do with G) I would hope that something similar would work with dot2tex, but I haven't actually tried it. -- John -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To view this discussion on the web visit https://groups.google.com/d/msg/sage-combinat-devel/-/vwiFON0ku2kJ. To post to this group, send email to sage-combinat-devel@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.
RE: [sage-combinat-devel] Re: dot2tex, combinat
Hi Nicolas, I tried using this command inside the VM, but it gave me Latex error in return. So I guess I'll just work from inside the notebook. Best, Bruce From: sage-combinat-devel@googlegroups.com [sage-combinat-devel@googlegroups.com] on behalf of Nicolas M. Thiery [nicolas.thi...@u-psud.fr] Sent: Tuesday, December 20, 2011 3:48 AM To: sage-combinat-devel@googlegroups.com Subject: Re: [sage-combinat-devel] Re: dot2tex, combinat On Tue, Dec 20, 2011 at 12:55:11AM +, Sagan, Bruce wrote: Formidable! This installed dot2tex. Thanks so much!! One last question. When I went back to the notebook and ran a view command (I just copied the first example of using this command from the section Crystals of Tableaux in Sage of the Classic Crystals thematic tutorial) I got as output the tex commands for the tikz picture of the crystal. Is there a way to get the picture itself printed in the notebook without having to create a latex file? Maybe I have to install another package? Alas, the notebook (or more precisely the component jsmath/mathjax which is the same used on e.g. mathscinet) isn't yet able to display all latex construct, and in particular tikz pictures. Instead, you can view it in an external pdf viewer: sage: view(B, pdflatex=True, tightpage=True) With this command, Sage produces the latex for the object B, creates a latex file, compiles it, and opens it in a viewer. However, I am not sure if opening an external viewer actually works when running inside a virtual machine. Anyone experience with that? Best, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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. -- 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-devel@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.
RE: [sage-combinat-devel] Re: dot2tex, combinat
Bonjour encore, Formidable! This installed dot2tex. Thanks so much!! One last question. When I went back to the notebook and ran a view command (I just copied the first example of using this command from the section Crystals of Tableaux in Sage of the Classic Crystals thematic tutorial) I got as output the tex commands for the tikz picture of the crystal. Is there a way to get the picture itself printed in the notebook without having to create a latex file? Maybe I have to install another package? Merci encore pour ton aide, Bruce From: sage-combinat-devel@googlegroups.com [sage-combinat-devel@googlegroups.com] on behalf of Florent Hivert [florent.hiv...@lri.fr] Sent: Monday, December 19, 2011 3:47 PM To: sage-combinat-devel@googlegroups.com Subject: Re: [sage-combinat-devel] Re: dot2tex, combinat Hi Bruce (1) None of these options worked to get back to mouse *outside* of the sage/VM window. The only way I could get the mouse back for the rest of my desktop was to do Control-Alt-Delete, tell the machine I was logging off, and then cancelling when it asked me to force shutdown of various programs. I never used it so I don't know exactly but googling a little suggest that right CTRLorALT + right CTRL may release your mouse. (2) Here is precisely what I am doing: Starting Oracle VM VirtualBox, typing Control C twice to quit the Sage notebook, this brings up the prompt [sage@sage sage]$ in the VM screen. I then type ./sage This brings up the prompt sage: in the VM screen. Then I start trying commands in the VM screen, for example if I type sage -i dot2tex You shouldn't type those inside sage. but in the VM. So right after hitting Control C twice type ./sage -i dot2tex Then you will enter sage with ./sage Florent -- 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-devel@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. -- 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-devel@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.
RE: [sage-combinat-devel] Re: dot2tex, combinat
I am now one step further: I can open the sage shell as explained in the README document (thanks, Nicolas, for pointing me to it). But then I have two problems. (1) My mouse arrow disappears making it impossible to do anything except type in the sage window. (2) I tried a number of commands to try an install dot2tex: sage -i dot2tex -i dot2tex install dot2tex and they all gave me syntax errors. Thanks for any further help you can give me. Cheers, Bruce From: sage-combinat-devel@googlegroups.com [sage-combinat-devel@googlegroups.com] on behalf of Nicolas M. Thiery [nicolas.thi...@u-psud.fr] Sent: Friday, December 09, 2011 4:55 PM To: sage-combinat-devel@googlegroups.com Subject: Re: [sage-combinat-devel] Re: dot2tex, combinat Dear Bruce, On Fri, Nov 25, 2011 at 06:21:44PM -0800, Bruce Sagan wrote: I had the same problem as William, but I am even further back. I don't understand how to get sage -sh to work. I am running sage in notebook form via VirtualBox on a Windows 7 machine. Typing the command into the notebook prompt doesn't work, and I can't find a command prompt which might indicate the shell. Thanks for any help you can give. Sorry for the slow answer; I am not much of a Sage on windows user. Apparently there are instructions on Using the Sage shell in: http://www.sagemath.org/mirror/win/README.txt Please get back to us in case of trouble. Best, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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. -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
Hi Bruce, On Sun, Dec 18, 2011 at 08:51:29PM +, Sagan, Bruce wrote: I am now one step further: I can open the sage shell as explained in the README document (thanks, Nicolas, for pointing me to it). But then I have two problems. (1) My mouse arrow disappears making it impossible to do anything except type in the sage window. Have you tried Escape ? Shift+escape ? Ctrl+Escape ? (2) I tried a number of commands to try an install dot2tex: sage -i dot2tex -i dot2tex install dot2tex and they all gave me syntax errors. Thanks for any further help you can give me. What is the precise error message ? Are you in the right directory ? Did you try ./sage ... instead of sage ... Cheers, Florent -- 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-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
Dear Bruce, On Fri, Nov 25, 2011 at 06:21:44PM -0800, Bruce Sagan wrote: I had the same problem as William, but I am even further back. I don't understand how to get sage -sh to work. I am running sage in notebook form via VirtualBox on a Windows 7 machine. Typing the command into the notebook prompt doesn't work, and I can't find a command prompt which might indicate the shell. Thanks for any help you can give. Sorry for the slow answer; I am not much of a Sage on windows user. Apparently there are instructions on Using the Sage shell in: http://www.sagemath.org/mirror/win/README.txt Please get back to us in case of trouble. Best, Nicolas -- Nicolas M. Thiéry Isil nthi...@users.sf.net http://Nicolas.Thiery.name/ -- 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-devel@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.
RE: [sage-combinat-devel] Re: dot2tex, combinat
I had one email exchange with Travis, but the issue is still not resolved. I will look at the web site. - Bruce From: sage-combinat-devel@googlegroups.com [sage-combinat-devel@googlegroups.com] on behalf of Anne Schilling [a...@math.ucdavis.edu] Sent: Friday, December 09, 2011 5:05 PM To: sage-combinat-devel@googlegroups.com Subject: Re: [sage-combinat-devel] Re: dot2tex, combinat On 12/9/11 1:55 PM, Nicolas M. Thiery wrote: Dear Bruce, On Fri, Nov 25, 2011 at 06:21:44PM -0800, Bruce Sagan wrote: I had the same problem as William, but I am even further back. I don't understand how to get sage -sh to work. I am running sage in notebook form via VirtualBox on a Windows 7 machine. Typing the command into the notebook prompt doesn't work, and I can't find a command prompt which might indicate the shell. Thanks for any help you can give. Sorry for the slow answer; I am not much of a Sage on windows user. Apparently there are instructions on Using the Sage shell in: http://www.sagemath.org/mirror/win/README.txt Please get back to us in case of trouble. As far as I know Travis already helped Bruce with this off-line. Cheers, Anne -- 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-devel@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. -- 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-devel@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.
[sage-combinat-devel] Re: dot2tex, combinat
I had the same problem as William, but I am even further back. I don't understand how to get sage -sh to work. I am running sage in notebook form via VirtualBox on a Windows 7 machine. Typing the command into the notebook prompt doesn't work, and I can't find a command prompt which might indicate the shell. Thanks for any help you can give. Best, Bruce On Nov 22, 10:38 am, Anne Schilling a...@math.ucdavis.edu wrote: On 11/21/11 11:02 PM, William Stein wrote: On Mon, Nov 21, 2011 at 7:01 PM, Anne Schilling a...@math.ucdavis.edu wrote: On 11/21/11 8:24 AM, William Stein wrote: On Mon, Nov 21, 2011 at 8:08 AM, Dima Pasechnik dimp...@gmail.com wrote: This means you have graphviz spkg installed under macosx... I cannot seem to be able to accomplish this: http://trac.sagemath.org/sage_trac/ticket/7438 I installed graphviz under OS X by installing it from the Graphviz website, instead of using the spkg. After installingdot2texusing sage -idot2tex does the command sage: CrystalOfTableaux(['A',2], shape=[1]).latex() '\n\\begin{tikzpicture}[=latex,line join=bevel,]\n%%\n\\node (1) at (8bp,162bp) [draw,draw=none] {${\\def\\lr#1{\\multicolumn{1}{|@{\\hspace{.6ex}}c@{\\hspace{.6ex}}|}{\\raisebox{-.3ex}{$#1$}}}\\raisebox{-.6ex}{$\\begin{array}[b]{c}\\cline{1-1}\\lr{1}\\cline{1-1}\\end{array}$}}$};\n \\node (3) at (8bp,10bp) [draw,draw=none] {${\\def\\lr#1{\\multicolumn{1}{|@{\\hspace{.6ex}}c@{\\hspace{.6ex}}|}{\\raisebox{-.3ex}{$#1$}}}\\raisebox{-.6ex}{$\\begin{array}[b]{c}\\cline{1-1}\\lr{3}\\cline{1-1}\\end{array}$}}$};\n \\node (2) at (8bp,86bp) [draw,draw=none] {${\\def\\lr#1{\\multicolumn{1}{|@{\\hspace{.6ex}}c@{\\hspace{.6ex}}|}{\\raisebox{-.3ex}{$#1$}}}\\raisebox{-.6ex}{$\\begin{array}[b]{c}\\cline{1-1}\\lr{2}\\cline{1-1}\\end{array}$}}$};\n \\draw [blue,-] (1) ..controls (8bp,140.79bp) and (8bp,121.03bp) .. (2);\n \\definecolor{strokecol}{rgb}{0.0,0.0,0.0};\n \\pgfsetstrokecolor{strokecol}\n \\draw (17bp,124bp) node {$1$};\n \\draw [red,-] (2) ..controls (8bp,64.789bp) and (8bp,45.027bp) .. (3);\n \\draw (17bp,48bp) node {$2$};\n%\n\\end{tikzpicture}\n' work? Yes. When I was preparing my talk, I was evidently using sage-4.7.1. I upgraded to a newer version of Sage, and the issue is totally resolved. Sorry for the noise and thanks for the further debugging questions. Just to confirm, doing sage: CrystalOfTableaux(['A',2], shape=[1]).latex_file('/tmp/a.tex') sage: no longer gives an error for me, and it *does* create the file /tmp/a.tex and if I go to the /tmp directory, pdflatex it, and view the resulting pdf, then I get the diagram. By the way, you should be able to bypass the step of pdflatex in a directory by using the commands sage: C = CrystalOfTableaux(['A',2], shape=[1]) sage: view(C) directly in Sage. The picture should just come up. Best, Anne- Hide quoted text - - Show quoted text - -- 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-devel@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.
[sage-combinat-devel] Re: dot2tex, combinat
This means you have graphviz spkg installed under macosx... I cannot seem to be able to accomplish this: http://trac.sagemath.org/sage_trac/ticket/7438 -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To view this discussion on the web visit https://groups.google.com/d/msg/sage-combinat-devel/-/e3UHcC27lokJ. To post to this group, send email to sage-combinat-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Tuesday, 22 November 2011 00:24:46 UTC+8, William Stein wrote: On Mon, Nov 21, 2011 at 8:08 AM, Dima Pasechnik dim...@gmail.com wrote: This means you have graphviz spkg installed under macosx... I cannot seem to be able to accomplish this: http://trac.sagemath.org/sage_trac/ticket/7438 I installed graphviz under OS X by installing it from the Graphviz website, instead of using the spkg. Thanks! I cannot reproduce the problem you experienced (on macosx 10.6.8, rather than 10.7, however). So I get these tableaux pictures just fine. I wish I used these tools last Spring when I taught representation theory. :) Dima -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To view this discussion on the web visit https://groups.google.com/d/msg/sage-combinat-devel/-/Njf_n_LKvKoJ. To post to this group, send email to sage-combinat-devel@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.
Re: [sage-combinat-devel] Re: dot2tex, combinat
On Mon, Nov 21, 2011 at 7:01 PM, Anne Schilling a...@math.ucdavis.edu wrote: On 11/21/11 8:24 AM, William Stein wrote: On Mon, Nov 21, 2011 at 8:08 AM, Dima Pasechnik dimp...@gmail.com wrote: This means you have graphviz spkg installed under macosx... I cannot seem to be able to accomplish this: http://trac.sagemath.org/sage_trac/ticket/7438 I installed graphviz under OS X by installing it from the Graphviz website, instead of using the spkg. After installing dot2tex using sage -i dot2tex does the command sage: CrystalOfTableaux(['A',2], shape=[1]).latex() '\n\\begin{tikzpicture}[=latex,line join=bevel,]\n%%\n\\node (1) at (8bp,162bp) [draw,draw=none] {${\\def\\lr#1{\\multicolumn{1}{|@{\\hspace{.6ex}}c@{\\hspace{.6ex}}|}{\\raisebox{-.3ex}{$#1$}}}\\raisebox{-.6ex}{$\\begin{array}[b]{c}\\cline{1-1}\\lr{1}\\cline{1-1}\\end{array}$}}$};\n \\node (3) at (8bp,10bp) [draw,draw=none] {${\\def\\lr#1{\\multicolumn{1}{|@{\\hspace{.6ex}}c@{\\hspace{.6ex}}|}{\\raisebox{-.3ex}{$#1$}}}\\raisebox{-.6ex}{$\\begin{array}[b]{c}\\cline{1-1}\\lr{3}\\cline{1-1}\\end{array}$}}$};\n \\node (2) at (8bp,86bp) [draw,draw=none] {${\\def\\lr#1{\\multicolumn{1}{|@{\\hspace{.6ex}}c@{\\hspace{.6ex}}|}{\\raisebox{-.3ex}{$#1$}}}\\raisebox{-.6ex}{$\\begin{array}[b]{c}\\cline{1-1}\\lr{2}\\cline{1-1}\\end{array}$}}$};\n \\draw [blue,-] (1) ..controls (8bp,140.79bp) and (8bp,121.03bp) .. (2);\n \\definecolor{strokecol}{rgb}{0.0,0.0,0.0};\n \\pgfsetstrokecolor{strokecol}\n \\draw (17bp,124bp) node {$1$};\n \\draw [red,-] (2) ..controls (8bp,64.789bp) and (8bp,45.027bp) .. (3);\n \\draw (17bp,48bp) node {$2$};\n%\n\\end{tikzpicture}\n' work? Yes. When I was preparing my talk, I was evidently using sage-4.7.1. I upgraded to a newer version of Sage, and the issue is totally resolved. Sorry for the noise and thanks for the further debugging questions. Just to confirm, doing sage: CrystalOfTableaux(['A',2], shape=[1]).latex_file('/tmp/a.tex') sage: no longer gives an error for me, and it *does* create the file /tmp/a.tex and if I go to the /tmp directory, pdflatex it, and view the resulting pdf, then I get the diagram. The traceback from before (with sage-4.7.1) was this, but who cares, since it's fixed now: sage: C = CrystalOfTableaux(['A',2], shape=[1]) sage: C.latex_file('/tmp/a.tex') dot2tex not available. Install after running 'sage -sh' --- TypeError Traceback (most recent call last) /Users/wstein/sage/install/sage-4.7.1.rc0/ipython console in module() /Users/wstein/sage/install/sage-4.7.1.rc0/local/lib/python2.6/site-packages/sage/categories/crystals.pyc in latex_file(self, filename) 379 380 f = open(filename, 'w') -- 381 f.write(header + self.latex() + footer) 382 f.close() TypeError: cannot concatenate 'str' and 'NoneType' objects I do have from sage.misc.latex import latex latex.add_to_preamble('\\usepackage{tikz}') latex.add_to_jsmath_avoid_list('\\begin{tikzpicture}') in my init.sage file. I am not sure whether this makes a difference. Best, Anne -- 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-devel@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. -- 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-devel@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.