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

5
votes
1answer
517 views

Keep example number together with floating table

I am using the package linguex (for 'linguistic examples') to number the examples in my text, using its command \ex. I am creating a table that I am numbering with this command \ex.: \ex. ...
3
votes
1answer
586 views

Set width of LaTeX float # in List of X

Using the LaTeX float package, I've created a new float: \newfloat{schema}{htb}{los}[chapter] \floatname{schema}{{Schema}} The list of schemas at the beginning of my document is created with the ...
13
votes
1answer
2k 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 ...
15
votes
3answers
13k views

How can I get rid of the LaTeX warning: Float too large for page?

In my document, I have figures that have a rather long caption. The code I use to include them looks like this: \begin{figure} \begin{center} \includegraphics[width=\textwidth]{../fig.pdf} ...
11
votes
1answer
10k views

How to justify subfig subfloats?

I have three subfloats and I want them to be aligned over the full \textwidth, no matter what the sizes are (smaller than a third of the page of course). I have the following setup: \begin{figure} % ...
1
vote
2answers
184 views

Weird behaviour from graphicx - inserting PDF files

So I created some graphs in Excel, saved them as PDFs and used the following code to import them to LaTeX: \newpage \begin{figure}[htbp] \centering \includegraphics[width=0.95\textwidth]{white1.pdf} ...
4
votes
1answer
825 views

Running figure numbering

I want to use running figure numbering so I used a trick form this website http://www.tex.ac.uk/cgi-bin/texfaq2html?label=running-nos. \documentclass[a4paper, 11pt]{scrbook} \usepackage{chngcntr} ...
12
votes
2answers
861 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
3answers
174 views

figure next to a barplot

Okay, I tried a lot of things and can't really find it anywhere. Is there a simple example code for how to put a picture next to a graph? I tried to play around with hspace and vspace as well as an ...
8
votes
2answers
2k views

Include floated figure in two column environment

I'm using a two column layout and I'm trying to get a figure to appear on the bottom of the page it's currently on. Floats don't work natively in a multicol environment. Right now I'm getting around ...
12
votes
3answers
2k views

19 simple tables giving “TeX capacity exceeded” / “Too many unprocessed floats”?

When I added a couple of rather unremarkable tables to my document, it stopped compiling (using pdflatex): "TeX capacity exceeded (main memory)" I searched the web a bit (well, actually, mostly ...
17
votes
3answers
5k 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
42
votes
3answers
126k 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 ...
6
votes
3answers
934 views

endfloat, float - use with newfloat types

Does anyone know how I can get the the endfloat package to work with new float types defined using \newfloat (float package), for example: \newfloat{map}{htbp}{lom} \floatname{map}{Map} ...
6
votes
3answers
244 views

How to conditionally control the width of a figure with minimal code duplication?

I am using \iftoggle to switch between a for-review (doublespaced, onecolumn) and photo-ready (singlespaced, twocolumn) layout. I want to change the width of figures to be optimal for both, depending ...
5
votes
2answers
258 views

How to gather (narrow) floats together horizontally?

I have a document with some narrow (less than half the \textwidth) images. Sometimes there's one such image on the page, and then the figure environment is what suffices. But sometimes there are two ...
1
vote
1answer
930 views

How to Override the Default Float Restrictions of Table and Figure

In brief, the [h!] option to override the default float restrictions for tables and figures does not appear to work. I am trying to insert a table that takes up a whole page. Due to its size, I have ...
5
votes
1answer
685 views

Protect text from being interrupted by figures or tables

I have read How to protect text from being split by a float? by it does not exactly cover what I want. I have a text that is interspersed with figures. I do not wish to copy all the figures to the ...
2
votes
2answers
399 views

Automatic width of floats

I need to automatically compute the width of tables and graphics; including the total width of a graphic that contains subfigures. I would also like the code to include a minimum width parameter to be ...
2
votes
1answer
1k views

Inserting text in the image between two columns

How do I insert an image from text in two columns so that the text go around the picture?
3
votes
1answer
655 views

Can I turn a sidewaystable into a figure?

I'm hoping I can get a quick answer to this question, and I don't have time to make a MWE right now. If I have made a sideways table and used it to layout some images nicely, but I would like the ...
3
votes
2answers
29k views

figure span to one column on double column page [duplicate]

Possible Duplicate: How to make a figure span on two columns in a scientific paper? I want my figures to span to whole page width while on double column page, I am using subfloat, how to ...
8
votes
2answers
4k views

Algorithm tag and page break

I'm starting my experiment with LaTeX, i'm writing an article and all that I want is to embed an algorithm inside normal text, this is my code: \documentclass{article} \usepackage{algorithmic} ...
0
votes
1answer
335 views

Why does LaTeX mix up the order of my algorithms and other output? [duplicate]

Possible Duplicate: How to avoid splitting tables between sections I did something like this: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{algorithm} ...
6
votes
1answer
9k views

Table always goes to bottom of document? [duplicate]

Possible Duplicate: How to fix table position I'm defining a table in my document like so... \begin{table} \caption{my table} \centering \begin{tabular}{c llll c c c c} \hline ...
5
votes
3answers
273 views

How to number equations and floating materials by page number

I am somewhat intrigued by question Something like \enumerate, but with custom numbers at each \item, which mentions a book where each question is numbered by its page number and the question number. ...
1
vote
3answers
210 views

labeling tables per chapter both in the body and in toc [duplicate]

Possible Duplicate: Continuous v. per-chapter/section numbering of figures, tables, and other document elements How can I label the tables per chapter in document class report rather than ...
3
votes
1answer
443 views

floatrow destroys common solution for parallel figures

I really like the floatrow package, but when its code is not required I expect that everything works as normal, however the correct code fails to compile once floatrow is loaded. What I am talking ...
25
votes
4answers
41k views

making a table fit on a page by moving it left

I have a table where the last columns fall off the page. Instead of making the text smaller I would like the table to not adhere to the margin of where it begins. I would like to move it to the left. ...
3
votes
1answer
3k views

Vertical alignment with floatrow

I am playing with floatrow, however the images are not aligned at the top and I do not know what I am doing wrong. \begin{figure}[H] \begin{floatrow} \floatbox{figure}[0.4\textwidth][\FBheight][t] ...
5
votes
3answers
3k views

How to create an unnumbered algorithm with a caption?

I want to do something like: \begin{algorithm*} \caption{My unnumbered algorithm} % etc. etc. \end{algorithm*} or \begin{algorithm} \nonumbercaption{My unnumbered algorithm} % etc. etc. ...
3
votes
1answer
582 views

Indentation and floats

I usually only allow paragraphs to be indented when there's a need for them to be: only if the previous "element" could be confused and thus "merged" with the paragraph in question. In practical ...
0
votes
1answer
234 views

Referring a series of figures [closed]

When I run the add file, I get: Chapter 1 chap 1.1 sec figures 1.1 - 1.1. Just a figure 1.1 Just b figure 1.1 Clearly this is wrong but does it happen? \documentclass{report} ...
20
votes
3answers
6k 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 ...
9
votes
2answers
41k views

Error: \caption outside float

When I add the following table (table1 shown below) I don't get any error, but when adding table2 (shown below) I get the error i)\caption outside float. \caption ii) Undefined control sequence ...
27
votes
3answers
5k 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 ...
0
votes
1answer
494 views

Figures on left pages, text on right ones with class book (cont.)

In addition to the very useful discussion Figures on left pages, text on right ones with class book, numbering only on right pages, I would like to handle 2 other features: the suppression of blank ...
11
votes
1answer
5k views

Vertical spacing in floats

I am using a float inside the text. As I found out, using \intextsep I could set space above and below the float and the texts. But when I am using \setlength{\intextsep}{5mm}, the space below the ...
42
votes
4answers
112k views

Force LaTeX image to appear in the section in which it's declared [duplicate]

Possible Duplicates: How do I ensure that figures appear in the section they're associated with? Keeping tables/figures close to where they are mentioned How can I force an image in a ...
14
votes
1answer
725 views

What is a BANG float?

This question follows up on What is the exact purpose of \ftype@<TYPE>?. The LaTeX kernel source refers to a BANG float in the ltoutput.dtx, but there is no explanation for it. Anybody knows ...
6
votes
2answers
1k views

Make all figures and tables framed by default? [duplicate]

Possible Duplicate: Rounded corner colored box around figure I'm interested in having all of my \begin{figure} and \begin{table} environments automatically get framed. Is there any way to ...
17
votes
3answers
593 views

What is the exact purpose of \ftype@<TYPE>?

I currently working on some float related code an saw that the standard float environments figure and table define (beside others) the macros \def\ftype@figure{1} and \def\ftype@table{2}. The LaTeX ...
6
votes
2answers
1k views

Different float types side-by-side

I'm familiar with using minipages inside a float to effectively place two floats side-by-side, but is there a way to do this with different float types? Eg a Figure and a Scheme (chemscheme)?
10
votes
2answers
3k views

Equivalent of CSS “float:left;” for images

What I am try here is have the image on the left side and it should be surrounded by text on the right and bottom side. For example how can below image_3.png float to left? \usepackage{lipsum} ...
6
votes
1answer
2k views

How do I make a figure that spans a spread of two pages? [duplicate]

Possible Duplicate: How to include a picture over two pages, left part on left side, right on right (for books)? I have a huge TikZ graphic inside a figure environment. I would like it to ...
3
votes
1answer
643 views

Avoid consecutive figures in two columns layout

Is there a way to tell LaTex to avoid putting figures consecutively in a single column. Instead, I want to distribute the figures in the top of the columns and/or other pages in the same way (only ...
14
votes
1answer
1k views

Unsorted citations and floats

In attempting to answer this question Citations in order of appearance it's clear that unsorted citation schemes (ones in which the citations are numbered simply by order of appearance) can be easily ...
4
votes
2answers
1k views

How to make table extend onto second column

I have a two column document and a long table. I would like the table to start in one column and then extend into the next column. I know about the table* environment; I don't want a table that is ...
6
votes
1answer
2k views

Rounded corner colored box around figure

I'm trying to get Rounded corner grey-colored box around figures. One solution would be to use \usepackage{float} \floatstyle{boxed} \restylefloat{figure} but this results in black box around a ...
4
votes
2answers
110 views

A TeX example that fails to keep the sequence of floats

I wish to have a TeX example which includes text, figures and tables, where the sequence of elements in the resulting DVI is NOT as it is in the TeX file. I am looking for this so to see how well ...