[Tex/LaTex] partially overlapping figures

floatsgraphicspositioning

How do I put two figures next to each other (in one row) while figure 1 overlap (partially) figure 2? I have seen some other questions however I want no space between figures and part of a figure overlap other figure.

Best Answer

It depends a lot on the type of overlapping you want. A simple way is negative space:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\hspace*{4cm}\includegraphics[width=5cm]{example-image-A}\hspace{-8cm}\includegraphics[width=5cm]{example-image-B}
\end{document}

enter image description here

In tikzpicture you can naturally do also overlaps.