# How to link from my PDF to a txt-file using hyperref?

I am writing a presentation using beamer with links to files on my harddrive. Everything works fine with files in PDF format. But: links to *.txt open the browser -- and that's it. What am I'm missing?

-
What would you rather they open in? A text editor? Why do you want to have links to text files rather than just have the text inside your frames? –  Seamus Sep 17 '10 at 11:36
Similar issues have be discussed for example in this other question. Basically, it is up to the pdf viewer to decide what to do when you click on a link. –  Juan A. Navarro Sep 17 '10 at 11:40
Also have a look at this question. –  Caramdir Sep 17 '10 at 14:44
Best solution: I want the files to open in a text-editor (I'm using TINN for R). But if the files open in Firefox would be a very good solution. Rainer –  Rainer Feldmann Sep 19 '10 at 7:05

This works for me. The log-file is opened (after a confirmation dialog from acrobat) in winedt, the editor set-up to open log-files. The log-file is in the same folder as the pdf.

\documentclass{article}
\usepackage{hyperref}
\begin{document}
abc\href{run:test-ansinew.log}{log-file}
\end{document}

-
Thanx - that´s it! –  Rainer Feldmann Sep 20 '10 at 16:38

I think it's fairly clear that there's nothing that hyperref can do about this. Entirely up to the PDF viewer. I'm just answering here to attempt to move this question from the "Unanswered" list.

-