Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
long lines get cut off in pdf documentation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Ghitza  
View profile  
 More options Jan 30 2008, 9:43 pm
From: Alex Ghitza <aghi...@gmail.com>
Date: Wed, 30 Jan 2008 21:43:54 -0500
Local: Wed, Jan 30 2008 9:43 pm
Subject: long lines get cut off in pdf documentation
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

This comes up in the pdf versions of the various documentation files:
the tutorial, the reference manual, the programming manual, the
constructions file.

When you have a long-ish line in a verbatim environment, and it exceeds
the width of the page, it gets cut off.  For an example (there are
many), search for "capped relative precision" in tut.pdf or tut.tex.

To solve this, it might be easiest to use a latex package for source
code environments like Listings, see
http://www.ctan.org/tex-archive/macros/latex/contrib/listings/
It does line-breaking, and it has a whole lot of other fancy cool features.

One problem is that it is released under the Latex Project Public
License, which is more restrictive than (and hence incompatible with)
GPL, see
http://www.gnu.org/philosophy/license-list.html
but maybe the maintainer of Listings can be persuaded to relicense it?

Another possibility would be to make our own customized verbatim
environment...

Thoughts?

Alex

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHoTXqdZTaNFFPILgRAh+XAJ4oceOOVxCpLEbn7BYmiXqvJaEXLQCdEMDT
5XubqKJprKTtp7+cIJw46vc=
=aaoK
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Grout  
View profile  
 More options Jan 30 2008, 9:50 pm
From: Jason Grout <jason-s...@creativetrax.com>
Date: Wed, 30 Jan 2008 20:50:54 -0600
Local: Wed, Jan 30 2008 9:50 pm
Subject: Re: long lines get cut off in pdf documentation

Do we need to include the listings package in Sage?  I have the listings
package in my system tex distribution already (texlive on ubuntu, but I
think I have the optional tex packages installed).

Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Ghitza  
View profile  
 More options Jan 30 2008, 10:00 pm
From: Alex Ghitza <aghi...@gmail.com>
Date: Wed, 30 Jan 2008 22:00:19 -0500
Local: Wed, Jan 30 2008 10:00 pm
Subject: Re: [sage-devel] Re: long lines get cut off in pdf documentation
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Very good point.  I also have it in my tex distribution on gentoo
by default.

Alex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHoTm6dZTaNFFPILgRArEpAJ9Bkg7M44Zpj6DTeKxtWFNXhH5T+wCeLPDE
FfLaOgnoaXj0wnv4CDK9fCY=
=FATK
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
root  
View profile  
 More options Jan 31 2008, 12:12 am
From: root <d...@axiom-developer.org>
Date: Thu, 31 Jan 2008 00:12:47 -0500
Local: Thurs, Jan 31 2008 12:12 am
Subject: Re: [sage-devel] long lines get cut off in pdf documentation

For Axiom I use noweb which handles inline code well.
And it has the feature that you can extract and execute the code
as well as latex the document.

Tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Stein  
View profile  
 More options Jan 31 2008, 12:20 am
From: "William Stein" <wst...@gmail.com>
Date: Thu, 31 Jan 2008 00:20:52 -0500
Local: Thurs, Jan 31 2008 12:20 am
Subject: Re: [sage-devel] long lines get cut off in pdf documentation
On Jan 30, 2008 9:43 PM, Alex Ghitza <aghi...@gmail.com> wrote:

Are options are:

 (1) Fix the original tex so that it is word wrapped. This would
involve modifying
the file
   devel/doc/ref/update_script.py
so that long lines are automatically word wrapped when the reference manual
is assembled out of the source code.  We would have to do this by hand for
tut.tex, const.tex, etc.

 (2)  Use some sort of listings latex package, as suggested above.

The license issue in (2) is moot as Jason Grout points out.  Whether (2) will
work or not is very unclear to me.  Sage uses the Python documentation
framework,
which involves using heavily customized latex2html and perl scripts.  It's
possible (2) just won't work with them.  I don't know.   Another potential issue
with 2 is that the automatic word wrapping might be stupid in such a
way that one
can't just ALWAYS 100% of the time cut and paste whatever is in the word wrapped
listing environments and get something that works.   If this is the
case, then (2) is
not an option.  With (1) we can make sure it is the case, since we
have total control.

 -- William


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »