Several times now I have inadvertently lost the .tex file that generated a PDF file with pdflatex
. Given what I know of the internal structure of PDF files, it should be possible to embed a text file containing the original LaTeX file into the PDF file so that it can be extracted later.
I am aware of no technology for doing this, but perhaps you are. Does anybody have something like this?