[OS X TeX] hyperlink to files in samefolder as pdf
Gert van Oss
gertmt at mac.com
Thu Jan 19 18:35:53 EST 2006
appreciate your feedback.
Guess I'm almost there but with the solution you offer I get one
forward-slash to many and the word localhost. What am I doing wrong?
If I put the Excel file in the same folder as the LaTeX file (as with
the folder in between it didn't work) and I put the code as follows:
\href{run:file.xls}{open please...}
I see appearing in the yellow box if I hover the mouse over the link:
file://localhost/User...etc....
Guess with one slash less and without 'localhost' it should work but
how do I get there? If I look in the yellow box that appears when I
hover the mouse over the link with the full path mentioned I see:
file:/Users....
This one definitely works.
Still puzzled and any hints appreciated.
Gert
On 19 Jan 2006, at 11:08, Luis Sequeira wrote:
> When I want to put a link to a file in LaTeX, I use \href with an
> url that starts with run:, as in
>
> \href{run:./excels/file.xls}{open the excel file}
>
> You can put the pdf and the excel files in a folder, zip it in the
> finder and send the zip file to whomever you want; and they'll get
> everything in place just by double-clicking the zip archive and
> running the pdf within. Works like a charm.
>
> (By the way, this also a possible alternative for a movie
> inclusion, if it gives too much trouble; just put a link to the
> movie instead of embedding it)
>
> Luis Sequeira
>> I can't seem to set up a 'local-hyperlink'. Does anyone know if
>> this is possible at all?
>>
>> Something like:
>>
>> \href{/Users/gertmt/Documents/Opleidingen/Voorstel/Rapport/
>> VersieTextMate12/excels/test.xls}{This works}
>>
>> works but
>>
>> \href{excels/test.xls}{this doesn't work....}
>>
>> is not successful.
>>
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the MacOSX-TeX
mailing list