I am trying to use \href
to link local video files to my LaTeX document. The problem is that while the \url
command works fine, the \href
command (used with "run:") does not.
Case 1: The files do not have any extension
In this case, \url
works just file without any problem. But \href
complains about no application found for opening file of mimetype application/octet-stream.
Case 2: The file have the proper extension.
Again, \url
works just file without any problem. This time the \href
opens the proper application, but the applications almost always hangs.
So, the problem is either with the PDF Viewer (Okular) or LaTeX. Can anyone shed light on what is exactly going on here?
EDIT : The problems seems to be with Okular as such. The Evince document reader does not present any such problems even without file extensions. (However, without file extension, it uses the mimeinfo.cache and hence uses mplayer instead of VLC player as is there in my KDE enviornment.)
So, I guess this is a bug in Okular. I would like to report it there. I would like to get an idea on what should I tell them. So, my question is what is the difference between the code produced in PDF for \href
and \url
?
EDIT: Minimum Working Example
\documentclass[a4paper,10pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage{hyperref}
\title{Whatever}
\author{Jayesh Badwaik}
\begin{document}
\maketitle
\href{run:raw/e68.ogv}
{A Crash Course on Contour Integration Part One}
\href{run:raw/5b}
{A Crash Course on Contour Integration Part Two}
\url{raw/e68.ogv}
\url{raw/5b}
\end{document}
Best Answer
The manual of hyperref says:
With the command
url
you didn't specify the actionrun
orfile
. All these methods are given in the documentation.