How can you create a link with hyperref in a PDF file to open a LaTeX file?


The trick is to use run:/. like


To make a Link to the PDF myFile.pdf in the same directory as the LaTeX file (more precisely the created PDF from that file). It is then opened in the PDF-Viewer thats standard for viewing PDFs on that specific system.

Edit I had that in my file to Link to a TeX file, of course that works the same way


It should then open in the standard editor for .tex files. Thanks for mentioning in the comments.

| improve this answer | |
  • 1
    Whether or not this works is of course viewer dependent, and in Adobe requires disabling "Enhanced security". – cyberSingularity Dec 21 '12 at 13:04
  • Thank you, this was just what I needed. The remark is correct, that the matter is viewer dependent. With Adobe it works, but what about sumatra? For some reasons I want to use this PDF viewer. – Klaus Wagner Dec 21 '12 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.