Problem with float and pictures in LaTex

后端 未结 1 1292
有刺的猬
有刺的猬 2020-12-15 13:28

The picture is at the position of the header: http://dl.getdropbox.com/u/175564/%20latex1.png

Code:

\\begin{figure}
   \\subfloat[A gull]{\\label{fig         


        
1条回答
  •  醉梦人生
    2020-12-15 14:24

    Figures float.

    That is, TeX moves them around to accommodate its typesetting needs. You have the option of specifying what types of places you want TeX to try to put them using:

    \begin{figure}[htpb]
       ...
    \end{figure}
    

    where the options mean:

    h -- here
    t -- top
    b -- bottom
    p -- page (on a page-o-floats)
    H -- Absolutely right here (but requires the `float` package)
    

    Using ! in the options will tell TeX to try hard to put it near the things it is adjacent to in the source file. The default positioning is tbp, so "here" is not even an option unless you ask for it. Also note that the ordering of the options is irrelevant, so [p!bh] will give the same result as [!hbp].

    So try \begin{figure}[h!] (or \begin{figure}[H] if you have already done \usepackage{float})

    The same options are available for tables and any other floats you define.

    0 讨论(0)
提交回复
热议问题