[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#627463: texlive-latex-base: link to PDF is not made properly



Hi,

On Sat, May 21, 2011 at 09:12:30PM +0200, Frank Küster wrote:
> Osamu Aoki <osamu@debian.org> wrote:
> 
> > I made minimum LaTeX code and its pdf.  File names ending with pdf or
> > just filename without extension causes broken link in blue.
> 
> Hm, any idea what is "broken" with them?  Is there something in the
> hyperref documentation that might explain why they have a different
> color?

"texdoc hyperref" did not help me.

In /usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty
---
\Hy@temp{link}{red}
\Hy@temp{anchor}{black}
\Hy@temp{cite}{green}
\Hy@temp{file}{cyan}
\Hy@temp{url}{magenta}
\Hy@temp{menu}{red}
---

If I knew better, I did not file bug report.

> The strange thing is:  In acroread, they work.  The first one gives the
> developers' reference, the next blue ones give "file not found errors".
> The red ones instead give a "Security warning" dialog box:  The document
> is trying to connect to file:///x.pd.  If you trust the site,  choose
> Allow. If you do not trust the site, choose Block.  After choosing
> Allow, the file not found error is in firefox, not acroread.

Here all blue ones are dead and red ones works as long as you put files
there.

file:///x.pd means you need file as /x.pd .  Did you put there?

Hmmm...  I get similar "Security warning" dialog box every time I download
PDF from web usng google chrome here.
 
> So these links have something about them that makes them non-functional
> and blue in free viewers, but they work in acroread...

Maybe security concern.... (I am not on windows now.  I will check it
later.)

> By the way, why are there three '/' in a row?  Wouldn't two be
> sufficient?  (in acroread, they are...)

Syntax is: file://host/path
The last '/' n file:///path is root directory and there is no host.
http://en.wikipedia.org/wiki/File_URI_scheme

Osamu




Reply to: