I want to control the image positioning that way that the space between the images is always a straight cross. But for unequal image width it doesn't work. I want to use subfloat
and textwidth
to. How can i solve this?
\begin{figure}[!hbtp]
\centering
\subfloat[]{\label{}\includegraphics[width=0.3\textwidth]{1.png}}\quad%
\subfloat[]{\label{}\includegraphics[width=0.2\textwidth]{1.png}}\\%
\subfloat[]{\label{}\includegraphics[width=0.2\textwidth]{1.png}}\quad%
\subfloat[]{\label{}\includegraphics[width=0.22\textwidth]{1.png}}%
\caption{}%
\label{}
\end{figure}
Addendum:
Best Answer
Next time please provide complete document, not only code fragment.
Addendum: From your comment I guess that you wish the following:
For this figure layout you need to ad package
adjustbox
:Addendum (2): According to addendum to your question, you probably like to arrange sub images as follows:
For this arrangement I add option
valign=T
also to images in the first row.adjustbox
: