[Tex/LaTex] \rput with figures

pstricks

I have the following:

enter image description here

\documentclass[prb,twocolumn,showpacs,preprintnumbers,amsmath,amssymb,float]{revtex4}
\usepackage{pstricks}
\usepackage{graphicx}
\begin{document}
\begin{figure}[t]
\includegraphics[width=3cm]{example-image}
\includegraphics[width=3cm]{example-image}
\includegraphics[width=3cm]{example-image}
\includegraphics[width=3cm]{example-image}
\caption{...}
\end{figure}
\end{document}

Now, I am not happy with the arrangement of figures, so I decide to use \rput in order to move figures around as I wish. Such that:

\documentclass[prb,twocolumn,showpacs,preprintnumbers,amsmath,amssymb,float]{revtex4}
\usepackage{pstricks}
\usepackage{graphicx}
\begin{document}
\begin{figure}[t]
\rput[tr](-0.45\columnwidth,0.45\columnwidth){\includegraphics[width=3cm]{fig_1}}
\rput[tr](-0.45\columnwidth,0.45\columnwidth){\includegraphics[width=3cm]{fig_2}}
\rput[tr](-0.45\columnwidth,0.45\columnwidth){\includegraphics[width=3cm]{fig_3}}
\rput[tr](-0.45\columnwidth,0.45\columnwidth){\includegraphics[width=3cm]{fig_4}}
\caption{...}
\end{figure}
\end{document}

But this a mess because there is "no room allocated" for the figures. Is there something like an empty box I could put, and then put my figures on top of this empty box?

Thank you.

Best Answer

You don't say exactly what layout you want, but here I used \centering to centre the image block in the column, and added a bit of vertical and horizontal space, no special commands or packages are needed here, images can be positioned exactly the same way as letters.

enter image description here

\documentclass[prb,twocolumn,showpacs,preprintnumbers,amsmath,amssymb,float]{revtex4}
%\usepackage{pstricks}
\usepackage{graphicx}
\begin{document}
\begin{figure}[t]
\centering
\includegraphics[width=3cm]{example-image}\hspace{1cm}%
\includegraphics[width=3cm]{example-image}\\[10pt]
\includegraphics[width=3cm]{example-image}\hspace{1cm}%
\includegraphics[width=3cm]{example-image}
\caption{...}
\end{figure}
\end{document}

If you need to adjust individual figures you can use for example

\raisebox{3pt}{\includegraphics{..}}

to raise it or

\hspace*{3pt}{\includegraphics{..}}\hspace*{-3pt}

to move it to the right.

or any other LaTeX construct (none of the positioning commands are specific to image inclusion).

Related Question