0

Related to:

Getting two pictures to appear on the same page

Placing a table next to figure (align table vertically centre)

Putting multiple images in a page

I have a sequence of images that I want stored in succession, one after the other with no text in between.

What I tried:

option #1:

\begin{figure}
    \centerline{\includegraphics[width=\paperwidth]{1.png}}
    \caption{1}
    \label{fig:1}
\end{figure}

\begin{figure} \centerline{\includegraphics[width=10cm,scale=0.5]{2.png}} \caption{2} \label{fig:2} \end{figure}

\begin{figure} \centerline{\includegraphics[width=10cm,scale=0.5]{3.png}} \caption{3} \label{fig:3} \end{figure}

\begin{figure} \centerline{\includegraphics[width=\paperwidth]{4.png}} \caption{4} \label{fig:4} \end{figure}

not working (text interleaves images).

option #2:

\begin{figure}[ht!]
    \subfloat[functions]{%
        \label{fig:functions}
        \includegraphics[width=\paperwidth]{1.png}
    }           

    \subfloat[common]{%
        \label{fig:common}
        \includegraphics[width=\paperwidth]{2.png}
    }   

    \subfloat[helpers]{%
        \label{fig:helpers}
        \includegraphics[width=\paperwidth]{3.png}
    }       

\end{figure}

Last figure disappears. Also, weird unexpected padding to the left.

I need to use option #1 with no text in between.

What I essentially need to do is have a document like:

Page 1
Sed ut perspiciatis unde omnis iste natus error sit 

voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut

Page 2

Image 1

Image 2

Page 3

Image 3

Page 4

Image 4

Image 5

Page 5

ctetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem

In short, a block of images that succeed one another across pages and don't allow any text in between.

Sebi
  • 392

2 Answers2

2

I assume this fits your needs. The [H] option of the float package makes sure that there is no text in between.

Next time, please provide an MWE (as indicated by Zarko) similar to the code that I provide here (using \includegraphics{example-image-a} for example).

\documentclass{article}
\usepackage{graphicx}
\usepackage{float}

\begin{document}

Text

\begin{figure}[H] \centering \includegraphics{example-image-a} \caption{Caption} \end{figure}

\begin{figure}[H] \centering \includegraphics{example-image-a} \caption{Caption} \end{figure}

\begin{figure}[H] \centering \includegraphics{example-image-a} \caption{Caption} \end{figure}

\begin{figure}[H] \centering \includegraphics{example-image-a} \caption{Caption} \end{figure}

\begin{figure}[H] \centering \includegraphics{example-image-a} \caption{Caption} \end{figure}

\begin{figure}[H] \centering \includegraphics{example-image-a} \caption{Caption} \end{figure}

\begin{figure}[H] \centering \includegraphics{example-image-a} \caption{Caption} \end{figure}

Text

\end{document}

enter image description here

1

On your questions as is now, not provide sufficient information. At least we need to know really size (height) of your images. As I already mentioned in my comment, that images can be fit on one page, they can have enough small heights.

T keep all images together, they need to be in one float figure, Something like this:

\documentclass{article}
\usepackage{graphicx}

\begin{document} \begin{figure}[htp] \centering \includegraphics[height=4cm, width=\textwidth]{example-image} \caption{1} \label{fig:1}

\includegraphics[height=3.5cm, width=10cm]{example-image} \caption{2} \label{fig:2}

\includegraphics[height=4.5cm, width=10cm]{example-image} \caption{3} \label{fig:3}

\includegraphics[height=3cm, width=\textwidth]{example-image} \caption{4} \label{fig:4} \end{figure} \end{document}

enter image description here

Zarko
  • 296,517