This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Erroneous \url command in python.sty
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, ryorke, tim.peters
Priority: normal Keywords:

Created on 2005-09-03 15:18 by ryorke, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
commandlog.txt ryorke, 2005-09-03 15:18 GhostScript output for api.pdf
python.sty-url.diff ryorke, 2005-09-03 15:24 Diff to update \url and \ulink commands.
Messages (4)
msg26187 - (view) Author: Rory Yorke (ryorke) Date: 2005-09-03 15:18
The \url and \ulink commands in texinputs/python.sty
produce erroneous PDF files. This can be fairly easily
tested using GhostScript (see the attached log file for
an example). 

The current Python 2.4.1 PDF docs (as downloadable from
www.python.org) have this error.

Although the error does not prevent correct rendering
in viewers such as gv, xpdf or acroread, the link is
absent.

The attached patch partially addresses this, by
changing the arguments to the \pdfstart command used.
The changes are taken straight from
texmf/tex/latex/hyperref/hpdftex.def; that file has the
following version header:

%% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz,
%% RCS: $Id: hyperref.dtx 6.71 2000/10/04 rahtz Exp rahtz $

I don't pretend to understand the TeX code, but it does
fix some of the problem.

Some URLs, like
http://sourceforge.net/bugs/?group_id=5470, are not
linked to correctly. That particular URL becomes

http://sourceforge.net/bugs/?groupunhbox%20voidb@x%20penalty%20@M%20hskip%20z@skip%20unhbox%20voidb@x%20kern%20.06emvbox%20{hrule%20width.3em}discretionary%20{-}{}{}penalty%20@M%20hskip%20z@skip%20id=5470

-- I guess that has something to do with the underscore.

The diff was generated relative to Python CVS head of 3
Sept 2005; the python.sty file had version 1.113.

The python executable used was 2.4.1, not CVS.
msg26188 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2006-05-25 02:05
Logged In: YES 
user_id=3066

I can't seem to get the attachments; there are no links for
them!  Something appears to be wrong with SourceForge.

It would not surprise me it underscores break the PDF;
there's too much magic about them.
msg26189 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2006-05-25 02:09
Logged In: YES 
user_id=31435

Fred, there are links, but you'll probably have to use your
horizontal scrollbar to find them (way off on the right).
msg26190 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2006-05-25 02:46
Logged In: YES 
user_id=3066

There should be a law against horizontal scrolling.  :-(

The fix is now applied to the trunk (revision 46205),
and the Python 2.4.x branch (revision 46206).
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42336
2005-09-03 15:18:45ryorkecreate