# How can I compile some LaTeX source into PDF and keep the LaTeX source as some meta-information in the PDF? [duplicate]

How can I compile some LaTeX source into PDF and keep the LaTeX source as some meta-information in the PDF? (or somehow embedded otherwise in the way that it is easy to retrieve the LaTeX source while having the option not to view it when reading the PDF)

• you can use the packages embedfile or attachfile2 – Ulrike Fischer Dec 4 '19 at 18:15
• See also package `embedall`. – ShreevatsaR Jan 4 at 3:30