I can confirm thatB = crystals.Tableaux(['A',2], shape=[2,1]); view(B, tightpage=True)does not work with the latest Sage beta.It looks as if some tikz-related stuff in the TeX file headeris messed up.
Hi,
I am investigating this. Current status:
Remember that graphs can be latex rendered in two ways: either by
having Sage produce tikz manually (1), or through dot2tex (2). For
general graphs, the former is the default. For graphs produced from
crystals, the default is to use (2) if dot2tex is installed, and (1)
otherwise. At the end the issue is not in dot2tex: its presence just
hides the bug.
Here is my current minimal example, which breaks independently of
dot2tex:
sage: t = StandardTableaux(4).random_element()
sage: G = DiGraph([[t,t]], loops=True)
sage: latex(G)
**produces something**
sage: view(G)
**boom**
On Tue, May 30, 2017 at 11:43:13PM -0700, Dima Pasechnik wrote:
> I can confirm that
> B = crystals.Tableaux(['A',2], shape=[2,1]); view(B, tightpage=True)
> does not work with the latest Sage beta.
> It looks as if some tikz-related stuff in the TeX file header
> is messed up.
> On Wednesday, May 31, 2017 at 7:38:29 AM UTC+1, Dima Pasechnik wrote:
>
> Perhaps SMC people can explain where the discrepancy in the TeX output
> comes from.
> I cc to the relevant group.
> On Monday, May 29, 2017 at 9:48:45 PM UTC+1, Julie Beier wrote:
>
> I have been trying to use the tableaux crystal pictures in Sage and,
> while it works on the cloud, it does not work on my computer. I have
> updated Sage (then reverted to the version of Sage used on the cloud),
> updated on my LaTeX packages, and installed dot2tex. The code I'm
> using is from the help pages: B = crystals.Tableaux(['A',2],
> shape=[2,1]); view(B, tightpage=True). The Tex files generated by the
> cloud and by my computer are different. The one generated by the cloud
> compiles, but the one from my computer does not. I've attached these.
> Any ideas? Thanks for your help!
>
> --
> You received this message because you are subscribed to the Google
> Groups "sage-combinat-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [1]sage-combinat-devel+unsub...@googlegroups.com.
> To post to this group, send email to
> [2]sage-comb...@googlegroups.com.
> Visit this group at
> [3]https://groups.google.com/group/sage-combinat-devel.
> For more options, visit [4]https://groups.google.com/d/optout.
>
> References
>
> 1. mailto:sage-combinat-devel+unsub...@googlegroups.com
All,Thanks all for the help; glad to know it wasn't just something trivial that I missed.This work around doesn't seem to work for whole crystals as there is no set_latex_options option. Anyway to work around the problem there?
Dima,Sorry but I'm not sure I understand. I followed the directions in the sage help that say to do sage -i 'dot2tex'. That is done. But it still creates the different tex files, and I still have the problem.
Nicolas's work around makes the small example he posted work, but it doesn't work for the crystals. Was I supposed to install dot2tex differently?
So I guess this was the point of my message. What you just posted does not work for me. It says True for dot2tex installed, but I get the two different tex files (doing this on my computer versus on the cloud) and on my computer it does not generate something that works.
Current version of SAGE: 7.5.1 though this happened with several versions, all binary installOperating System: OSX 10.11.6Version of Tex: Version 3.14159265-2.6-1.40.17 (TeX Live 2016); All packages up to date
As previously mentioned, this was all what matches on the cloud for SAGE and Tex.
Hi Dima,I get errors when I do this in Sagenb (which is my usual place) and when I run it in Terminal. (I've always installed the .dmg and not the .app version.) The errors are slightly different but both have to do with an inability to compile the tex code. This is why I am so confused. I don't really understand why the tex code should be different when all the builds are the same.
Could you run
sage -b
and then try the latter checks again?
Thanks.
In file included from /Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/syslimits.h:7:0,
from /Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/limits.h:34,
from /Applications/SageMath/local/include/python2.7/Python.h:1,
from /Applications/SageMath/src/build/cythonized/sage/algebras/quatalg/quaternion_algebra_element.cpp:60:
/Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
[ 2/450] creating build/temp.macosx-10.9-x86_64-2.7/Applications/SageMath/src/build/cythonized/sage/algebras/letterplace
gcc -fno-strict-aliasing -I/Applications/SageMath/local/var/tmp/sage/build/python2-2.7.13.p0/include -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/Applications/SageMath/local/include -I/Applications/SageMath/local/include/python2.7 -I/Applications/SageMath/local/lib/python2.7/site-packages/numpy/core/include -I/Applications/SageMath/src -I/Applications/SageMath/src/sage/ext -I/Applications/SageMath/src/build/cythonized -I/Applications/SageMath/src/build/cythonized/sage/ext -I/Applications/SageMath/local/include/python2.7 -c /Applications/SageMath/src/build/cythonized/sage/algebras/letterplace/free_algebra_element_letterplace.cpp -o build/temp.macosx-10.9-x86_64-2.7/Applications/SageMath/src/build/cythonized/sage/algebras/letterplace/free_algebra_element_letterplace.o -I/Applications/SageMath/local/include/singular -I/Applications/SageMath/local/include/ -I/Applications/SageMath/local/include -DSING_NDEBUG -DOM_NDEBUG -fno-strict-aliasing
error: command 'gcc' failed with exit status 1
In file included from /Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/syslimits.h:7:0,
from /Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/limits.h:34,
from /Applications/SageMath/local/include/python2.7/Python.h:1,
from /Applications/SageMath/src/build/cythonized/sage/algebras/letterplace/free_algebra_element_letterplace.cpp:69:
/Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
make: *** [sage] Error 1
Ok... So when I did sage -b I got a fatal error; here's the end that lists the error part:In file included from /Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/syslimits.h:7:0,
from /Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/limits.h:34,
from /Applications/SageMath/local/include/python2.7/Python.h:1,
from /Applications/SageMath/src/build/cythonized/sage/algebras/quatalg/quaternion_algebra_element.cpp:60:
/Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
[ 2/450] creating build/temp.macosx-10.9-x86_64-2.7/Applications/SageMath/src/build/cythonized/sage/algebras/letterplace
gcc -fno-strict-aliasing -I/Applications/SageMath/local/var/tmp/sage/build/python2-2.7.13.p0/include -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/Applications/SageMath/local/include -I/Applications/SageMath/local/include/python2.7 -I/Applications/SageMath/local/lib/python2.7/site-packages/numpy/core/include -I/Applications/SageMath/src -I/Applications/SageMath/src/sage/ext -I/Applications/SageMath/src/build/cythonized -I/Applications/SageMath/src/build/cythonized/sage/ext -I/Applications/SageMath/local/include/python2.7 -c /Applications/SageMath/src/build/cythonized/sage/algebras/letterplace/free_algebra_element_letterplace.cpp -o build/temp.macosx-10.9-x86_64-2.7/Applications/SageMath/src/build/cythonized/sage/algebras/letterplace/free_algebra_element_letterplace.o -I/Applications/SageMath/local/include/singular -I/Applications/SageMath/local/include/ -I/Applications/SageMath/local/include -DSING_NDEBUG -DOM_NDEBUG -fno-strict-aliasing
error: command 'gcc' failed with exit status 1
In file included from /Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/syslimits.h:7:0,
from /Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/limits.h:34,
from /Applications/SageMath/local/include/python2.7/Python.h:1,
from /Applications/SageMath/src/build/cythonized/sage/algebras/letterplace/free_algebra_element_letterplace.cpp:69:
/Applications/SageMath/local/lib/gcc/x86_64-apple-darwin15.6.0/5.4.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
make: *** [sage] Error 1
The checks still show false.
Here's the dot2tex installation log:
This returns false.
J
On Thursday, June 1, 2017 at 2:40:04 PM UTC-4, Dima Pasechnik wrote:<blockquote class="gmail_quote" style="margin:0;