Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can I create references to a .ods file using the command \href{address}{name}? Files with the .pdf extension work, but others do not.

share|improve this question
2  
What do you mean by "works"? The link is not opened by some application on some OS? –  Charles Stewart Apr 7 '11 at 5:57
    
Yes, the link does not open unless it is .pdf, occupy open a .ods –  user4728 Apr 7 '11 at 15:54
    
Which application? Which OS? –  Charles Stewart Apr 7 '11 at 18:20
    
Its kile, linux –  user4728 Apr 7 '11 at 18:39
add comment

1 Answer

Both \href{run:test.ods}{some text} and \href{test.ods}{some text} work for me (on Ubuntu 11.04 with TeX Live 2011; the second one opens the file in the browser, which then opens LibreOffice).

However, some PDF-viewers (like Evince) completely block this operation for security reasons. Adobe Acrobat asks the user for confirmation.

share|improve this answer
    
No, Evince allows opening such links. In fact, I used Evince a while ago to try opening an .ods file as this question states. I found that this works, but all paths, even with a leading slash, are treated relative to the document directory. But this is only one PDF viewer's behaviour; a complete answer would cite the PDF specification on what is and what is not allowed. –  Andrey Vihrov Aug 8 '11 at 6:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.