On 2003-08-09, 04:42 GMT, Xinwei Yu wrote:
> Hi, all,

Sorry, for answering too fast without investigating the issue somehow.

>     I try to put in my pdf notes (generated by LyX) some hyperlinks
> to other pdf papers in the same directory. So I just use the
> hyperref package and then use the Insert->URL function. I put, e.g.,
> 
> file://file.pdf in URL and filename in NAME

Well, this is certainly not the correct URL -- see RFC1808. The correct
one is file:file.pdf (// introduces the network part).

> 1. both "filename" and "file://file.pdf" is shown in my pdf file,
>     and only the latter is made a hyperlink. Checking the "HTML type"
>     box didn't change anything.

Actually, I have fought with this ``feature'' for years and I have no
answer to that. However, the one to blame (and report bug to -- which
I never did, shame on me!) is the author/maintainer of hyperref LaTeX
package.

> 2. when I click the link, it doesn't work, said the file couldn't
>     be found. So the pdf hyperlink won't work with relative path?
>     that would be very disappointing!

This is IMHO bug in Mozilla (which you use as urlCommand in your
~/.xpdfrc, don't you?). See above for the reference to RFC. For example,
lynx behaves with file:newfile1.pdf correctly.

> 3. I changed the path to the absolute one,i.e., 
>     file:///home/blah/blah/file.pdf,
>     the link worked on that particular machine. But when I access
>     my file remotely ( invoking acroread via ssh ), the link again
>     wouldn't work. :-(

Actually, this one really shouldn't work -- // introduces network
stanza, which in some browsers defaults to localhost when empty. So, you
were running actually file://localhost/home/blah/blah/file.pdf, which is
not what you want (or is it?).

   Matej

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488

Reply via email to