Link to an external application in LaTeX Beamer

Is there a way to link an external application (so that it starts) by clicking on the link in the PDF file, for example. in a LaTeX ray class file?

+3
source share
3 answers

Usually I use the command movieto open any video, audio, image file in external viewing. But no, he will not open the program.

\frame{    
\movie[externalviewer]{Audio Title}{audio.wav}
\movie[externalviewer]{Video Title}{video.mp4}
\movie[externalviewer]{Image Title}{image.jpg}
\movie[externalviewer]{PDF Title}{doc.pdf}
\movie[externalviewer]{Gedit}{/usr/bin/gedit} % does not work
}
+4
source

It is possible! The following works well with my Acrobat, due to a little hacking of PDF files. Just test it on your Mac, you have to configure it on your platform. Just define the following macro

\newcommand{\LaunchBinary}[2]{%
  % #1: layer name,
  % #2: link text
  \leavevmode%
  \pdfstartlink user {
    /Subtype /Link
    /Border [0 0 0]%
    /A <<
      /F <<
         /DOS (xxx)
         /Unix (xxx)
         /Mac (#1)
      >>
      /S /Launch
    >>
  }#2%
  \pdfendlink%
}

"xxx", , № 1, . , PDF "", "demos/1/Wave1D.app",

\LaunchBinary{demos/1/Wave1D.app}{Start}

. . !

, , , Adobe Acrobat (Reader). MacOS " " .

+1

I am sure you cannot. It is very application dependent, system dependent and another 1000 things dependent.

URL-only afic works pretty well ...

0
source

Source: https://habr.com/ru/post/1734540/


All Articles