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}
Henri Menke
  • 109,596
shivam
  • 53

1 Answers1

8

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

Uwe Ziegenhagen
  • 13,168
  • 5
  • 53
  • 93