-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
Problem with view on MacOS #38745
Comments
Bonjour Anne, Can you tell me if the following works better?
I was myself very disapointed with the view command a few years ago. My opinion is that using object oriented programming works better than a global function like view. I spent a long time writing and improving the class TikzPicture inside my slabbe package so that it matches how I do research and it is now in SageMath since 2 or 3 years, but which could be used a bit more within SageMath. See documentation here: https://doc.sagemath.org/html/en/reference/misc/sage/misc/latex_standalone.html It can even be used with sagetex as follows:
Years ago, I was also having an issue with the border when using view on Mac. I fixed it by allowing the possibility of providing config options from the latex standalone package. For instance, the following is from the doc:
Also, you may check that I give a default border of 4mm in the code of I would suggest to add a new method
If you wish, I may create a pull request about that shortly. |
Bonjour Sebastien! Yes, thank you, your suggestions work great for me (except that after the t.pdf() command sage hangs and the prompt does not reappear). |
For me, your command sage: B = crystals.Tableaux(['B',2],shape=[1])
sage: view(B) runs latex and the latex fails. Hence no image is produced at all. I wonder how you got your (deficient) image. Anyway I investigated the latex code produced for B. It has indeed problems. My latex engine cannot swallow the code. With more work, I got this: Is this want you expect to see? |
@kwankyu We typically use the @anneschilling Is the Of course, there issue here that still needs to be fixed, independent of |
I have no idea about dot2tex. I don't know it. |
Hi Travis, yes, I installed dot2tex before running view. Sebastien has a fix to my problem, see #38759. Best wishes, Anne |
@anneschilling Thank you for the clarification. Will you be reviewing #38759? |
@tscrim I was planning to, but now I am having trouble compiling sage again, so I need to figure out why. Also, I have to fold in #38339, otherwise the view command did not work either. |
Steps To Reproduce
On MacOS 15.0 with SageMath built from source (version 10.5.beta2) and ticket #38339 applied and also on MacOS 10.15.7 installed with Conda (version 10.5.beta2) the following commands:
sage: B = crystals.Tableaux(['B',2],shape=[1])
sage: view(B)
produce a pdf where most of the picture is missing.
Expected Behavior
The expected behavior is that the full crystal 1 -1-> 2 -2-> 0 -2-> -2 -1-> -1 appears in the pdf.
Actual Behavior
Only -1-> -1 appears in the pdf.
sage.pdf
Additional Information
No response
Environment
Checklist
The text was updated successfully, but these errors were encountered: