I was wondering if it is possible to integrate Word (or PDF) files in LaTeX in such a way, that one can still use the hyperlinks provided in that word / pdf.

  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Apr 14, 2020 at 11:58
  • Hi, since I have no clue how to do this, its hard to provide that. Im moreover looking for the MWE itself. Thanks
    – manuel459
    Apr 14, 2020 at 12:11
  • have a look at package pdfpages Apr 14, 2020 at 12:16
  • You can use pax to reinclude the annotations of pdf files. See e.g. tex.stackexchange.com/questions/534418/…. It is possible to embed/attach word files to a pdf but they will simply be attachments. Apr 14, 2020 at 12:17
  • @AlessandroCuttin pdfpages doesn't let you use the hyperlinks of the included pdf. manuel459: I'm not sure what you want. pdfpages will include the contents of the pdf as new pages in your document (but breaking the hyperlinks). attachfile of the posted answer will allow you to attach an arbitrary file (such as Word), but you won't see the contents. There is not a way to include the contents of a Word document as new pages in your document without first converting it to something else.
    – Teepeemm
    May 16, 2020 at 13:20

1 Answer 1



After I wrote my answer, Heiko Oberdiek has release a more advance package, embedfile, offering the same as attachfile, and even more

You are looking for Scott Pakin's package attachfile. According to the description at CTAN:

Starting with PDF 1.3 (Adobe Acrobat 4.0), PDF files can contain file attachments — arbitrary files that a reader can extract, just like attachments to an e-mail message. The attachfile package brings this functionality to pdfLaTeX and provides some additional features not available in Acrobat, such as the ability to use arbitrary LaTeX code for the file icon — including things like \includegraphics, tabular, and mathematics. Settings can be made either globally or on a per-attachment basis. Attachfile makes it easy to attach files and customize their appearance in the enclosing document.

The following code give the enclosed result. Double clicking the tag opens the file in your tex-editor (you have to compile my code, the link in the picture does not work).

enter image description here

\usepackage{array, threeparttable}


\begin {document}
    \caption{A caption with lot of interesting information of how to interpret the complicated figures and mathematics in the tabular}
        \begin{tabular*}{0.8\linewidth}{@{\extracolsep{\fill}}@{}c| *{8}{c}@{}}
            Test & $1$ & $2$ & $3$ & $4$ & $5$ & $6$ & \begin{tabular}{@{}c@{}}
$7$ \\ $8$ \\ $9$\end{tabular} & $8$ \\
           1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
           1 & 0 & 0 & 0 & 0 & 0 & 0& 0 & 1 \\
           1 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 \\



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .