LaTeX forum ⇒ Text Formattinghyperref package and links to executables?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

hyperref package and links to executables?

Postby Faust » Sat May 15, 2010 5:44 pm

I'd like to incorporate links to folders and executables on an installation CD from my PDF. Can I do this with the hyperref package? Can't seem to find it in the manual.

Thanks!

revberaldo
Posts: 9
Joined: Sat Feb 13, 2010 3:37 pm

Postby revberaldo » Sat May 15, 2010 5:53 pm

As long as I know, you can use hyperref to link to everything. So, I think it is possible to link to executables.

Why don't you try linking to a executable and tell us if it worked?
Blog (in Portuguese)
Twitter (almost completely in Portuguese, eventually in English or Esperanto)

Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Postby Faust » Sat May 15, 2010 6:43 pm

gawd that was too easy, it works. just use \href{path to your file}{description}

works, oh and don't forget to use / instead of \ in the filepaths (as I did of course :D

Thank you for the suggestion!

Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Postby Faust » Sat May 15, 2010 6:49 pm

there's one little thing left:
when I enter only a relative path I get an error. Is there a command that will
return the absolute path of the current file location.

I need it because it will be on portable media, and hence drive letters might change.

jocom
Posts: 25
Joined: Fri May 07, 2010 4:28 pm

Postby jocom » Sat May 15, 2010 10:01 pm

Did you try putting ./your/path
On most systems ./ means current directory.
Else it will be quite difficult, methinks.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 3 guests