发布时间:2011-09-02 21:09:29
文章类别:插图技巧
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770102dvai.html
QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
【解决方案】
演示代码如下:
 \documentclass[a4paper,10pt,twocolumn]{article}
 \usepackage{graphicx,dblfloatfix,caption,afterpage}
 \usepackage[english]{babel}
 \usepackage{blindtext}
 \begin{document}
 \tableofcontents
 \section{Zero}
 \blindtext[1]
 \blindtext[1]
 %\afterpage{\newpage} % bottom on third page
 %\afterpage{\clearpage} % cuts a column, bottom on third page
 \blindtext[1]
 \blindtext[1]
 \begin{figure}[!h]
 \centering
 \includegraphics{test.jpg}
 \caption{test picture 1}
 \label{fig:1}
 \end{figure}
 \blindtext[1]
 \begin{figure}[!h]
 \centering
 \includegraphics{test.jpg}
 \caption{test picture 2}
 \label{fig:2}
 \end{figure}
 %\afterpage{\newpage} % bottom on third page
 %\afterpage{\clearpage} % bottom on third page
 % save
counter
 \newcounter{savefig}
 \setcounter{savefig}{\value{figure}}
 % step
preemptively
 \stepcounter{figure}
 % figure*
MUST be declared before first \newpage!
 % so in this
case, it is declared (still) within pg1.
 \begin{figure*}[!b]
 \centering
 \includegraphics{test.jpg}
 \caption{test picture dbl}
 \label{fig:dbl}
 \end{figure*}
 % reset
counter
 \setcounter{figure}{\value{savefig}}
 \afterpage{\newpage} % first newpage: goes from pg1:col2 to
pg2:col1
 \blindtext[1]
 %\afterpage{\clearpage % alone
 %}
 %\newpage~\newpage % clears everything prematurely, but manages to
put minipage and bottom on same page
 %\afterpage{\clearpage} %
 \section{One}
 A bit of bla
bla bla here...
 A bit of bla
bla bla...
 \begin{figure}[h]
 \centering
 \includegraphics{test.jpg}
 \caption{test picture 3}
 \label{fig:3}
 \end{figure}
 %\noindent\begin{minipage}{\columnwidth}
 %\captionsetup{type=figure}
 %\centering
 %\includegraphics{test.jpg}
 %\caption{test picture 3}
 %\label{fig:3}
 %\end{minipage}
 \blindtext[1]
 \afterpage{\newpage}% second newpage: goes from
pg2:col1 to pg2:col2
 \blindtext[1]
 \section{Two}
 \blindtext[1]
 \afterpage{\newpage} % third newpage: goes from pg2:col2 to
pg3:col1; AND
 % seemingly
this 'flushes' the bottom float, which will now appear on
pg2!
 % step
post-emptively
 % (as here
the bottom, Fig4 should be inserted - so we're ready for Fig5
next)
 \stepcounter{figure}
 \blindtext[1]
 \blindtext[1]
 \begin{figure}[h]
 \centering
 \includegraphics{test.jpg}
 \caption{test picture 5}
 \label{fig:5}
 \end{figure}
 \blindtext[1]
 \end{document}
效果哦:

                        
                        
                     
                    
                    
发表评论 取消回复