General ⇒ Hyperref to create pdf file with the link to executable file
Hyperref to create pdf file with the link to executable file
\documentclass[11pt]{article}
\usepackage{hyperref}
\usepackage{color}
\begin{document}
\href{run:./square}{Execute the file}
\end{document}
Where "square" is an object file that I compiled from square.cpp program using g++. I could run the square program in Ubuntu by opening the terminal and issue the command "./square"
After I pdflatex, it created a pdf file. I opened the file and click the link. It says that it can't find the file square. It seems that Acrobat Reader interpret ./ as current directory. Is there any ways to make it works.
Again, what I want is that when I click the link, it should run the object file "square"
Any suggestion for the other idea is also appreciated.
Thanks in advance for your help.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Hyperref to create pdf file with the link to executable
I don’t know whether or not what you want is possible, but I certainly hope it isn’t!