{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}.

learn more… | top users | synonyms (2)

11
votes
2answers
14k views

How to remove figure label?

I'm using floatrow package to organise my figures, but then would like to add an image in the preliminary chapters which should NOT contain figure label e.g. Figure 1, but only the caption To my ...
25
votes
3answers
3k views

Tables below footnotes, is this a good output routine algorithm or a bug?

Consider the minimal code below, which produces two different layouts depending on the table position marks. The first layout uses \begin{table} which results in the table ending below the ...
9
votes
2answers
653 views

Using an image as a table

I have an image containing tabular data and would not like to convert this to a real table. What I do want is for this image to have a proper caption and be included in the listoftables. Is it ...
4
votes
2answers
1k views

How to create multilevel figure / table numbers?

How to create figure numbers like 1.1.1 and then 1.2.1, not 1.2.2? I mean even if I added \arabic{section} into the command, the order of figures is still continuous, not accordingly rearranged by ...
3
votes
3answers
993 views

Create caption without float *and* without caption package?

In the appendix of my thesis, there is a large number of tables and longtables which does not need to float, as they shall appear one after the other just how they fit on the pages (and it is no ...
2
votes
2answers
731 views

How do I clear a floatfig?

The concept I am looking for is similar to the CSS 'clear' property. I'm trying to get two paragraphs, each with an image floating left: \begin{floatingfigure}[l]{5cm} \fbox{ \centering ...
36
votes
2answers
47k views

What does [t] and [ht] mean?

I would appreciate if someone could tell me difference between [t] and [ht] in the following example? I don't see a difference in the output pdf file. \begin{figure}[ht] ... \end{figure} and ...
19
votes
2answers
2k views

Margin Figures/Captions

I have two figure/caption related questions. Firstly, in many textbooks, it is customary to put thin figures (along with their captions) entirely in the outer margin of the page. What is the most ...
24
votes
2answers
53k views

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 ...
19
votes
2answers
3k views

Code spanning over two pages with minted, inside listing with caption

I am trying using minted to display some code in my document, but the code is long and spans over two pages, this works fine, however when I place my code inside \begin{listing} ...
15
votes
2answers
21k views

How to force table caption on top?

I have a table which works ok...as per example below. But in the thesis, the right column is centered and caption forced to below table. Is there a way I can make it look like? ...
12
votes
1answer
1k views

How can I inject the proper amount of vertical space between captions and figures?

In my source document, I have an image and a code listing, separated by some text. When I generate PDF using pdflatex, the image is just above the listing, and it looks like the caption for the image ...
6
votes
3answers
1k views

Caption issue when placing figure side by side

I placed 2 figures side by side using the minipage method from this post, and the figures look perfectly fine. However, the caption of the right figure stick out into the margin, why is that and how ...
15
votes
3answers
7k views

When do I need invoke \clearpage manually?

I am not sure whether invoking \clearpage is necessary or redundant at many places in my input .tex files. Here I will ask you, in what condition is invoking \clearpage necessary? I hope I get a ...
27
votes
2answers
10k views

What is the difference between \subfigure and \subfloat?

I've been just reading through this Latex wikibook and I spotted they advocate use of \subfloat in figures. I've always used \subfigure. What is the difference?
20
votes
2answers
5k views

subfigure and subfig packages deprecated

I was using the subfigure package to align multiple small images in a document. However, WikiBooks states that "the subfigure and subfig packages are deprecated and shouldn't be used any more" ...
8
votes
4answers
5k views

Placing Subfigures vertically

I want to use subfigures to place three figures like this: The following is the code I used: \begin{figure} \begin{tabular}{|c|c|} \hline \multirow{2}{*}{ ...
14
votes
2answers
1k views

\intextsep gives doubled space

If a float (black box) follows my {example} environment (gray left line) the skip between them is too big. I guess it’s twice \baselineskip but it should be only one \baselineskip plus some glue. It ...
13
votes
2answers
559 views

Set a global policy for floats positioning

I have a document with many floats (figures, specifically). I want to be able to change the global floats positioning policy from htbp to just h (or even H with the floats package). For my-own ...
11
votes
2answers
572 views

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. ...
8
votes
1answer
1k views

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 ...
8
votes
2answers
2k views

Align by the top borders of figures when using subcaption

I'm using the subcaptionpackage to have figures side-by-side. The problem is that the package aligns the figures to their subcaptions (should I be taking a hint for the package name?) rather than the ...
6
votes
1answer
453 views

Margin floats and hyperlinks

I read Margin Figures/captions and the answers within. I have stripped the definition of the marginfloats from the tufte documentclass into the MWE below. Can the definition of ...
7
votes
3answers
1k views

Macro for figure position?

Why is the following minimal example not working? I.e., what do I need to do, in order to define the float placement specifier of a figure within a macro? (I know that I should use \newcommand, but ...
6
votes
2answers
745 views

Help aligning tables.

I need to align 1 table to the right and two to the left, the layout I want to achieve is something like this: \begin{figure} \centering \subfloat[]{% \begin{tabular}[b]{cc} \hline 0 ...
1
vote
1answer
5k views

Put a figure with a table side by side

I have a table and a figure, I want to align them one next to the other (not one under the other): \documentclass{llncs} \usepackage{capt-of} \usepackage[demo]{graphicx} \begin{document} ...
16
votes
3answers
3k views

Suppress page number for a single page that only contains one large table?

I have a large table that uses up the whole space on a page. Unfortunately, the table also covers the page number, which is shining through. I don't want to split the table across two pages, hence I ...
5
votes
1answer
408 views

How to ensure that 2 couples of figures are on 2 facing pages?

I would like to reproduce the following layout with two figures on one page and two others on the facing pages. I would like the first couple to be on an even-numbered page and the second on an ...
23
votes
3answers
36k views

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 ...
56
votes
7answers
35k views

Custom margin settings for figure in LaTeX

I have a fairly large figure in a LaTeX document. This figure is too large for the left and right margin of the document. This results in the figure being placed flush with the left margin, and way ...
22
votes
1answer
21k views

`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 ...
26
votes
2answers
7k views

Clearpage without pagebreak?

Is there a command which does the same like \clearpage (typesetting all floats which have not been typeset yet) but then does not insert a pagebreak but continues with the following text/graphics on ...
14
votes
2answers
18k views

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 ...
14
votes
3answers
5k views

How can I remove the figures from a draft of my document?

I'm working on a research paper with many figures in it. To save paper, I would like to exclude the figures when I print drafts of the paper. Is there an easy way to do this (via command-line option, ...
23
votes
1answer
13k views

How can I modify vertical space between figure and caption?

\documentclass{article} \usepackage[draft]{graphicx} \begin{document} \begin{figure} \centering \setlength\fboxsep{124pt} \setlength\fboxrule{1pt} \fbox{\includegraphics{dummy}} \caption{Dummy ...
14
votes
3answers
3k views

Special arrangement of subfigures

I need an image with five subfigures arranged this way. I have tried to use subfig and floatrow, but I haven't been able to place the figures as I need them
13
votes
1answer
213 views

Formatting floats differently based on placement

I'm interested in changing how floats are formatted depending on whether they are placed at the top, bottom, or middle of a page, or on a float page. One package I am aware of that does something like ...
12
votes
1answer
4k views

center /verbatim text in /figure

I'm trying to center a the content of a figure that has verbatim text in it, but the verbatim text is always right-aligned: \begin{figure} \centering \begin{verbatim} some text here ...
10
votes
2answers
2k views

Splitting a float with code listings

Using the floats and listings packages, I have defined a float for code listings and a shortcut for using it as follows: \usepackage{floats} \usepackage{listings} ...
8
votes
1answer
4k views

Figure with caption within an itemize list not indenting correctly

I'm trying to put an image with a caption on it within an itemize environment (within another itemize environment). When I had the image with no caption, simply using \includegraphics, it indented to ...
8
votes
2answers
483 views

How do you print only the pages with figures on them?

A friend of mine recently completed his doctoral thesis. In order to save on toner, he printed the pages with figures on a color printer, but printed everything else on a black and white printer. In ...
4
votes
1answer
2k views

Ruled Algorithms in columns/minipages

I'm using Benoit Guillon's algo styles for Lyx (at http://bgu.perso.libertysurf.fr/) in 2.0 to get nice algorithms ruled with line numbers. This is just a wrapper for the algorithm and algorithmic ...
14
votes
1answer
12k views

Floats - how to restrict floating to subsection only in one section of the document?

I have concluded that the package float allows figures to float within the section they belong to. However for one particular section I need to restrict the floating to the subsection (without forcing ...
12
votes
1answer
170 views

Drawbacks of the `H` specifier

According to the float package documentation, the H float placement specifier [...]when added to a float, tells LaTeX to “put the float HERE, period”. If there isn’t enough space left on the ...
10
votes
1answer
467 views

Placing graphics inside figure captions

Similar to putting a tikzpicture inside a \caption{}, I would like to insert an external icon inside figure captions, something like: \begin{figure} \caption{text with \includegraphics{icon} ...
10
votes
1answer
12k views

Frame around text and figure

Consider the following TEXT TEXT TEXT TEXT Figure~\ref{fig:foo} TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT \begin{figure} \centering \includegraphics[width=\textwidth]{foo} \caption{This is foo.} ...
7
votes
3answers
6k views

Rename “Algorithm” to “Listing”

Background Syntax-highlighted source code image listings are being used as Algorithm floats with the lst: prefix for captions. Problem The following LaTeX code in the preamble renames the caption ...
6
votes
1answer
200 views

How to circumvent a late \pagetotal reset to 0pt?

Below example demonstrates at the beginning of each paragraph how \pagetotal is not always reset to 0pt at the beginning of the page. This appears to interfere with my attempt to automatically clear a ...
2
votes
1answer
170 views

How to define different spaces below float and non float listing?

I am using listings from the listings-package. I'm having a problem with spaces below the listings. I use both, float- with h and non-float listings. The problem now is, that the spaces below the ...
18
votes
2answers
338 views

How can I detect if I'm inside or outside of a float environment?

I am trying to detect whether I am inside or outside a float. I know the way how caption works. It uses the internal \@captype. But in the example below you see that this test failed by using ...