I can include a jpg to a LaTeX document using the \includegraphic command.
In a simulation program, the program writes latex code into a .tex file to create a result pdf. A graphic should appear. If I use includegraphics, I need to copy the included jpg file to the working directory (or another fixed path, but then the simulation is system dependent).
I would prefer an inline graphic definition in the LaTeX code, such that beside the created .tex no other files are used. The LaTeX-Source is automatically created, therefore long and difficult to read latex code is no problem.
Any solutions for this? Thanks! :)
\graphicspath, but you can also place the JPG in your local texmf folder. Is you main aim to create the PDF without the JPG? That is, create the image from scratch rather than to rely on the external JPG. – Werner Jan 23 '21 at 17:17