I have a "trilogi" simulation software file. Consider it as a file of random simulation software. I want to embed it in pdf document at the place of my choice so that if I click on it in pdf document,it opens. How should I do it? My simple working program is as given below


Control engineering has evolved over time. In the past humans were the main method for controlling a system. More recently electricity has been used for control and control d
  • 2
    Have a look at the attachfilepackage, I have been using it for instance here: uweziegenhagen.de/?p=2488 (Check the definition of \file there) – Uwe Ziegenhagen Nov 2 '14 at 11:28
  • I understand the attach file package in the sense that I can embed pdf files. But how to embed other files. Following is how I embed pdf files What change do I do know from here \usepackage{attachfile} \usepackage{embedfile} \usepackage{hypgotoe} \hypersetup{% pdfborder = {0 0 0} } \embedfile{midsem.pdf} – shivam Nov 2 '14 at 11:46
  • 1
    @shivam No, you can embed any file! – Josef Nov 2 '14 at 11:56

Here is a short example, how to do it with attachfile. It attaches the source code of the current file to the PDF and creates a clickable link. Adobe Reader/Acrobat has a tab, where it shows all attachments.



\textattachfile{\jobname.tex}{\textcolor{blue}{\LaTeX\ Sourcecode}}



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.