Questions tagged [floats]

{floats} is about the floating environments figure, table and other, custom-defined floats, and concerns issues such as positioning, labelling, captioning, indexing and listing of said floats. For questions specifically about formatting a float caption, consider using {captions}.

Filter by
Sorted by
Tagged with
723 votes
2 answers

How to influence the position of float environments like figure and table in LaTeX?

How to influence the position of float environments like figure and table in LaTeX? This is a general question and should collect useful answers for all users. I hope we can use this as a reference
Marco Daniel's user avatar
  • 95.6k
392 votes
8 answers

Keeping tables/figures close to where they are mentioned

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?
artimess's user avatar
  • 4,291
668 votes
6 answers

Force figure placement in text

I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code: \begin{figure}[ht] \...
Marin's user avatar
  • 8,139
243 votes
4 answers

Continuous v. per-chapter/section numbering of figures, tables, and other document elements

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)? And vice versa: Some ...
lockstep's user avatar
  • 250k
279 votes
4 answers

Center figure that is wider than \textwidth

I have a figure that is wider than the \textwidth of my document. (I don't want to change the \textwidth.) As a result, the leftmost part of the figure is flush with the left margin, while the ...
zfm's user avatar
  • 8,947
334 votes
3 answers

Should I use center or centering for figures and tables?

What is the correct way to center figures and tables (figure, table)? \begin{center} ... \end{center} or \begin{centering} ... \end{centering}
yannisl's user avatar
  • 117k
263 votes
4 answers

Two figures side by side

How can I put two figures side-by-side? Not two sub-figures, but two actual figures with separate "Fig.: bla bla" captions. A figure is supposed to spread over the entire text width, but I have two ...
Little Bobby Tables's user avatar
174 votes
3 answers

subcaption vs. subfig: Best package for referencing a subfigure

On this question, a comment by Martin H says: that one should forget about the subfigure and subfig packages and use subcaption. As subfig replaces subfigure, no argument there. I am currently using ...
meep.meep's user avatar
  • 16.8k
23 votes
2 answers

How to put a full-width table at the top or bottom of the same two-column page as the reference text?

I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*). At some point, ...
beeb's user avatar
  • 483
326 votes
13 answers

Using \footnote in a figure's \caption

Maybe this is an easy one, but I struggled with this now too long :) I want to have a footnote in a caption of a figure, see the example. \begin{figure}[!ht] \caption{a figure caption\footnote{...
Matten's user avatar
  • 5,657
219 votes
4 answers

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

Often floats may land quite a bit later in the document than the point they are created, sometimes after a section break. Is there a way to force a new section to start on a new page, after any ...
Scott Morrison's user avatar
129 votes
2 answers

How to include a picture over two pages, left part on left side, right on right (for books)?

When writing a long book (from 300 to over a 1000 pages), there is often need to include large pictures and one wishes to have them displayed over two pages, left half on the left page, right half on ...
Leo's user avatar
  • 3,499
90 votes
1 answer

Split subfigures over multiple pages

I have the following code for a Figure with 4 subfigures: \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure}[b] \...
JNevens's user avatar
  • 1,449
111 votes
2 answers

How to make a figure span on two columns in a scientific paper?

If I just try to set the figure's size to 0.9\textwidth my figure will just end up on the right column, sized to be two-columns wide. Has anyone done this before?
levesque's user avatar
  • 13k
501 votes
4 answers

LaTeX figures side by side [duplicate]

I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but could not get a good result.
user avatar
35 votes
3 answers

How to place a float at the top of a floats-only page?

I just got a short algorithm on my page, and it keeps getting aligned at the center of the page. But I want to have it aligned at the top, what do I have to do?
chris's user avatar
  • 655
133 votes
2 answers

Table and figure side-by-side with independent captions

Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch ------------ ----------------- TABLE | a | b | ...
badroit's user avatar
  • 7,527
272 votes
1 answer

Displaying a wide figure in a two-column document [duplicate]

It's my first time working with a two-column document (declared as an argument to \documentclass) and I need to put in a very wide figure. The thing is, LaTeX puts it bounded by a column so it either (...
skytreader's user avatar
  • 3,017
92 votes
2 answers

How to change the spacing between figures/tables and text?

I was wondering if there is any way to lessen the spaces between figures and text. In my paper I have a lot of figures (graphics) and it is inconvenient for me to have default (large) spaces between ...
kronos's user avatar
  • 973
53 votes
4 answers

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

Every now and then a question/answer with a float environment with option H appears, and every time someone points out that this option should not be used. However, I haven't found a specific post ...
CarLaTeX's user avatar
  • 62.2k
144 votes
3 answers

Change caption name of figures

How can I modify the caption name of a figure? For example I have \caption{This is a figure.} and by default the caption appears as Figure 1: This is a figure. However I want Fig.1 - This is ...
qwerty's user avatar
  • 2,965
184 votes
6 answers

Why should a table caption be placed above the table?

In the papers I read the caption in figure floats is placed below the figure and in table floats the caption is placed above the table. I recognize that this is a common style that a lot of people ...
maxschlepzig's user avatar
  • 12.1k
32 votes
5 answers

New figure environment

I am writing my PhD thesis. In my manuscript I have Figures in the text and Photographic plates (a figure of figures) in the annexes. The two elements are different and I would like create a new ...
user avatar
30 votes
5 answers

How to avoid splitting tables between sections

I have 5 tables and a section after them. After creation of an output file I have two tables on one page, then a section and last 3 tables on next page. What I want to achieve is to put tables and ...
pixel's user avatar
  • 2,423
10 votes
2 answers

How can i change the fontsize with KOMA-script?

I need to change the fontsize to 11pt inside a table environment. The default setting of the document is 12pt using scrartcl, but I need to change this to exact 11pt in the float (the reason is that ...
Jörg's user avatar
  • 7,653
51 votes
5 answers

Rotate picture with caption

How can I rotate both a picture and its title in TeX? Parameter in \includegraphics allows to rotate only a picture.
klm123's user avatar
  • 1,615
27 votes
1 answer

Algorithm over 2 pages

I am writing a few rather large pseudocode functions using algorithm and algorithmic, i.e. my code looks something like: \begin{algorithm} \caption{Coolest Algorithm ever} ...
chris's user avatar
  • 655
16 votes
1 answer

How to protect text from being split by a float?

Given following situation: \begin{figure}[ht!] ... \end{figure} \begin{equation} ... \end{equation} Some one-line text. \begin{eqnarray} ... ... \end{eqnarray} how can I make ...
htorque's user avatar
  • 495
140 votes
3 answers

How to use the placement options [t], [h] with figures? [duplicate]

I want to control the placement of figures. The paper that I am currently writing contains a lot of figures, resulting in some figures ending up in the bibliography section. Therefore I want to ...
Shashank Sawant's user avatar
58 votes
4 answers

Placing figures inside a two-column document

I'm trying to get images in my document in two different ways: On top of the entire page, centered On top of a single column I tried it with both twocols and multicols. I ruled out twocols because ...
Mark Jeronimus's user avatar
177 votes
8 answers

How can I get the figures not to be pushed to the end of the document?

For some reason, my figures get pushed to the end of the document. I tried begin{figure}[t], [h] and other options, but none helped. Any ideas how to get the figures to appear much earlier in the ...
kloop's user avatar
  • 9,624
25 votes
2 answers

How to float until on left (or right) page?

I have two sideways tables that I want on two facing pages so the reader can turn the entire book and read them both in one turn. For the moment I keep moving them around to keep them on facing pages. ...
jonalv's user avatar
  • 11.4k
14 votes
1 answer

Three-columns text with figures of 2\columnwidth

Although in multicol environment (not the twocolumn option in document class) is problematic to place floats, there are some ways to put figures within a single column or occupying the entire width of ...
Fran's user avatar
  • 80.1k
109 votes
1 answer

Reference to a figure uses the section's number

One of my sections seems to be using the section number rather than the appropriate figure number for \ref's that point to figures. (Theorems and the like work fine.) As far as I can tell, there's ...
hoyland's user avatar
  • 1,796
105 votes
3 answers

How to use figure inside a minipage?

I'm trying to include an image, and keep it centered, and prevent from wrapping from the next page. The following code works for that: \begin{minipage}{\textwidth} \begin{center} Caption ...
Jay Sullivan's user avatar
  • 2,468
99 votes
5 answers

Too many unprocessed floats

I'm trying to a large number of figures. The code is \begin{figure} \includegraphics[scale=0.5]{m2T4.pdf} \caption{M2T, Problem Size 513} \end{figure} I'm not able to compile, I get the error ! ...
psteelk's user avatar
  • 1,307
80 votes
3 answers

How to place a table on a new page with landscape orientation without clearing the current page?

I'd like to place a table on a new page with landscape orientation. To do so, I use \usepackage{pdflscape} ... \pagestyle{empty} \begin{landscape} \begin{table}[htbp] \begin{center} \begin{tabular}{...
Marco's user avatar
  • 4,425
37 votes
4 answers

Place figures side by side, spill into outer margin

I would like to place two figures side by side (not subfigures) and what’s more, I’d like to let the figures spill into the outer margin (since they are too wide for the the text width. Like this: (...
Konrad Rudolph's user avatar
2 votes
1 answer

Figure on an even page and caption on the following page

I would like to place a figure on an even page, then the caption on the following page. The reason for that is that the figure + caption is too big to fit in one page, but I want the reader to be ...
Slagt's user avatar
  • 123
127 votes
2 answers

How to fix table position

Table does not show up at the same position it was inserted in the TeX file. I got the understanding through bit of reading on this forum that they are floats and they pick the best place on the ...
Aku's user avatar
  • 11k
100 votes
2 answers

`h' float specifier changed to `ht' warning when not attempting to specify a float

I'm new to LaTeX and trying to understand the reason why I'm getting the warning: `h' float specifier changed to `ht' I'm not attempting to change the float property of anything - the warning is ...
Geodesic's user avatar
  • 1,123
68 votes
5 answers

Remove space after figure and before text

I have a figure in my paper (I am using IEEEtran package). After this figure there exists a space between the figure and the text. How can I reduce the size of this white space. To be specific the ...
sheet_ethics's user avatar
  • 2,921
63 votes
2 answers

Figures: What is the difference between using subfig or subfigure [duplicate]

I tend to use \subfloats[]{} in my figures when I want to list multiple labelled figures of similar content in one bigger picture. However, I see that some people use \subfigure. What is the ...
dustin's user avatar
  • 18.6k
31 votes
1 answer

Defining a new type of floating environment

In a document, I need to provide some details about specific topics without disrupting the flow of the main document, so that the details may easily be omitted at first reading. To do so, I thought it ...
Corentin's user avatar
  • 9,951
21 votes
2 answers

Force floats to be typeset after their occurrence in the source text?

AFAIK a figure or table should always be placed after the first reference to it in the text. So I always place the code for my figures and tables after the paragraph which contains the first ...
MostlyHarmless's user avatar
75 votes
3 answers

Turning off and on images in figures

Is it possible to prevent the contents of a figure from being rendered? I have a large book document, and to speed up compiling while working on a draft, I would like to have some way of ignoring the ...
celenius's user avatar
  • 5,274
42 votes
1 answer

href to an image label - how to jump to the image instead of the caption below the image?

I'm using the following command to embed images in my LaTeX document (which is then rendered as PDF) \newcommand{\img}[4]{ \begin{figure}[!hbt] \centering \vspace{1ex} \...
ThiefMaster's user avatar
22 votes
2 answers

Figures on left pages, text on right ones with class book, numbering only on right pages

My problem is that I would like to have either blank or figures on the left pages, and text on the right ones, with the numbering of the right pages to be 1,2,3,4,5 and not 1,3,5,7. It means, in a ...
Martigan's user avatar
  • 3,146
29 votes
5 answers

How can I automatically center an image?

I use: \documentclss{mwrep} ... \begin{figure} \includegraphics{a.jpg} \caption[Long caption]{Caption} \label{pic-a} \end{figure} How can I make images to be always visible on the center of page? (...
Ichibann's user avatar
  • 8,331
6 votes
1 answer

Place figure at bottom of this page or the top of the next page

If a figure will fit on the bottom of the page, it will also fit at the top of the page and will wind up there (barring certain circumstances). The best I have come up with is to set topnumber to 0 (...
John Kormylo's user avatar
  • 79.3k

2 3 4 5