Is there a way to get LaTeX to place figures in the same page as a reference to that figure?

后端 未结 9 1075
粉色の甜心
粉色の甜心 2021-01-31 02:48

I am using LaTeX and the figure environment.

I am well familiar with the parameters to that environment: [htbp], and I am also generally familiar with the strategies tha

相关标签:
9条回答
  • 2021-01-31 03:21

    I don't want to sound too negative, but there are occasions when what you want is almost impossible without a lot of "artificial" tuning of page breaks.

    If the callout falls naturally near the bottom of a page, and the figure falls on the following page, moving the figure back one page will probably displace the callout forward.

    I would recommend (as far as possible, and depending on the exact size of the figures):

    • Place the figures with [t] (or [h] if you must)
    • Place the figures as near as possible to the "right" place (differs for [t] and [h])
    • Include the figures from separate files with \input, which will make them much easier to move around when you're doing the final tuning

    In my experience, this is a big eater-up of non-available time (:-)


    In reply to Jon's comment, I think this is an inherently difficult problem, because the LaTeX guys are no slouches. You may like to read Frank Mittelbach's paper.

    0 讨论(0)
  • 2021-01-31 03:21
    \setcounter{topnumber}{2}
    \setcounter{bottomnumber}{2}
    \setcounter{totalnumber}{4}
    \renewcommand{\topfraction}{0.85}
    \renewcommand{\bottomfraction}{0.85}
    \renewcommand{\textfraction}{0.15}
    \renewcommand{\floatpagefraction}{0.7}
    

    http://robjhyndman.com/researchtips/latex-floats/

    0 讨论(0)
  • 2021-01-31 03:24

    Maybe this will help you?

    \begin{center}
    \includegraphics[scale=0.5]{picture_name}
    \end{center}    
    

    I think is better to use the graphics command when your figures run away.

    0 讨论(0)
  • 2021-01-31 03:28

    I have some useful comments. Because I had similar problem with location of figures. I used package "wrapfig" that allows to make figures wrapped by text. Something like

    ...
    \usepackage{wrapfig}
    \usepackage{graphicx}
    ...
    \begin{wrapfigure}{r}{53pt}
    \includegraphics[width=53pt]{cone.pdf}
    \end{wrapfigure}
    

    In options {r} means to put figure from right side. {l} can be use for left side.

    0 讨论(0)
  • 2021-01-31 03:29

    You can always add the "!" into your float-options. This way, latex tries really hard to place the figure where you want it (I mostly use [h!tb]), stretching the normal rules of type-setting.

    I have found another solution:
    Use the float-package. This way you can place the figures where you want them to be.

    0 讨论(0)
  • 2021-01-31 03:34

    One way I found that helps with this is to use \include{file_with_tex_figure_commands}

    (not input)

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