When you save images as a PDF, checking the PDF + Latex option, one gets 3 files:
- filename.pdf
- filename.pdf_tex
- filename.svg
If you'd like to include this exported image in a Tex document, this is fairly easy provided that the 3 files above are in the same folder as the Tex document you are working in, as follows:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\input{filename.pdf_tex}
\end{document}
Let's say we have another image titled "another-image.jpg". We could e.g. add it to the document by using \includegraphics{another-image.jpg}
.
But, what if we would like to print the image from \input{filename.pdf_tex}
right on top (overlay on) of \includegraphics{another-image.jpg}
? How is that possible?
The following doesn't do the trick (it will just output the another-image
next to the filename
-image):
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{another-image.jpg}
\input{filename.pdf_tex}
\end{document}
Let's assume both of the images have equal relative dimensions, and one would like them scaled exactly the same, and put the center of the one right on top of the center of the other.
\usepackage{pst-node}
and change\includegraphics{another-image.jpg}
to\noindent\pnode{Center} \rput(Center){\includegraphics[width=\textwidth]{another-image.jpg}}
? It as least puts the image from\input{filename.pdf_tex}
on top of theanother-image.jpg
, even though it probably ends up in a corner where you don't want it. Could anybody make an answer from there?