[Tex/LaTex] How to do 2X3 subfloats for a figure


I have 6 figures of the same size and I would like them to be subfiqures in a figure in the format so that they are all aligned with 3 figures on the first row and 3 figures directly below.

I have tried the following which gives me 3 figures in each row but are all misaligned (I use the subfig package but it causes a problem as I have the subcaption pacakage too):


    & \subfloat[B]{\includegraphics[width=3cm]{image2}} & \subfloat[C]{\includegraphics[width=3cm]{image3}} \
    & \subfloat[D]{\includegraphics[width=3cm]{image4}}   \subfloat[E]{\includegraphics[width=3cm]{image5}} 
    & \subfloat[F]{\includegraphics[width=3cm]{image6}}\    \end{tabular}

    \caption{Many figures}\label{figure}

Best Answer

Edit: I complete my code snippet to MWE and add image of figures.

I'm pretty sure, that your question is duplicate ... anyway, try the following:




\caption{Many figures}\label{figure}

which gives:

enter image description here

As you can see, the use of tabularx and tabular is superfluous.