LaTeX forum ⇒ Graphics, Figures & TablesSplitting subfigures/minipage between two pages Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
lukaszskowron96
Posts: 36
Joined: Tue Oct 09, 2018 1:01 pm

Splitting subfigures/minipage between two pages

Postby lukaszskowron96 » Mon Nov 12, 2018 10:45 pm

Hi. So I have this situation as you can see on the picture.
I want to have row of pictures placed on the end of one page and the second row the beginning of the next page. Is there a way to do that?
Here's the code that generates the pictures.
  1. \begin{figure}[!ht]
  2. \begin{minipage}[b]{0.5\linewidth}
  3. \includegraphics[width=1\textwidth]{StripFootingOxLim6}
  4. \subcaption{Fifth refinement, elements = 13809, \(\frac{kB}{s_{um}} = 0\)}
  5. \end{minipage}
  6. \begin{minipage}[b]{0.5\linewidth}
  7. \includegraphics[width=1\textwidth]{StripFootingOxLim_k=1kPa}
  8. \subcaption{Fifth refinement, elements = 13602, \(\frac{kB}{s_{um}} = 1\)}
  9. \end{minipage}
  10. \begin{minipage}[b]{0.5\linewidth}
  11. \includegraphics[width=1\textwidth]{StripFootingOxLim_k=3kPa}
  12. \subcaption{Fifth refinement, elements = 11344, \(\frac{kB}{s_{um}} = 3\)}
  13. \end{minipage}
  14. \begin{minipage}[b]{0.5\linewidth}
  15. \includegraphics[width=1\textwidth]{StripFootingOxLim_k=5kPa}
  16. \subcaption{Fifth refinement, elements = 10820, \(\frac{kB}{s_{um}} = 5\)}
  17. \end{minipage}
  18. \caption{Mesh refinements for soil with a strip footing on top for different values of\(\frac{kB}{s_{um}}\)}
  19. \end{figure}

I know the two pictures might not fit on the end of that page, but if there is a way to achieve what I want, I cut away some stuff so they fit.
latexforumsplittingtheimage.png
latexforumsplittingtheimage.png (60.8 KiB) Viewed 385 times

lukaszskowron96
Posts: 36
Joined: Tue Oct 09, 2018 1:01 pm

Postby lukaszskowron96 » Mon Nov 12, 2018 11:04 pm

Ok, I solved it. The code below solves the issue.

  1. \begin{figure}[b]
  2. \begin{minipage}[b]{0.5\linewidth}
  3. \includegraphics[width=1\textwidth]{StripFootingOxLim6}
  4. \subcaption{Fifth refinement, elements = 13809, \(\frac{kB}{s_{um}} = 0\)}
  5. \end{minipage}
  6. \begin{minipage}[b]{0.5\linewidth}
  7. \includegraphics[width=1\textwidth]{StripFootingOxLim_k=1kPa}
  8. \subcaption{Fifth refinement, elements = 13602, \(\frac{kB}{s_{um}} = 1\)}
  9. \end{minipage}
  10. \end{figure}
  11. \newpage
  12. \begin{figure}[!ht]\ContinuedFloat
  13. \begin{minipage}[b]{0.5\linewidth}
  14. \includegraphics[width=1\textwidth]{StripFootingOxLim_k=3kPa}
  15. \subcaption{Fifth refinement, elements = 11344, \(\frac{kB}{s_{um}} = 3\)}
  16. \end{minipage}
  17. \begin{minipage}[b]{0.5\linewidth}
  18. \includegraphics[width=1\textwidth]{StripFootingOxLim_k=5kPa}
  19. \subcaption{Fifth refinement, elements = 10820, \(\frac{kB}{s_{um}} = 5\)}
  20. \end{minipage}
  21. \caption{Mesh refinements for soil with a strip footing on top for different values of\(\frac{kB}{s_{um}}\)}
  22. \end{figure}


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 4 guests