{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)

7
votes
2answers
2k views

footnotes and floats

I'm having some troubles with using footnotes inside floats. I use \footnotemark and \footnotetext, but then the float is pushed to the next page, and the footnote remains in the previous one. As a ...
7
votes
3answers
5k views

How can I create a multicol “figure”?

I have the following, somewhat minimal, example: \documentclass{article} \usepackage{multicol} \begin{document} \begin{multicols}{2} \begin{minipage}{\textwidth} \begin{framed} The function ...
61
votes
2answers
103k 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 ...
234
votes
2answers
444k views

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] ...
5
votes
2answers
6k views

Grouping Many Images in One Page

I have a section which describes a set of 6 images. After adding the section and the images just below it, the images were not placed in the correct place. Some of them were placed after the section, ...
3
votes
2answers
622 views

Inserting pages into LaTeX's floating material queue

I have sort of a strange formatting requirement. For the situation where a figure and its caption are too large to fit on a single page, the caption needs to appear by itself on the page directly ...
3
votes
1answer
1k views

figure overrides linespacing

I am using framed package to draw a box around some texts. When I compile it without wrapping it up in the figure command I have no problem. However, when I use it like this: ...
4
votes
2answers
2k views

A better way to achieve sans-serif typeface in figure and table environments

For some of my style files, I would like to have a sans-serif typeface within my figures. I have code which seems to be working, \makeatletter \renewenvironment{figure}[1][\fps@figure]{ ...
4
votes
3answers
957 views

Floating a chess diagram on the next column

My second chess diagram does not fit on the first column, so LaTeX increased paragraph spacing on the first column. This does ensure that the second diagram appears exactly on top of the second ...
9
votes
3answers
2k views

Tables do not align side by side

. . \usepackage{tabularx} \usepackage{multicol} \begin{table}[ht] \begin{minipage}[b]{0.5\linewidth}%\centering \begin{tabular}{|c|c|c|c|} \hline & One & Twp & Three \\ ...
5
votes
4answers
8k views

Table caption Width

We have table caption background image. We put this as image. But we need the table caption and images exactly same width as table body.
5
votes
4answers
3k views

How to center the whole tabular, center the header line cells, and have some space after it?

I have a few questions about tables that are probably pretty basic. Here is the code for my table. \begin{table} \begin{tabular}{| r | l | l |} \hline \textbf{Species} & ...
11
votes
2answers
5k views

\footnotetext on different page from \footnotemark

I was forced to use \footnotetext and \footnotemark on because I needed a footnote in a couple of captions. Of the three times this is done in the article: one works fine, the second appears on the ...
11
votes
1answer
2k views

Do I need \leavevmode for centering figures?

I have an image I'd like horizontally centered on the page. Currently, I'm using the following code (which does work) under pdflatex: \usepackage{float} ... \begin{figure}[H] \begin{center} ...
6
votes
2answers
7k views

Change font size in figure environment

I'm writing a thesis-like document and I have sketches/figures made in TikZ and plots/graph made in gnuplot with the epslatex terminal. In the gnuplot manual it says if the font is not specified it ...
4
votes
1answer
1k views

Preserve Figure order

Is there a way to ensure that Figure X is always before Figure (X+1)? They are referenced in the text in the correct order but it seems that Latex rearranges their appearance within the document.
4
votes
1answer
403 views

Trouble using \formatdate inside \caption

I am having trouble formatting a date inside a caption using the datetime package. I'm told "Incomplete \iffalse; all text was ignored after line 6. \documentclass{article} \usepackage{datetime} ...
3
votes
2answers
1k views

Extra large gap in article where figure code is, even though figure is at top of page

I writing an article using the amsart document class and whenever I use \begin{figure}...\end{figure} to put a figure into the article, it places the figure at the top of the page (which is fine), but ...
4
votes
1answer
11k views

LaTeX Warning About Height, \hbox, and \vbox, and ht

I am compiling a LaTeX document on Ubuntu and I am getting those warnings, errors, or whatever. Any idea about them? Package hyperref Warning: Height of page (\paperheight) is invalid (0.0pt), ...
49
votes
2answers
63k views

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

Suppress Numbering of Subfigures

Is there a way to supress the numberings of subfigures within subfigures? Currently, I have something like the following: \begin{figure} \subfigure{ \subfigure{...} \subfigure{...} ...
3
votes
1answer
854 views

Missing “Figure” title for captions of side-by-side graphics

Background Trying to reference the label of figures that are side-by-side. Problem Referencing figures by their label works, except when the figure is in a mini-page. That's when the word "Figure" ...
7
votes
1answer
605 views

Footnote being pushed to after a float page.

I have somewhat bizarre footnote placement in a document that I'm typing. Unfortunately, I'm also having trouble reducing it to a minimum not-working example as this behaviour seems to depend on many ...
15
votes
1answer
13k views

Table captions are always placed below

I have a problem with table captions in LaTeX. They appear always below the tables instead of above as required by my editor. I've read lots of documentation and everybody says that if you place the ...
23
votes
5answers
5k views

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 ...
15
votes
2answers
897 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 ...
7
votes
3answers
8k 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 ...
5
votes
5answers
3k views

Center figure which spans over whole page

I would like to get this to center with 5pt margins on left, right, and top. So the picture will cover nearly the whole page with room at the bottom for captions. \documentclass{article} ...
18
votes
2answers
8k views

Floating an algorithm?

I'm typesetting an algorithm using the algorithmx package as follows: \begin{algorithm} \caption{\textsc{Whatever}} \begin{algorithmic}[1] ... \end{algorithm} However, I would like it to ...
7
votes
2answers
4k views

How to put two tables in a table* element so that the tables appear side by side in a two column layout scientific paper?

This is related to How to make a figure span on two columns in a scientific paper? In a table* element, I want to put two \tabular{} elements, and get them appear side by side. I will then need to ...
36
votes
4answers
54k views

Reduce space between enumerated items

Background A book with lots of images. All of the images are set to "here definitely" (as they must come after the text that introduces them). Problem The list types (enumerated and bullet) have ...
5
votes
1answer
2k views

Table, Figure, and Listing prefixes

Background Using LyX and KOMA Script to author a technical manual. Problem The documents are strewn with the following references: \ref{fig:Example-Database-Type} When converted to PDF, this ...
11
votes
3answers
7k views

How can I center all tables in a document?

Background Would like to center all tables within floats, without having to add \centering to each table. Ideas Tried the following: \let\originaltabular\tabular ...
5
votes
1answer
601 views

Newenvironment and floating figures

I want to create an environment for a list of items, that should look like this for each item: Name Image ....... Image .............. .............. with this environment ...
18
votes
4answers
738 views

How exactly does \def\p@figure{Figure~} work?

I took this line from my thesis style and added it into my document (preceded by \makeatletter) and what it does that whenever I used \ref{figureid} instead of putting just the figure number, it puts ...
66
votes
4answers
59k views

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 ...
10
votes
1answer
739 views

How to number floats in sequence with theorems?

I like having all my theorems, examples, defintions etc. numbered in a single sequence. Is it possible to have LaTeX number my floating figures in sequence with them as well? I.e.: Theorem 1.1 A ...
6
votes
2answers
3k views

Number Algorithm floats with dependency (subalgorithms environment)

What I have: 3 algorithms, like so: \begin{algorithm} \caption{Caption One} ... \label{alg:one} \end{algorithm} \begin{algorithm} \caption{Caption Two} ... \label{alg:two} \end{algorithm} ...
8
votes
1answer
7k views

subfig caption spacing

How do I reduce the vertical space between a caption of a subfigure and the image of that subfigure? I tried: \subfigure[\vspace{-0.2in} caption words] doesn't seem to do anything.
18
votes
1answer
20k 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 ...
6
votes
2answers
580 views

Which package for In-line and float algorithms?

I am using LyX to describe algorithms. A common scenario is that I have a snippet of pseudo code (in a float, for example) and a block of text which makes references to keywords in that pseudo code. ...
25
votes
5answers
11k views

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 ...
11
votes
2answers
3k 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} ...
2
votes
1answer
489 views

How can I stop LaTeX from overriding instructions on spacing?

I'm using LaTeX to typeset my thesis, using a class that some students at my school wrote to typeset according to the graduate school formatting requirements. The class uses the setspace package to ...
14
votes
2answers
4k views

Absolute positioning of wrapfig

In Microsoft Word, it is common to create a floating text box, separate from the normal body text, that can be placed anywhere on the page. The body text will then wrap around this text box so ...
6
votes
2answers
1k views

How to make an appendix with only tables without “too many unprocessed floats” errors?

I'm often writing reports containing over 50 tables and over 200 figures that have to be included in appendices. The problem is obvious: if you just make an appendix \chapter{Tables} \begin{table} ...
3
votes
2answers
496 views

How do I make custom float environments use the same numbering for captions.

I use a custom float environment that is basically used as a table environment that provides extra formatting. I would like this environment to use the same numbering as the regular table floats. Is ...
24
votes
3answers
28k views

How to rotate landscape table page in PDF?

Currently I am using \usepackage{rotating} \begin{sidewaystable} \begin{tabular}...\end{tabular} \end{sidewaystable} to typeset landscape tables, which works great. But I want to rotate that page ...
8
votes
2answers
322 views

How to make a wrapper for the figure and table environments.

I am familiar with the newenvironment command, but I was wondering, how do I carry on the parameters that are used between [ ], i.e [bht!]? I want to make a newfig and a newtab environment that will ...
10
votes
2answers
2k views

How to put table and PNG next to each other in the same figure?

How can I put a table and a PNG (using \includegraphics) next to each other in the same figure, in the following way? +----+ +-----+ |png | |table| |png | |table| |png | ...