Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

I am trying to save the LaTeX code needed for generating some document in the document itself as metadata. So far I found the command to set the pdf metadata using the hyperref package but now I am stuck....

This clearly does not work..

% file.tex



Hello world  
share|improve this question

marked as duplicate by diabonas, Werner, Benedikt Bauer, Martin Schröder, barbara beeton Sep 25 '13 at 20:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

My guess is that this is not possible but a workaround could be embedding the file as an attachment, using packages as embedfile or attachfile. – Bordaigorl Sep 25 '13 at 15:05
@Bordaigorl thanks I'll take a look. With some Java code I can do this but then I have to run an application after the compilation with LaTeX... not so fast... – Red Sep 25 '13 at 15:09

Browse other questions tagged or ask your own question.