I am trying to show a set of pictures using subfigure. The first line seems OK, but the second line has a different alignment than the first line, even though the two lines are exactly the same. How can I fix it?
Code:
\begin{figure*}
\centering
\begin{subfigure}
\centering
\includegraphics[width=\imagewidth,height=\imageheigth]{image1}
\end{subfigure}
~
\begin{subfigure}
\centering
\includegraphics[width=\imagewidth,height=\imageheigth]{image2}
\end{subfigure}
..............
..............
~
\begin{subfigure}
\centering
\includegraphics[width=\imagewidth,height=\imageheigth]{imageN}
\end{subfigure} \\
~
\begin{subfigure}
\centering
\includegraphics[width=\imagewidth,height=\imageheigth]{image(N+1)}
\end{subfigure}
..............
..............
~
\begin{subfigure}
\centering
\includegraphics[width=\imagewidth,height=\imageheigth]{image(2N)}
\end{subfigure}
\caption{some stuff her}
\label{fig:stuff}
\end{figure*}
imageNandimage1figures have the same size? – percusse Jul 31 '12 at 11:33\\ ~has white space to the left of the leftmost figure so will be out of line. I would delete all the~(use\hspace{1cm}where you need space, it is clearer. and delete the\\just use a blank line paragraph break. – David Carlisle Jul 31 '12 at 12:09