I want two put two columns of several images. In order to facilitate the modification of the image number and the style, I have used the command \foreach. My problem that the picture would split into several pages but I could not reach this effect. Here is the code i have written.
\begin{tikzpicture}[font=\small\sffamily]
\node (row1) {\includegraphics[width=0.49\textwidth]{images/Original/1}};
\node[left=0mm of row1] {\includegraphics[width=0.49\textwidth]{images/Segmented/1}};
\foreach \i [remember=\i as \lastx (initially 1)] in {2,...,50} {
\node[below=0mm of row\lastx] (row\i) {\includegraphics[width=0.49\textwidth {images/Original/\i}};
\node[left= 0mm of row\i] {\includegraphics[width=0.49\textwidth]{images/Segmented/\i}};
};
\end{tikzpicture}