In beamer presentations produced by the LaTeX-beamer package, I usually do something like this:
\documentclass{article}
\usepackage[hidelinks]{hyperref}
\begin{document}
\href{run:myjava.jar}{Open Java Application}
\href{run:mypdf.pdf}{Open a pdf Document}
\href{run:myfile.custom}{Open a custom filetype}
\end{document}
When viewing the resulting pdf with evince or okular and clicking on the link my linux system opens the corresponding file using a predefined application (I guess it is the same used by gnome-open, exo-open or xdg-open).
Now is there any way to specify in my LaTeX code to use another application for a given file than the system default? Something like this:
\documentclass{article}
\usepackage[hidelinks]{hyperref}
\begin{document}
\open[...path to oracle java...]{run:myjava.jar}{Open Java Application with Oracles Java} %%opens with oracle java
\open[... path to openjdk java.. ]{run:myjava.jar}{Open Java Application with openjdk}
\open[..path to okular]{run:mypdf.pdf}{Open a pdf Document with okular}
\open[..path to evince]{run:mypdf.pdf}{Open a pdf Document with evince}
\open[...path to my custom helper application...]{run:myfile.custom}{Open a custom filetype}
\end{document}
.pdf1,.pdf2associated with different viewers? – ctrl-alt-delor Feb 21 '15 at 13:59