Embedding the TeX code in the PDF
There are a few packages out there which allow the user to add arbitrary files to the PDF container. The following example uses the „navigator“ package by Paul Isambert.
\documentclass[12pt,ngerman]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{navigator} \begin{document} Hallo! \embeddedfile[TeX code]{\jobname}{\jobname.tex} \end{document} |