Graphics, Figures & TablesFigure and Caption Placement

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
SamBam77
Posts: 8
Joined: Sun May 10, 2009 1:19 am

Figure and Caption Placement

Post by SamBam77 »

I have two questions…

I have a Figure made up of several sub-figures, each with their own caption. I have sized the image in each subfigure to the proper dimensions, however in some cases the caption is longer than the image width and word-wraps to the next line. I would like to prevent this word-wrapping in certain cases and allow the caption to be wider than the image itself. How can I adjust the width of the caption independently from the width of the subfigure image?

I am trying to place all of my figures together at the end of my document. I am trying to label the page where all the figures begin, so I created a new section and called it “Figures”, and then placed all of my figures. However, Latex has decided that some figures should be automatically placed above my section title. How can I force all of my figures to be below my section title and not rearrange themselves from the order I code them into the document?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: Figure and Caption Placement

Post by sommerfee »

Regarding question 1: The answer depends on how you do the sub-figuring. By using minipages? By using the subfigure package? By using the subfig package? By using the subcaption package?

If you use the subcaption package you can play around with the optional parameter of \subcaptionbox, see section 1.3 of the documenation http://www.ctan.org/get/macros/latex/co ... aption.pdf

Regarding question 2: The endfloat package should be useful here.
SamBam77
Posts: 8
Joined: Sun May 10, 2009 1:19 am

Re: Figure and Caption Placement

Post by SamBam77 »

Thanks for your help.

For the first question,
I am trying to do this using the subfigure package. Below is essentially the code I am using:

\begin{figure}
\begin{center}
\subfigure[caption1]{
\includegraphics[width=2in]{Figure1}}\\
\subfigure[caption2]{
\includegraphics[width=2in]{Figure2}}
\label{Label}
\end{center}
\end{figure}

Even though I am setting the subfigure images to be 2 inches wide, I would like to be able to make their captions wider, for example 3 inches.

When I tried using the subcaptionbox package as a substitute I got a bunch of errors with the code I am using for my other figures/subfigures (the two seem to interfere with each other).


For the second question,

The endfloat package does, indeed, do something similar to what I want to do….place all of the figures at the end. However if I use this then there are two other things I still need to modify for it to fit my purposes. Firstly, I would like to remove the “[Figure # about here]” references in the document where I place the code for the figure. I do not want to see that. Also, I would still like to put some kind of heating where the figures start displaying. I think the Figure list, which is turned on by default, is somewhat excessive for this.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Figure and Caption Placement

Post by Stefan Kottwitz »

Hi,

because the subfigure package is obsolete I don't deal with its captions now, perhaps consider to use the newer subfig package instead. I'm even preferring the subcaption package.

Just a remark, better use \centering instead of \begin{center} ... \end{center} inside figures: see center vs. \centering for an explanation.

Stefan
LaTeX.org admin
Post Reply