-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with tkz packages #105
Comments
It is now on ctan, I will update this ASAP. |
OK I fixed it and tkz-berge. Since it has moved to ctan we may be able to package it better in the future. |
Now the check sums are wrong (see below). And what about the issue that nothing depends on them?
2011-11-19 06:51:53 (6.64 MB/s) - `/usr/portage/distfiles/latextkz-graph.sty' saved [4413] ('Filesize does not match recorded size', 4413L, 4151) !!! Couldn't download 'latextkz-graph.sty'. Aborting.
|
Sorry I made an horrible typo and forgot a "/". Dependency, we decided some time ago that it was pretty much optional as a package especially since we didn't it to build sage-latex which we had included it in the first place. I presume you fell it is wrong? |
Thanks, both merged fine now. What I expect is that latex commands just work when the latex use flag is enabled. Which brings me back to the original problem. Even after merging these two packages I still get the "Unknown environment "tikzpicture"' error. Any idea what I'm missing? |
Digging a bit deeper I get: |
It's part of texlive-pictures-2011 (not 2010), which isn't stable... Not sure what to do here. Could you add a separate package for this? I don't feel like going ~arch with texlive. |
It's part of tkz-base. I am having trouble getting it to install. It is probably a better idea to use g-ctan it is unstable as well but you may be able to install it as part of texlive-2010. I am testing it. |
No go with g-ctan-2010.2 unfortunately. I'll try to sort out the installation of the .tex files which is what is not working at the moment. Ideas welcome. |
Oh blast! that makes things complicated, from the latex-package eclass manpage: NOTE: The CTAN "directory grab" function creates files with different MD5 signatures EVERY TIME. For this reason, if you are grabbing from the CTAN, you must either grab each file individually, or find a place to mirror an archive of them. |
I put something hackish together, see if it works. If it is provided by texlive-pictures-2011 I'll put some blockers. We should just drop those ebuilds once texlive-2011 gets stable. |
Thanks for all the work you're putting into this! tkz-base installed just fine. I noticed that texlive-pictures contains all three tkz packages in the overlay. I suggest to add a dep of the form latex? ( || ( >=dev-texlive/texlive-pictures-2011 ( dev-tex/tkz-base dev-tex/tkz-berge dev-tex/tkz-graph ) ) ) to sage or sage-latex. I guess there should be a dep between tkz-{berge,graph} and tkz-base. Now back to the problem: What works now is: I tried passing debug=True to view, but it doesn't give a clue. Any idea how to debug further? |
While digging through [1], I found that some things require dev-tex/dot2tex and media-gfx/graphviz (the latter requires the following use changes: media-libs/gd truetype fontconfig). [1] http://www.sagemath.org/doc/reference/sage/graphs/graph_latex.html |
OK we will have to fix all this dependency mess. Once this is sorted we will probably have a more complete support for latex stuff out of the box than upstream sage has :) |
The fact that the latex code with the \begin{tikzpicture} ... \end{tikzpicture} environment can be placed in a cell with a beginning %latex seems to indicate that the notebook "knows" about tikzpicture. I believe this environment is provided by latex.add_to_jsmath_avoid_list("tikzpicture") See view? from the sage prompt. I'm not sure if there is a way to avoid the |
I guess I had too many windows opened. The latex.add_to_jsmath_avoid_list("tikzpicture") did not come from the online sage documentation for "view" but from site-packages/sage/misc/latex.py, i.e. To use, first try calling 'view' on this object -- you should get |
That's interesting. Can you comment on that few? |
Two year and a half without comments. I am closing this, re-open if you want to discuss the matter further. |
I just noticed that even though I have the latex use flag for sage enabled dev-tex/tkz-berge and dev-tex/tkz-graph aren't installed. This lets sage print 'Unknown environment "tikzpicture"' in the notebook on some commands (e.g. view(Graph(4)).
I went to install these two but at least dev-tex/tkz-graph fails to fetch.
!!! Couldn't download 'tkz-graph.sty'. Aborting.
The text was updated successfully, but these errors were encountered: