Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
642 views
in Technique[技术] by (71.8m points)

latex - Subfigs of a figure on multiple pages

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}
egin{figure}[hp]
centering
subfloat[Fig1]{label{fig:1}includegraphics[width=0.48extwidth]{fig1}}
subfloat[Fig2]{label{fig:2}includegraphics[width=0.48extwidth]{fig2}}
subfloat[Fig3]{label{fig:3}includegraphics[width=0.48extwidth]{fig3}}
subfloat[Fig4]{label{fig:4}includegraphics[width=0.48extwidth]{fig4}}
subfloat[Fig5]{label{fig:5}includegraphics[width=0.48extwidth]{fig5}}
subfloat[Fig6]{label{fig:6}includegraphics[width=0.48extwidth]{fig6}}
caption{........}
label{..........}
end{figure}

I shall be very thankfull for your kind help.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Everything inside egin{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)


egin{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}

egin{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} 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...