Search code examples
hyperlinklatexgifpdflatex

Latex - hyperref, link to a file.gif


i want to create a link between my pdf file and a .gif file, is that possible? in Latex i tried with this:

\usepackage{hyperref}

\href{run:/./OrbiteEul.gif}{OrbiteEul.gif}

but it doesn't work, i mean it create the link, but when you click it nothing happens, the gif doesn't open! Am i missing something?

Thank you in advance for any kind of help.

edit:

I tried this way, but it didn't even compile.

\href{file://Users/Angeloferrari/Università/2°_anno/Calcolo_per_l\'astronomia
/Messina/Porgetti_R/Script/OrbiteEul.gif}{OrbiteEul.gif} 

Solution

  • You should use

    \href{run:./OrbiteEul.gif}{OrbiteEul.gif}
    

    (note the missing / right after 'run:')