# Can I bundle images in the source file?

I am including some jpeg images in a LaTeX file using \includegraphics. Is there a way I can bundle the image files with the source file, and so just send one file to other machines, or collaborators?

The comment by Aditya to Can you embed an image so it doesn't need to be stored as a separate file? seems to be to my point. But it does not tell me what I need to know. I am already using \includegraphics. My question is how to copy the relevant files.

I'm afraid David Carlisle is right that you really cannot bundle the files. But sending them separately by cloud or any other method raises the problem of getting MiKTeX to locate jpeg files. MDR's solution at \includegraphics -- file not found, even when in same directory, using FNDB, works intermittently for me. But even on a single machine it is not reliable. I do not want to depend on it between several different machines.

• in general no, just send a zip archve of all the files. TeX can write text files so (some) EPS files you can include in the file and write with `filecontents` environment. – David Carlisle Feb 23 '14 at 21:22
In general no, just send a zip archive of all the files. TeX can write text files so (some) EPS files you can include in the file and write with `filecontents` environment.
• Technically it is possible to embed all kinds of binary data using `base64` encoding. Here is a snippet by Paulo Cereda demonstrating how to do it: gist.github.com/cereda/1046388 But I believe that this is hardly a solution to the OP's problem, because the real problem appears not to be how to embed data in text files, but rather how to keep working directories in sync. – DG' Aug 19 '14 at 13:03