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

table causing misalignment in two column layout

I'm fairly new to LaTeX and I've run into a problem I'm not even sure how to Google. I'm using the two column document class IEEEtran for a scientific paper. However the text in the right hand column ...
0
votes
2answers
964 views

How to control float element to achieve compact output?

You may say the second question is duplicated. There are so many discussions about how to control the position of float. But they don't meet my needs. I want to reduce the blank area whilst float ...
11
votes
3answers
3k views

Nature style files and figures

I downloaded a Nature style file from here but I don't see any images when I build my figures. Do you know if this is intentional or if I've done something wrong? If you've drafted a LaTeX paper for ...
5
votes
2answers
6k views

A style prevents me from setting \belowcaptionskip, how do I change that?

I am writing a paper using the llncs style (Springer lecture notes for computer science). Using the default formatting, the distance between and the caption and the caption and the table is very big, ...
39
votes
1answer
101k views

Displaying a wide figure in a two-column document [duplicate]

Possible Duplicate: How to make a figure span on two columns in a scientific paper? It's my first time working with a two-column document (declared as an argument to \documentclass) and I ...
7
votes
2answers
794 views

How can you change the font for the contents of all tables in a document

Is there a simple way to set the default font for all tables in a document?
13
votes
3answers
5k views

How to place a footnote inside a float environment

How can one declare a footnote within a float environment, such that it appears on the same page with the float (regularly on the page, not inside the float)? Is there any trick or additional package ...
12
votes
1answer
14k views

Algorithm over 2 pages

I am writing a few rather large pseudocode functions using algorithm and algorithmic, i.e. my code looks something like: \begin{algorithm} \caption{Coolest Algorithm ever} ...
5
votes
3answers
290 views

Text that doesn't affect the placement of other text

I would like to be able to put blocks of text in a document that don't affect the layout of the main part of it. (Specifically, I'm writing the solutions to a previously written exam; I'd like to be ...
4
votes
2answers
492 views

Convert a picture or figure to EPS or PDF file

In my document I'm embedding figures using the following code: \begin{figure}[!t] \centering \def\svgwidth{1.2\columnwidth} \resizebox{\columnwidth}{!}{ \endlinechar=255\relax ...
12
votes
1answer
551 views

\ref, make figure/table reference automatically toggle between “above” or “below”

Is it possible to automatically include a reference to the position of a labeled object (Table, Figure) in text? By this I mean the following: Say I have labeled a figure in chapter 1: ...
2
votes
1answer
2k views

Float positioned in the middle of an otherwise empty page [duplicate]

Possible Duplicate: Set table position to top My document (book) has text and floats. There is not enough text, so that all floats can be placed before the text finishes. Then pdfLaTeX puts ...
0
votes
1answer
1k views

How can I make a graphic appear underneath the \subsection it is inserted under? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned I have a .tex document which generates a several paged .pdf document. I have inserted several images of charts ...
4
votes
1answer
370 views

Forcing figures position in (last page) column

I'm writing a two columns document and I have two figures on the last page stacked in one column. The first one at the top and the second one almost at the bottom. How can I force the second one to be ...
19
votes
3answers
21k views

How to limit the figure caption width?

Figure captions seem to wrap at the page width. How could I make them wrap at the figure width instead? Currently, they can easily be mistaken for normal text. \begin{figure}[!htb] \begin{center ...
10
votes
2answers
13k views

Forcing bibliography to the end [duplicate]

Possible Duplicate: How do I ensure that figures appear in the section they're associated with? I'm using the thebibliography environment, in a paper that has three floating figures. ...
1
vote
0answers
205 views

Avoid splitting of itemize lists by floats? [duplicate]

Possible Duplicate: How to protect text from being split by a float? I have a list constructed using itemize which is split by a figure. Is it possible to prevent the figure from splitting ...
4
votes
3answers
9k views

Figure and table side-by-side in subfloats

A very similar question has been asked before: Table and Figure side-by-side with independent captions I'm trying to accomplish this, but while using the subfig package. The image below depicts ...
3
votes
0answers
147 views

Text-wrapping around image at top of page [duplicate]

Possible Duplicate: Absolute positioning of wrapfig I want to insert an image in a LaTeX document so that it is always positioned at the top of the page and the text flows around it. I'm ...
9
votes
2answers
6k views

Vertical centering of figure in landscape environment

I am using the pdflscape package to insert landscape pages in my document. On one of these I would like to have a figure that is vertically centered on the page, but I can't find how to do it. MWE: ...
18
votes
2answers
4k views

How to place a float at the top of a floats-only page?

I just got a short algorithm on my page, and it keeps getting aligned at the center of the page. But I want to have it aligned at the top, what do I have to do?
5
votes
2answers
5k views

How to enforce the position of table* (wide table)

I'm writing a paper using SIGPLAN conference 2 columns format. I maintain separate .tex files per each chapters: %% main.tex \documentclass[preprint, 10pt]{sigplanconf} \usepackage{ ... } ... ...
9
votes
2answers
2k views

Framed text with a float in it

I'd like to frame the text between \startfoo and \stopfoo, but there is a float in it. \documentclass{article} \begin{document} \startfoo \begin{figure}[h] some float with a \caption{...} ...
15
votes
2answers
23k views

How to suppress caption numbering in a table?

How can the auto-numbering on table captions be suppressed? For example, I have a table: \section{Data} \begin{table}[h] \setlength{\arrayrulewidth}{1.5px} \centering \begin{tabular}{lcccc} ...
3
votes
2answers
19k views

Table caption should be left aligned

How to make table caption left-aligned. I tried \usepackage[singlelinecheck=off]{caption} but it did not work out. In other words it gives an error: \DeclareFloatFont ...
110
votes
2answers
52k views

Continuous v. per-chapter/section numbering of figures, tables, and other document elements

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)? And vice versa: Some ...
7
votes
1answer
3k views

Figure breaks listing, how to avoid that?

I have a listing in my document and some lines before it I'm inserting a figure, doing the following: \begin{figure}[htbp] \begin{center} \includegraphics[scale=0.7]{filename.png} \caption{Caption} ...
8
votes
2answers
6k views

Automatic vertical alignment of a single float on a dedicated page

In my large latex document, I have some figures which take a considerable height of the page (80-95%). Latex puts each of these figures alone on a page, aligned on top. I would like to have each ...
13
votes
1answer
3k views

Continuous numbering of figures and tables

I want the figures and tables to be numbered 1, 2, 3, ... until the end of the document instead of 1.1, 1.2, ... in chapter I, 2.1, 2.2, ... in chapter II and so on. I know how to convert the ...
6
votes
1answer
561 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 ...
23
votes
2answers
491 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 ...
70
votes
2answers
107k views

Changing the font size in a table

What's the recommend way of changing the font size in a particular table? Is there a better way than enclosing all values with, for example, the \tiny function.
25
votes
1answer
1k views

href to an image label - how to jump to the image instead of the caption below the image?

I'm using the following command to embed images in my LaTeX document (which is then rendered as PDF) \newcommand{\img}[4]{ \begin{figure}[!hbt] \centering \vspace{1ex} ...
5
votes
3answers
496 views

Re-use code like figures and paragraphs in other documents

I was wondering if there is a way in which I can reuse the code, for example one figure, that is written in one file into another file. I want to use something similar to xr package that allows you ...
3
votes
1answer
703 views

How to make “draft margin notes” for floats?

Page 394 of the memoir manual provides a snippet by Bastian Veelo for making margin comments out over the part of the stock paper that would be cut away. This very handy for making comments only ...
44
votes
1answer
40k views

How to change the spacing between figures/tables and text?

I was wondering if there is any way to lessen the spaces between figures and text. In my paper I have a lot of figures (graphics) and it is inconvenient for me to have default (large) spaces between ...
7
votes
2answers
326 views

Create plain CSV list of pages with/without figures

I'm wondering if there's an easy way to have LaTeX output two lists: of pages containing and of pages not containing figures and/or other color objects. I'd like to print color pages on a color ...
3
votes
1answer
380 views

LaTeX figure rendering incorrectly [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned The following code: \clearpage \section{Section 1.2} This is a paragraph. The details page should look like ...
1
vote
1answer
518 views

newlfm - addrfrom and addrto on the same vertical height

Is there a way to put addrfrom and addrto on the same vertical height when one of them is left-justified and another is aligned to the right? This is basically the layout I'm trying to achieve: ...
16
votes
3answers
27k views

Border or frame around figure

I'd like to place a border / frame around my figure. The figure is a bunch of equations: \begin{figure}[ht] \[ eqn 1 \] \[ eqn 2 \] \[ eqn 3 \] \caption{\label{myfig} My caption.} ...
13
votes
3answers
23k views

Control spacing around table caption

I want to put several tables in the same table float like this: \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document} \begin{table} \caption{Internal ...
12
votes
1answer
3k views

How to protect text from being split by a float?

Given following situation: \begin{figure}[ht!] ... \end{figure} \begin{equation} ... \end{equation} Some one-line text. \begin{eqnarray} ... ... \end{eqnarray} how can I make ...
2
votes
1answer
5k views

Multiple captions for a single figure

How do I get subfig-like captions for a single figure? I've got images that have multiple panels each, and I'd like to make a caption for all the sub-panels, as well as be able to reference each ...
3
votes
2answers
429 views

Adding a frame and background color to floats in ConTeXt

I am trying to decorate the floats in my thesis as follows: each float shall have a top/bottom frame in a custom color, the caption and content of each float are supposed to have the same background ...
0
votes
1answer
112 views

What are graphics being displayed at the end of the section? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned I am including graphics into my latex documents as below: \begin{figure}[abc] \begin{center} ...
6
votes
2answers
1k views

picture in enumerate item with floating text

I have a list with some text items and I want to add a picture to one of the items, so that the text of that item is floating to the left of the picture. If I use wrapfigure my picture gets placed at ...
14
votes
2answers
6k views

Letter class alternatives with support for figures, tables, and labels

I'm increasingly fed up with the arbitrary restrictions that the standard LaTeX letter class has. Today I discovered that the table environment is not defined in the standard letter class, which means ...
2
votes
2answers
1k views

Figures with borders problem

I am writing my thesis in TexniCenter and I have the following problem. I want all my figures to have a border. So I use : \usepackage{float} \floatstyle{boxed} \restylefloat{figure} in the ...