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

6
votes
1answer
755 views

How to insert an image into a two-column document such that the text flows from TL, BL, TR and finally BR?

I don't like the following: I want the following: Code: \documentclass[demo,12pt,a4paper]{article} \usepackage[margin=2cm]{geometry} \usepackage{multicol,lipsum,graphicx} \title{Foo Bar Baz} ...
22
votes
2answers
4k 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} ...
5
votes
1answer
2k views

Why does a figure capture a whole page?

I have a figure in a whole page, even though I do not intend it to capture a whole page. There is a lot of white space around it, and I definitely think there could be some text surrounding it. Is ...
29
votes
2answers
21k views

multicol and figures

I have a two column document (using multicol) and want to insert figures so that they do NOT span columns. I have searched around and the only thing I can find says that only figure* is supported ...
5
votes
3answers
2k views

Continuous table numbering

I am listing a bunch of pages in an Appendix. If I do the appendix as \appendixpage, after a chapter 1 (for testing), I get all tables numbered 1.1, 1.2, ... 1.436. (Yes, I have 436 tables, and it's ...
2
votes
2answers
11k views

Reference to a table before it appears

I want to reference a table before it appears.The TeX code is pasted below \documentclass{article} \begin{document} The results given in Table~\ref{tab:a} show the performance of the class. ...
6
votes
2answers
1k views

How can I inhibit LaTeX to float a table across a section boundary? [duplicate]

Possible Duplicates: How to avoid splitting tables between sections. How do I ensure that figures appear in the section they're associated with? I have a couple of tables that ...
39
votes
1answer
14k views

Captions for figures in \listoffigures

When I use \listoftables and \listoffigures I get in the list long captions that appear next to the tables/figures. I would like to use short captions for this list which summarize these captions. Is ...
5
votes
1answer
3k views

Column width in multicol and using float environments

I'm trying to write my first report ever using LaTeX. I want it to have two columns so I'm using the multicol package. The columns are too narrow though, I want it to be wide like, say, elsevier style ...
13
votes
2answers
3k views

How can I place a double-wide figure float (ie, figure*) on the bottom on the first page of a two-column document

In what I would like to be a two-page, two-column document with two wide (figure*) figures, I need one to be on the bottom of the first page, and one to be on the top or bottom of the second. ...
39
votes
5answers
34k views

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

Multiple figures inside a subsection

I have an x amount of figures that I want to display inside a subsection. The subsection doesn't contain anything else. Currently the images are automagically put on pages from other sections. What is ...
2
votes
1answer
713 views

Subbottom giving weird errors when I use captions for my subfigures

I have a figure with the following syntax: \begin{figure}[h!] \centering \subbottom[$H_n = A_n / e$]{ \begin{tikzpicture}[every node/.style=defnode] ... \end{tikzpicture} } \subbottom[$S_n = A_n - ...
2
votes
1answer
474 views

RTL captions with newfloat?

Is it that the float package begins to show its age? I cannot get it to work right with XeLaTeX. Here is an example: \documentclass{article} % compile with xelatex \usepackage{float} ...
3
votes
3answers
819 views

Display certain objects in a document side by side

What is the standard way in latex to display certain objects (e.g. pictures, tables, etc.) side by side, instead of one below the other? I thought about using the tabular environment for this, but I'm ...
3
votes
3answers
3k views

Figure next to list (caption problems)

I am trying to put a figure next to a list, where the list is talking about the figure. This is fine, I can do that with the minipage environment. However, my problem is that when I try to put a ...
12
votes
1answer
6k views

Using the itemize environment inside a caption

The following code does not compile. However, if I remove the itemize environment it does. I googled for this problem, and found suggestions that using the caption package would solve the problem, ...
11
votes
1answer
908 views

Cite in the caption of a graphic but not in \listoffigures?

Sometimes I'd like to cite the reference in the caption of a graphic. But I want to avoid that this citation is displayed in the \listoffigures. How can I achieve that? Fore example with this code: ...
19
votes
4answers
6k views

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: ...
10
votes
2answers
695 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 ...
89
votes
11answers
69k views

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 ...
6
votes
2answers
839 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 ...
3
votes
2answers
728 views

aligning bottom of two tables

I need to align the bottom of these two tables, and I need to add a brace to each side of the second table.. how can I do that? \begin{figure}[] \centering \subfloat[]{ \begin{tabular}{cc} ...
6
votes
1answer
2k views

full-width tables in multicolumnar text

If I create a table in twocolumn, the text on the second column overlaps the right half of the table. If I use a table*, whether with twocolumn or multicols, it instead is moved to the next page. ...
5
votes
3answers
19k views

How to left-align a table in LaTeX

There are many Q&A's about left-aligning either table content-cells, or table captions. I'd like to left-align tables (or any/all floats for that matter). I would like to be able to tell that ...
1
vote
1answer
661 views

Subfig caption doesn't start at start of line

I have a situation where the subfigure caption doesn't start at the start of the line. \captionsetup[table]{width=\textwidth} is added to try to have the caption take up the whole line rather than ...
5
votes
1answer
2k views

floatrow: Changing the formatting of table footnotes

The floatrow package, which is useful for customizing the layout of floats, also allows to add footnotes as well as additional explanations (besides the caption) to tables. (The main commands are ...
1
vote
1answer
597 views

Unequivocally force first reference to same page as the referred item?

Background Writing a manual using LyX. All tables, figures, and source listings are always referenced in the paragraph (or enumerated step) that immediately precedes them. The preamble to the manual ...
23
votes
2answers
82k views

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

How to place subfigure caption on the side?

Is there some way to tell subfig package to place subfigure captions to the left or to the right of subfigures? There is sidecap package which does it for the main captions, but it does not affect ...
5
votes
2answers
1k views

Using one counter for different floats?

I'm using two different floats, and I'd like to use the same counter for both. The standard LaTeX format for a new float is: \newfloat{type}{placement}{ext}[outer counter] I tried using this by ...
8
votes
1answer
810 views

Replicate Figure w/out Inserting New Entry in List of Figures

I would like to replicate a figure in Chapter 3 within Chapter 6 such that the figure is displayed and optionally, it has the caption and Figure number of the figure in Chapter 3. If that is not ...
17
votes
3answers
9k 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 ...
19
votes
3answers
2k views

Table and multi-page

I'm writing some sort of book and i've got a very large table. I was wondering if there was a way to span a table not in the length but in the width. In the end, i would like to be able to divide ...
16
votes
3answers
8k views

How to include verbatim in a figure caption?

I would like to include verbatim in a caption of a figure. I only want part of it to be verbatim, not the entire caption. The simple approach does not work because verbatim is not allowed in arguments ...
5
votes
2answers
2k views

Creating a shaded box with an outline

EDIT I'm attempting to create a box with a different background color. However, I've tried this and the box looks unpolished. So I would like to add a line that seperates the two background colors. ...
7
votes
2answers
1k 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 ...
46
votes
2answers
72k 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 ...
162
votes
2answers
300k 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
5k 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
617 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 ...
2
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
855 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 \\ ...
4
votes
4answers
7k 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} & ...
8
votes
2answers
4k 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 ...