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

10
votes
1answer
672 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
2k 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} ...
6
votes
1answer
5k 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.
15
votes
1answer
14k 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 ...
5
votes
2answers
488 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. ...
22
votes
4answers
7k 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 ...
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} ...
2
votes
1answer
468 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
3k 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
482 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 ...
18
votes
3answers
18k 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
308 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
1k 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 | ...
14
votes
1answer
8k views

Put a table* at the bottom of a page?

In a two column document in LaTeX, is there any way to put a table* (a table spanning both columns) at the bottom of the page? The obvious doesn't work: \begin{table*}[b] % b!, hb, hb!, etc. ...
8
votes
2answers
517 views

Place all floats last without changing numbering

I'd like to place some of my floats (specifically code listings) in my documents in a section at the end, without disturbing the numbering. Currently, I have them numbered within sections, so in ...
8
votes
4answers
975 views

Override tendency to avoid filling entire page with floats

I'm working on a two column document, and on one of the pages, I want to fill an entire column with three different floats. But when I use, for instance, h!, ht!, b, b!, t!, etc., on all three of ...
69
votes
5answers
27k views

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

Why is my table displayed at the top of the page?

I figure this must be a common issue but I could not find a solution. Here is my code: \documentclass{article} \begin{document} Text: This text should be above the table, but it is not. ...
35
votes
2answers
20k views

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?
52
votes
1answer
62k views

Why is \newpage ignored sometimes ?

I have the following towards the end of an article. The bibliography is short (4 entries). What's happening is that on the very last page of document I get the chart and immediately afterwards the ...
7
votes
1answer
5k views

Legend in caption

It may be a bit difficult sometimes to deal with the legend of a figure in a LaTeX document. Depending on the context, you may have to place the legend over the existing curves because of a lack of ...
11
votes
3answers
606 views

Why can't I use \newfloat more than once?

I've found the float package, which lets me specify \newfloat{program}{...} to get other named floats than Table and Figure. However, if I try to use this more than once, I get a cryptic error: ! You ...
4
votes
3answers
2k views

Forcing specific numbers for tables

I'm working on a paper which will include several tables from a book. I would like to keep the same table numbers as in the book, it makes it easier for people reading the paper in this case. They'll ...
160
votes
2answers
38k views

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}
12
votes
4answers
2k views

Is there a general command to disable indentation of paragraphs after figures and tables?

I am typesetting a manual, that uses normal indentation for paragraphs. The pages have a lot of figures and tables and I would like to have the paragraph after tables and figures to have no ...
20
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 ...
18
votes
3answers
1k views

Photograph credits in LaTeX

Is there any convenient package/way to link photograph credits with a figure, and then generate a kind of \listoffigures? Have you any other solution than generating the .lof temporary file, and ...
4
votes
1answer
1k views

Subfloat labels don't display properly

The screenshot has the bottom part of a figure with two subfigures. As you can see, the labels have a very narrow width. I don't understand why. \begin{figure}[htp] \centering ...
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 ...
151
votes
9answers
101k views

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

How to reference the page of a figure?

Is it possible to make a reference to the page where a figure is rendered? I would like to write something like see figure~\ref{figure-xyz} on page NN where NN will automatically be maintained by ...
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?
5
votes
1answer
830 views

In amsart, how I can get caption spacing in tables to be like that in figures?

In the document class amsart, I get different vertical spacing around the caption in tables and figures. For instance, compare the difference: \documentclass{amsart} \begin{document} ...
16
votes
3answers
1k views

Too many unprocessed floats with marginpar

I'm updating my CV, which is written by modifying this template. I have always been very happy with the result, but now I'm getting a Too many unprocessed floats error. For those who do not want to ...
11
votes
3answers
3k views

Line up captions on side by side figures

I want to place two (or more) figures with side by side. The figures are independent, so need separate captions, with no overall caption for the two. I know how to do this with minipages within a ...
31
votes
1answer
29k 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 ...
6
votes
2answers
1k views

How can I have images that are side-by-side and have numbers attached to each one?

For example: *Image 1* *Image 2* *Image 3* (i) (ii) (iii) Figure n. Multiple images. (i) image at time n. (ii) Image at time n+1. (iii) Image at time n+2
7
votes
2answers
3k views

subfigures with memoir

I switched to memoir and stopped including subfig and now all my subfigures interpret the caption as actual text, i.e., "[caption...]" shows up in the document with the square brackets. How do I have ...
2
votes
2answers
704 views

How to get rotating and/or rotfloat to work

Using LyX 1.6.5/MacTex-2009 my floating sideways figures only occupy half the page and the other half of the figure disappears off the left margin. I tried the rotfloat and rotating packages and they ...
9
votes
1answer
1k views

Full-page figure without extraneous whitespace in text?

My question is along the lines of How do I ensure that figures appear in the section they're associated with?, but slightly different. I have a figure that occupies a full page. By default, LaTeX ...
12
votes
2answers
371 views

Why do floats change the \mark?

The presence of floats appears to disrupt the setting of \marks, so that \topmark ends up with the wrong value. For example, consider this: \documentclass{article} \textheight 50mm \textwidth 50mm ...
87
votes
3answers
20k views

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

Table reference

I wrote a long table with a label in a tex file and \input it into my main tex file. The reference in the main tex file to the table, however, does not show the numbering of the table but the one of ...
4
votes
1answer
269 views

Combining a userdefined float inside a shadowbox

Is it possible to combine the "program" part in a shadowbox? \documentclass{article} \usepackage{float} \floatstyle{ruled} \newfloat{program}{thp}{lop} \floatname{program}{Program} ...
46
votes
3answers
19k views

What is the correct way to center a \tikzpicture? [duplicate]

Possible Duplicate: Should I use center or centering for figures and tables? What is the correct way to cause a \tikzpicture to be centered? By default it appears to be aligned with the ...
61
votes
7answers
47k 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 ...