Hot answers tagged

114 votes

Split subfigures over multiple pages

Split your figure into two figures and than to the second one immediately after \begin{figure} add command \ContinuedFloat. With this both figures will have the same caption number, however the sub ...
user avatar
  • 255k
67 votes
Accepted

How do I stack two figures on top of each other, rather than side to side?

Since you're looking to make the two graphs larger, you could (a) increase the widths of the two subfigure environments to, say, 0.75\textwidth and (b) set the widths of the graphs to 1\linewidth, i.e....
user avatar
  • 439k
64 votes

How to find the lost text part when having "Float(s) lost" error

FWIW, my Float(s) lost error seemed to have been due to introducing a todo in a footnote probably because the package I use for adding todos uses marginpar internally.
user avatar
61 votes
Accepted

No caption number for figures and tables

You could use \captionsetup from the package caption that way: \documentclass{article} \usepackage{caption} \usepackage{graphicx} \begin{document} \begin{figure}[h!] \centering \includegraphics[...
user avatar
  • 1,138
60 votes

Should I use center or centering for figures and tables?

This is a (very late!) supplement to lockstep's answer which just offers a visual demonstration of the difference between the use of \centering and the center environment within figure environments. ...
user avatar
  • 184k
57 votes

Change caption name of figures

This is a simple solution: \usepackage[figurename=Fig.]{caption} Works with and without babel. Use tablename for tables.
user avatar
  • 793
56 votes

How can I modify vertical space between figure and caption?

\vspace*{-10mm} placed before \caption command does the trick. Just pick the number that works for you the best.
user avatar
56 votes

Add source to figure caption

I know it makes a lot of time from this post but I had the same problem and found the solution you where looking for. I will post it just in case someone founds it useful. I took the idea from ...
user avatar
  • 743
56 votes
Accepted

Problem on subfigure 2X2

Each of your \subfigures is 1\textwidth wide - there's no way LaTeX could fit two of these in a row. Also you don't need the minipage there. Try something like this: \documentclass{article} \...
user avatar
  • 3,426
46 votes

Change figure numbering for appendix

A simple way to prepend an A to your appendix figures and to have the counter reset is to paste the following two lines before your first figure of the appendix. \renewcommand{\thefigure}{A\arabic{...
user avatar
  • 599
45 votes
Accepted

Placing a figure in the bottom of a page spanning the two columns of an IEEE document

You need to use the starred version of the {figure*} environment to enable the figure occupy the two columns. Besides, you also need to load the dblfloatfix package (download from here), which is ...
user avatar
  • 44.9k
45 votes

Why should the "H" option not be used in floats?

[H] makes the figure not float so \begin[figure}[H] ... \caption{..} \end{figure} is (with just minor edge case and spacing differences) the same as \begin{minipage}{\columnwidth} ... \captionof{...
user avatar
44 votes

Force figure placement in text

One solution not mentioned by any of the other answers that just sorted me out is to use \clearpage No special packages are needed. \clearpage forces all figures above it in the .tex file to be ...
user avatar
  • 638
38 votes
Accepted

Moving a Latex figure to the left

the table environment isn't really doing anything other than add a bit of space, you could use \hspace*{-2cm}\begin{tabular}.... But I would just do \begin{figure}[htbp] \hspace*{-2cm} ...
user avatar
38 votes

No caption number for figures and tables

You can also use \caption* when using the caption package which keeps only the caption title. You may do something else what did not work, but this example works as desired: \documentclass{article} \...
user avatar
  • 381
38 votes

Comparison between \newpage, \clearpage and \pagebreak, etc.?

\newpage is a low level command on which \clearpage and \cleardoublepage are built upon. It ends the current paragraph (if not issued between paragraphs), fills the current page with white space and ...
user avatar
  • 993k
36 votes
Accepted

Argument of \caption@ydblarg has an extra }

The easiest solution in these cases is to add \protect in front of the usual suspects; \subref is one of them because it has a *-variant. \documentclass{article} \usepackage{graphicx} \usepackage{...
user avatar
  • 993k
34 votes

How do I ensure that figures appear in the section they're associated with?

I'm now using: \usepackage{placeins} \let\Oldsection\section \renewcommand{\section}{\FloatBarrier\Oldsection} \let\Oldsubsection\subsection \renewcommand{\subsection}{\FloatBarrier\Oldsubsection} ...
user avatar
33 votes

"Environment subfigure undefined" on journal submission

or you can try: \usepackage{subcaption} \captionsetup{compatibility=false}
user avatar
32 votes
Accepted

Insert two images as subfigures vertically

You need no fancy minipage; the code you're using is for ensuring the two subcaptions are at the same vertical level, with the subfloats side by side. \documentclass[twocolumn]{revtex4-1} \...
user avatar
  • 993k
32 votes

Why should the "H" option not be used in floats?

The option H disables floating (but allows captions) so the question can be reworded to "Why should I let figures and tables float?". A lot of people have difficulties to adjust to the concept of ...
user avatar
30 votes
Accepted

Warning: a possible image without description

From the warning you quoted, I assume that you use the acmart document clss. To quote from the manual of version 1.56: 2.6 Descriptions of images Blockquote Some readers of ACM ...
user avatar
  • 60.6k
30 votes
Accepted

What is the appropriate methodology to deal with figures in LaTeX to prevent fighting it all the time?

Maybe these posts can help you along a bit: A: Force figure placement in text B: How to use the placement options [t], [h] with figures? C: How to influence the position of float environments like ...
user avatar
  • 643
30 votes
Accepted

Why put figures on top or bottom of page?

Why traditionally figures were placed on top, bottom or on a page of their own has to do with the difficulties early typographers had to overcome. Typesetting a book was a laborious practice. The text ...
user avatar
27 votes
Accepted

Forcing subfigures to have same height and take overall X% of linewidth in LaTeX

You can include them to the same (more or less arbitrary) height then scale them together to the desired width \documentclass{article} \usepackage{graphicx}% images from mwe package \begin{document}...
user avatar
27 votes
Accepted

Two figures on the same line

Delete the surrounding \frame{...} from your code; \frame is a kernel command which draws a tight frame around its argument. Use \centering inside each minipage to center each image inside it, and ...
user avatar
26 votes

How can I modify vertical space between figure and caption?

You can use the caption package for this: \usepackage[skip=2pt]{caption} % example skip set to 2pt This will effect all figures. The documentation says: The vertical space between the caption ...
user avatar
26 votes
Accepted

Overlapping figures on underfull page

What a fascinating problem! As it turns out this is (probably) a bug in LaTeX in there since the dawn of time, but as it touches so delicate areas (where TeX has its limitations) I'm not sure there ...
user avatar
25 votes
Accepted

Why is my table before the section title?

I know that it is not a popular solution on this site but I like it anyway. The float package offers an additional placement parameter/option called H. If you use it then the float object (figure or ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible