• Re: Figure placement

    From Dr Engelbert Buxbaum@21:1/5 to All on Sat Oct 19 10:30:02 2024
    In article <vetarg$38b6q$1@dont-email.me>, dieterhansbritz@gmail.com
    says...

    I am frustrated by figure placement. I have a figure near the top
    of an article that, if I write \begin{figure}[!h], it gets put in
    the middle of a sentence, but if I write \begin{figure}[!t] it
    naturally goes above the title.

    Is it possible to force a figure to go where I want it?

    "Forcing" of floats is generally a bad idea, if you want a figure or
    table at a specific place, use the tabular or includegraphics commands
    without wrapping them into a floating environment.

    I do use the placeins package to place \FloatBarriers between sections,
    this ensures that floats are placed near where they are referred to. The
    rest I leave to LaTeX.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dr Engelbert Buxbaum@21:1/5 to All on Wed Nov 20 23:01:15 2024
    In article <vf03ck$3rf5q$1@dont-email.me>, dieterhansbritz@gmail.com
    says...

    On Sat, 19 Oct 2024 10:30:02 +0200, Dr Engelbert Buxbaum wrote:

    In article <vetarg$38b6q$1@dont-email.me>, dieterhansbritz@gmail.com says...

    I am frustrated by figure placement. I have a figure near the top of an
    article that, if I write \begin{figure}[!h], it gets put in the middle
    of a sentence, but if I write \begin{figure}[!t] it naturally goes
    above the title.

    Is it possible to force a figure to go where I want it?

    "Forcing" of floats is generally a bad idea, if you want a figure or
    table at a specific place, use the tabular or includegraphics commands without wrapping them into a floating environment.

    I do use the placeins package to place \FloatBarriers between sections, this ensures that floats are placed near where they are referred to. The rest I leave to LaTeX.

    OK, here is the template I use for figures:

    \begin{figure}[!pb]%
    \begin{center}
    \includegraphics*[width=0.8\textwidth]{figs/.eps}
    \caption{}\label{Fig:}
    \end{center}
    \end{figure}

    What do I have to do to not wrap them in a floating
    environment?

    Simply leave out the figure environment (first and last line), and the
    caption. The latter you'll have to replace by normal text.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)