[pdftex] help

Marcio Froelich Friedrich mff at lactec.org.br
Thu Feb 24 12:37:04 CET 2005


Please unsubscribe.

-----Mensagem original-----
De: pdftex-request at tug.org [mailto:pdftex-request at tug.org]
Enviada em: quinta-feira, 24 de fevereiro de 2005 08:01
Para: pdftex at tug.org
Assunto: pdftex Digest, Vol 25, Issue 17


Send pdftex mailing list submissions to
	pdftex at tug.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://tug.org/mailman/listinfo/pdftex
or, via email, send a message with subject or body 'help' to
	pdftex-request at tug.org

You can reach the person managing the list at
	pdftex-owner at tug.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of pdftex digest..."


Today's Topics:

   1. hyperref and relative local files (James W. Haefner)
   2. Re: hyperref and relative local files (James W. Haefner)
   3. Re: hyperref and relative local files (James W. Haefner)


----------------------------------------------------------------------

Message: 1
Date: 23 Feb 2005 17:34:56 -0700
From: "James W. Haefner" <James.Haefner at usu.edu>
Subject: [pdftex] hyperref and relative local files
To: pdfTeX <pdftex at tug.org>
Message-ID: <1109205295.727.55.camel at bnr233.bnr.usu.edu>
Content-Type: text/plain

I apologize for this mostly off-topic question, but I do not have access
to comp.text.tex and there may be a relation to pdftex... I'm using
hyperref version hyperref 2003/11/30 v6.74m.   Here's what I tried to
post:

This question/problem has been asked many times before, but so far 
it has not been answered that I can tell after googling the archives. 
Hopefully I missed something obvious.

I want to put a pdf with hyperref on a CD and have a link
to a local file that will be opened by a browser.  E.g.:

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{file://subdir/index.html}{Test link}
\end{document}

where "subdir" is a directory on the CD and index.html is 
is an index file for a html file on the CD.  
I've tried various permutations of the \href
line (eg, 0 slashes, 3 slashes, a leading dot), but mostly I get the
error:
Can not open "file:/subdir/index.html"

In other words, something is putting a forward slash
in front of the path.  Is there no way around this, even an inelegant
hack involving a hand-coded \special?  Is it a problem with hyperref or
browsers?  How can I solve my problem?  (Clearly, a CD can be mounted
anywhere, so absolute paths (which work correctly) are not a viable
solution.)

Thanks in advance.

Jim 

-- 
James W. Haefner             Email: James.Haefner at usu.edu
Dept Biology/Ecology Center  Voice: 435-797-3553
Utah State University        FAX:   435-797-1575
Logan, UT 84322-5305




------------------------------

Message: 2
Date: 23 Feb 2005 18:19:15 -0700
From: "James W. Haefner" <James.Haefner at usu.edu>
Subject: Re: [pdftex] hyperref and relative local files
To: pdfTeX <pdftex at tug.org>
Message-ID: <1109207955.727.61.camel at bnr233.bnr.usu.edu>
Content-Type: text/plain

Follow-up:  I've learned that the following works in Windows using
acrobat 6.0:

\href{run:subdir/index.html}{Local}

-j


On Wed, 2005-02-23 at 17:34, James W. Haefner wrote:
> I apologize for this mostly off-topic question, but I do not have access
> to comp.text.tex and there may be a relation to pdftex... I'm using
> hyperref version hyperref 2003/11/30 v6.74m.   Here's what I tried to
> post:
> 
> This question/problem has been asked many times before, but so far 
> it has not been answered that I can tell after googling the archives. 
> Hopefully I missed something obvious.
> 
> I want to put a pdf with hyperref on a CD and have a link
> to a local file that will be opened by a browser.  E.g.:
> 
> \documentclass{article}
> \usepackage{hyperref}
> \begin{document}
> \href{file://subdir/index.html}{Test link}
> \end{document}
> 
> where "subdir" is a directory on the CD and index.html is 
> is an index file for a html file on the CD.  
> I've tried various permutations of the \href
> line (eg, 0 slashes, 3 slashes, a leading dot), but mostly I get the
> error:
> Can not open "file:/subdir/index.html"
> 
> In other words, something is putting a forward slash
> in front of the path.  Is there no way around this, even an inelegant
> hack involving a hand-coded \special?  Is it a problem with hyperref or
> browsers?  How can I solve my problem?  (Clearly, a CD can be mounted
> anywhere, so absolute paths (which work correctly) are not a viable
> solution.)
> 
> Thanks in advance.
> 
> Jim 
-- 
James W. Haefner             Email: James.Haefner at usu.edu
Dept Biology/Ecology Center  Voice: 435-797-3553
Utah State University        FAX:   435-797-1575
Logan, UT 84322-5305




------------------------------

Message: 3
Date: 23 Feb 2005 19:04:07 -0700
From: "James W. Haefner" <James.Haefner at usu.edu>
Subject: Re: [pdftex] hyperref and relative local files
To: pdfTeX <pdftex at tug.org>
Message-ID: <1109210647.5171.5.camel at bnr233.bnr.usu.edu>
Content-Type: text/plain

2nd follow-up and conclusion:
The \href{} line below also works with linux acroread 5.06/5.0.10 *as
long as" the mozilla browser is already open (RH9 and FC3).  It fails if
it is not open, but a subsequent click on the link will work.  So,
perversely, if the user double clicks *slowly* it works the "first"
time. I haven't tested it on other linux browsers.

(Sorry about all this...) If someone has any additional
insights/comments, please send them to me offline.


Jim


On Wed, 2005-02-23 at 18:19, James W. Haefner wrote:
> Follow-up:  I've learned that the following works in Windows using
> acrobat 6.0:
> 
> \href{run:subdir/index.html}{Local}
> 
> -j
> 
> 
> On Wed, 2005-02-23 at 17:34, James W. Haefner wrote:
> > I apologize for this mostly off-topic question, but I do not have access
> > to comp.text.tex and there may be a relation to pdftex... I'm using
> > hyperref version hyperref 2003/11/30 v6.74m.   Here's what I tried to
> > post:
> > 
> > This question/problem has been asked many times before, but so far 
> > it has not been answered that I can tell after googling the archives. 
> > Hopefully I missed something obvious.
> > 
> > I want to put a pdf with hyperref on a CD and have a link
> > to a local file that will be opened by a browser.  E.g.:
> > 
> > \documentclass{article}
> > \usepackage{hyperref}
> > \begin{document}
> > \href{file://subdir/index.html}{Test link}
> > \end{document}
> > 
> > where "subdir" is a directory on the CD and index.html is 
> > is an index file for a html file on the CD.  
> > I've tried various permutations of the \href
> > line (eg, 0 slashes, 3 slashes, a leading dot), but mostly I get the
> > error:
> > Can not open "file:/subdir/index.html"
> > 
> > In other words, something is putting a forward slash
> > in front of the path.  Is there no way around this, even an inelegant
> > hack involving a hand-coded \special?  Is it a problem with hyperref or
> > browsers?  How can I solve my problem?  (Clearly, a CD can be mounted
> > anywhere, so absolute paths (which work correctly) are not a viable
> > solution.)
> > 
> > Thanks in advance.
> > 
> > Jim 
-- 
James W. Haefner             Email: James.Haefner at usu.edu
Dept Biology/Ecology Center  Voice: 435-797-3553
Utah State University        FAX:   435-797-1575
Logan, UT 84322-5305




------------------------------

_______________________________________________
pdftex mailing list
pdftex at tug.org
http://tug.org/mailman/listinfo/pdftex


End of pdftex Digest, Vol 25, Issue 17
**************************************



More information about the pdftex mailing list