[OS X TeX] linking to and opening a .tex file using hyperref?

Ross Moore ross.moore at mq.edu.au
Thu Jun 14 00:27:53 CEST 2018


Hi Gary,

On Jun 14, 2018, at 7:01 AM, Gary L. Gray <euler at psu.edu<mailto:euler at psu.edu>> wrote:

> On Jun 13, 2018, at 4:53 PM, Ross Moore <ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>> wrote:
>
> Hope this helps.

Hi Ross!

That is very helpful. Thank you! Where is this “run” thing documented?

Well, that depends upon how detailed information you want.

The PDF Reference v1.7  (also known as ISO 32000-1)  tells you all about how the PDF bits
need to be constructed. But that may be too detailed for you.

At the TeX/LaTeX level, I think the "LaTeX Web Companion" is probably best.
This tells you what is implemented in hyperref  and supported by pdfTeX,
though I cannot find any reference to ‘run’ there.


Here are snippets, including actual coding, from  hyperref.dtx :


\def\@pdftempwordrun{run}%


% If the URL type is `file', pass it for local opening
%    \begin{macrocode}
      \def\@pdftempa{#4}%
      \ifx\@pdftempa\@pdftempwordfile
        \@hyper at linkfile#7\\{#3}{#2}{#7}%
      \else
%    \end{macrocode}
% if it starts `run:', its to launch an application.
%    \begin{macrocode}
        \ifx\@pdftempa\@pdftempwordrun
          \ifHy at pdfa
            \Hy at Error{%
              PDF/A: Launch action is prohibited%
            }\@ehc
            \begingroup
              \leavevmode
              #2%
            \endgroup
          \else
            \@hyper at launch#7\\{#3}{#2}%
          \fi
        \else
%    \end{macrocode}



Hope this helps.


Gary


Cheers,

Ross


Dr Ross Moore

Mathematics Dept | 12 Wally’s Walk, 734
Macquarie University, NSW 2109, Australia

T: +61 2 9850 8955  |  F: +61 2 9850 8114<tel:%2B61%202%209850%209695>
M:+61 407 288 255<tel:%2B61%20409%20125%20670>  |  E: ross.moore at mq.edu.au<mailto:rick.minter at mq.edu.au>

http://www.maths.mq.edu.au<http://mq.edu.au/>


[cid:image001.png at 01D030BE.D37A46F0]<http://mq.edu.au/>


CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.<http://mq.edu.au/>

This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University.<http://mq.edu.au/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180613/401c255c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180613/401c255c/attachment-0001.png>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list