# Embedding LaTex code in pdf [closed]

Basically what I would like is a possibility to copy-paste the LaTeX code of a formula from a PDF document (that has been created with LaTeX), for using it in another LaTeX document. Is this possible?

I'm not aquainted enough with the pdf format to know if this is feasible, I was thinking along the lines of the Text underlay archived works use.

Edit: What I was thinking of was something similar to MathJax

## closed as unclear what you're asking by Martin Schröder, lockstep, Claudio Fiandrino, egreg, Charles StewartNov 21 '14 at 11:20

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to TeX.SX!. When asking questions it is better to provide a full minimal working example (MWE) both in order to demonstrate what you are trying to do and to help others help you. This saves everyone time:) – Andrew Nov 20 '14 at 13:09
• This may help - it's not quite clear to me just what you want. tex.stackexchange.com/questions/167714/… – Ethan Bolker Nov 20 '14 at 15:17
• The PDF specification allows for file attachments. You could attach a .tex to the PDF so you can open and copy-and-paste. See How do you store all your TeX files long-term? – Werner Nov 20 '14 at 20:24
• I think this might be a duplicate of Making equations copyable in pdf. Yes it is conceptual question, but you could still provide a MWE as an example with one or two equations and the type of code you'd like to be able to cut and paste. – Peter Grill Nov 20 '14 at 22:16
• Then I don't understand. If you don't have the source, how are you going to make whatever-it-is copy-paste-able? – cfr Nov 20 '14 at 23:20