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
tutorial: long lines in verbatim environments get cut off in pdf file #2041
Comments
comment:1
Hi Alex, you seem to have used some kind of hard wrapping to correct the issue. And the result some times cases line breaks inside words like
Cheers, Michael |
comment:2
Yes, that was on purpose (as I said above). That's precisely how Sage's output is printed, I don't see why it should be beautified for documentation purposes. The point of the tutorial is to get people used to the system, not to some idealized notion of the system. Anyway, that was just my train of thought when working on this, and I'm willing to change my mind if there are arguments against it. |
comment:3
I have fixed the problem Michael pointed out, and did some more beautification work on the tutorial: some typos, some changes in formulation. I've replaced the old patch with the new and improved one. |
comment:4
Except for the hunk
the patch looks good. We use Cheers, Michael |
comment:5
I had to resolve some rejects since some of the fixes already made it in. The final version of the patch that I applied can be found at To get the full picture look at the commit prior to this patch. Cheers, Michael |
comment:6
Merged in Sage 2.10.2.alpha1 |
comment:7
The patch actually causes various doctest failures in Cheers, Michael |
Attachment: 2041-tut_long_lines.patch.gz |
comment:8
OK, I've redone this patch to fix the doctest failures. Right now there are no doctest failures, at the price of three lines being too long. I say we put this patch in as it is, and deal with these three lines when we get a chance. |
comment:10
Since the patch has already been replied I need a patch that reverts the three problematic issues. I will look into this or once 2.10.1.alpha1 is out you could give me a relative patch ;) Cheers, Michael |
comment:11
I'm getting rather confused with what I have now versus what's merged versus what's on trac, so I'll just wait until 2.10.2.alpha1 and submit a relative patch (unless of course mabshoff will already have worked his magic :) |
comment:12
I have uploaded a patch that is based on 2.10.2.alpha1 and passes all the tests in sage -t tut.tex. |
comment:13
Attachment: tut_verbatim.patch.gz The new patch
Applying with that hunk removed. Great work Alex. Cheers, Michael |
comment:14
Merged |
See the discussion at
http://groups.google.com/group/sage-devel/browse_thread/thread/99ef95ceff366175/8e44f7219c7394d9
Lines longer than about 74 characters in verbatim environments are longer than the text width in the pdf files. Worse, if they're longer than about 80 characters they just fall off the page and the rest gets cut off.
The attached doc patch does the following:
Component: documentation
Issue created by migration from https://trac.sagemath.org/ticket/2041
The text was updated successfully, but these errors were encountered: