2

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

\documentclass[a4paper,14pt]{memoir}
\linespread{1.5}
\usepackage{graphicx}
\usepackage{color}
\usepackage{float}
\usepackage{caption}
\usepackage{graphicx}
\usepackage{subcaption}

\begin{document}
\pagestyle{plain}
\section*{\textcolor{red}{Introduction}}
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
\end{document}
  • 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
5

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.

\documentclass{article}
\usepackage{attachfile}

\begin{document}  

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

\end{document}

screenshot

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.