Subfigs of a figure on multiple pages

我是研究僧i 提交于 2019-11-28 23:36:25

问题


I am facing problem of stacking many figures

The problem is the stack figure is overriding the page dimension vertically and placing all the figure in one page and not changing the page as the limitation of page is reached.

How can page be changed while stacking all the figures.

\usepackage{subfig}
\usepackage{float}
\begin{figure}[hp]
\centering
\subfloat[Fig1]{\label{fig:1}\includegraphics[width=0.48\textwidth]{fig1}}
\subfloat[Fig2]{\label{fig:2}\includegraphics[width=0.48\textwidth]{fig2}}
\subfloat[Fig3]{\label{fig:3}\includegraphics[width=0.48\textwidth]{fig3}}
\subfloat[Fig4]{\label{fig:4}\includegraphics[width=0.48\textwidth]{fig4}}
\subfloat[Fig5]{\label{fig:5}\includegraphics[width=0.48\textwidth]{fig5}}
\subfloat[Fig6]{\label{fig:6}\includegraphics[width=0.48\textwidth]{fig6}}
\caption{........}
\label{..........}
\end{figure}

I shall be very thankfull for your kind help.


回答1:


Everything inside \begin{figure}...\end{figure} must not be larger than a single page. In order to break it over pages, you must do it manually. Use \ContinuedFloat from the subfig package to do this: (from the subfig documentation, §2.2.3)


\begin{figure}
  \centering 
  \subfloat[][]{...figure code...}% 
  \qquad 
  \subfloat[][]{...figure code...} 
  \caption{Here are the first two figures of a continued figure.}
  \label{fig:cont}
\end{figure}

\begin{figure}
  \ContinuedFloat 
  \centering 
  \subfloat[][]{...figure code...}% 
  \qquad 
  \subfloat[][]{...figure code...} 
  \caption[]{Here are the last two figures of a continued figure.}
  \label{fig:cont}
\end{figure} 



回答2:


This may sound odd, but why not put them in something like supertab to make them span several pages? You would get rid of the floating object "figure" which has to placed on one page completely - according to my knowledge.




回答3:


I know that this is an old thread, but I recently created the package figureSeries which may be a good answer here, you can find it at http://github.com/thomasWeise/figureSeries.

The package figureSeries provides

  1. a facility to include an arbitrary number of (potentially differently-sized) sub-figures into a figure*-like construct,
  2. the ability to make this figure*-like construct look as if it was a floating object, which
  3. works well in both single-column and double-column documents.


来源:https://stackoverflow.com/questions/1078370/subfigs-of-a-figure-on-multiple-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!