Bug 56149 - hyperref \href not working properly for creating URL links in PDF files
Summary: hyperref \href not working properly for creating URL links in PDF files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tetex
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-13 13:01 UTC by Dave Reed
Modified: 2007-04-18 16:38 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-11-13 13:03:37 UTC
Embargoed:


Attachments (Terms of Use)
lab1.tex (480 bytes, patch)
2001-11-13 13:03 UTC, Dave Reed
no flags Details | Diff

Description Dave Reed 2001-11-13 13:01:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012

Description of problem:
executing: latex lab1 ; dvips -Ppdf lab1 -o ; ps2pdf lab1.ps
produces a pdf file with a link, but the link wants to find ".pdf"
rather than the actual URL
acroread complains that no such file can be found, but doesn't name the file

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.use attached lab1.tex file
2.latex lab1 ; dvips -Ppdf lab1 -o ; ps2pdf lab1.ps
3.xpdf lab1.pdf
	

Actual Results:  link in the pdf file exists but apparently it is not a
link to the
URL

Expected Results:  clicking on the link would open the URL

Additional info: couldn't find the attach file any more so here is the
lab1.tex file
\documentclass[11pt]{article}

\usepackage[dvips,ps2pdf]{hyperref}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


You may either type the program in from scratch or download parts.cpp
from\\
\href
{http://capital2.capital.edu/faculty/dreed/Courses/CS160/resources.html}
{http://capital2.capital.edu/faculty/dreed/Courses/CS160/resources.html}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\end{document}

Comment 1 Dave Reed 2001-11-13 13:03:32 UTC
Created attachment 37362 [details]
lab1.tex

Comment 2 Tim Waugh 2001-11-13 13:15:06 UTC
You cannot have \href on a line on its own.  Instead use

\href{http://...}
{http://...}

The hyperref manual doesn't show any examples that have \href on its own on a 
line, so I'll assume for the moment that it's just not intended to be used 
like that.

Thanks for the report.


Comment 3 Dave Reed 2001-11-13 13:27:47 UTC
It did work on separate lines under RedHat 7.1, but obviously I can make that
change. Thanks for the help.



Note You need to log in before you can comment on or make changes to this bug.