4

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?

4
  • 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, 2010 at 11:36
  • 1
    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. Sep 17, 2010 at 11:40
  • Also have a look at this question.
    – Caramdir
    Sep 17, 2010 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, 2010 at 7:05

2 Answers 2

6

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}
1
  • Thanx - that´s it!
    – Rainer Feldmann
    Sep 20, 2010 at 16:38
0

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.

You must log in to answer this question.