{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
395 views

How to use figure inside a exercise environment?

Trying to use figure inside an Exercise environment (exercise.sty) gives me "LaTeX Error: Not in outer par mode." Example: \documentclass{article} \usepackage[]{exercise} \begin{document} ...
5
votes
1answer
1k 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 ...
4
votes
2answers
2k views

Inconsistent rotations with \sidewaysfigure

In my document I'm largely using \sidewaysfigure. However, this results pictures with inconsistent placement and direction of included pictures and captions. By inconsistent I mean that figures and ...
4
votes
1answer
201 views

Dedicated pages for figures featuring automatic fit-to-page scaling and automatic portrait/landscape selection

There are some books where you have a couple of pages that contain only a picture with no footer, header or anything like that. I wanted to have something similar although I'd like to keep a uniform ...
4
votes
1answer
2k views

Numbers of figure references

I use enumerating of figures within the section \renewcommand{\thefigure}{\arabic{section}.\arabic{figure}} however, when I use a reference to subfigure, instead of 1.1 (a) I get 1(a). How should I ...
4
votes
1answer
253 views

Avoid line break after macro

The following example produces a line break after the second text. \define[2]\smallfigure{\placefigure[margin][#1]{#2}{!}}% \starttext text text\smallfigure{fig1}{A}text text \stoptext The ...
4
votes
2answers
4k views

sidewaystable vs landscape environment (pdflscape-package) for landscape tables spanning double pages

As explained in several other posts, I'm currently trying to create wide tables. The document is in portrait format A4, but the tables shall be typeset in landscape format. As the tables have more ...
4
votes
1answer
892 views

Numbering figures and tables by their section

I am having trouble formatting my list of figures and list of tables. Currently, my tex document is printing the list in the following manner: 1 Foreign Key Constraint Problem Due to Improper ...
4
votes
1answer
150 views

How to retain figures only with captions in their original positions

The publisher of our book has requested us to modify the source of the book so that only figures with their captions remain retaining their original positions in the document as if the rest of the ...
3
votes
3answers
1k views

How to wrap around a figure in a theorem-like environment?

I want to illustrate my examples, which are set in a theorem-like environment. Is it possible to wrap the text and equations around the figures? I have read about several packages but I can't get them ...
3
votes
1answer
4k views

Insert image in latex [duplicate]

Possible Duplicate: Force figure placement in text Hi! I'm trying to insert an image in latex with some text around: Here is our image: \begin{figure}[h!] \centering ...
2
votes
1answer
83 views

How to measure the vertical space that was typeset without placing it into an environment?

I would like to achieve automatic clearing of a {floatingfigure} at the beginning of a new \section for texts automatically created by Pandoc. For this to work, I am in need of a way to measure the ...
2
votes
2answers
119 views

Plenty of space on page but can't make figures bigger

I am trying to put two figures on one page in latex, without using minipage. But the second figure is moved to the next page at a certain size, even though there is plenty of white space left on the ...
0
votes
1answer
365 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 ...
10
votes
1answer
2k views

List of figures: source below image caption?

I'm relatively new to LaTeX and currently working on a paper. In my list of figures, I'd like to have a structure like this: Fig. 1: <Title of figure> . . . 1 ...
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 | ...
9
votes
2answers
777 views

Figure subnumbering 1a

I'm wondering how to give subnumberings like "2a" and "2b" for separate floats. I know both the subfigure and subcaption packages do the subnumbering but they demand the subfigures be in a single ...
9
votes
1answer
434 views

How to make all figures float on the outer margins of two-side document?

I want to make a double-sided problem booklet that contains several questions. Each question has a distinct number and may have zero or more figures. Each figure has a caption and floats on the outer ...
8
votes
1answer
328 views

How to place all floats (tables in particular) at a certain point in the document

I would like to place all of the tables in the document at the end but before the bibliography generated by biblatex and the notes printed by endnotes. In other words, I'd like to collect the tables ...
8
votes
1answer
335 views

How do I create a new command \listofcodes in latex?

In addition to tables and figures, I have a bunch of code pieces. Just like follows: \begin{figure} \lstinputlisting[ language=C++, breaklines=true, keywordstyle=\color{blue}, ...
8
votes
2answers
501 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 ...
7
votes
1answer
424 views

wrong positioning of figure with tabular in xelatex

I recently updated MikTex and it seems Xelatex is not able to place figures correctly anymore. Before updating all figures were shown correctly. I work with Texworks and Miktex 2.9 Here it is the ...
6
votes
1answer
565 views

Change caption of figure for references

I changed the caption of my figures running the following command (I'm using the babel package): \addto\captionsngerman{\renewcommand{\figurename}{Abb.}} If I use \autoref{$LABEL} to reference to ...
6
votes
1answer
915 views

Figure title in List of Figures

I've got a figure which has several annotations on-image. The figure caption explains these: \caption{Image of my item. (1) Part of the item. (2) Another notable part of the item. (3) Yet another ...
6
votes
1answer
3k views

\renewcommand\tablename{name} does not work

I am completely noobie in LaTeX. I need to change table name in all captions. But when I write \renewcommand\tablename{newname} at the beginning of document, it doesn't do anything. It's still "Table" ...
6
votes
2answers
998 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 ...
5
votes
1answer
2k views

Why will my table not come after a section with \FloatBarrier?

I have been trying this method to get a table to go after a section heading, but for some reason I am not able to get it to visualize that way. \section{blah} %\hlabel{sec:blah} mytexthere (which is ...
5
votes
1answer
184 views

TikZ's extended line penetrates the figure caption

Here is an example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}\centering \begin{tikzpicture}[extended line/.style={shorten >=-#1,shorten <=-#1}] \draw [very ...
5
votes
1answer
3k views

Subfloat with subcaption package: Missing number, treated as zero

I want to make a figure consisting of two subfigures. Having read the Wikipedia subentry on subfloats, I tried to follow it exactly, so I did not use the subfig or subfigure package, only the caption ...
5
votes
1answer
476 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 ...
4
votes
2answers
186 views

How to insert an image inside a paragraph?

I'd like to insert a small image inside a paragraph, aligning it with the text. The following snapshot depicts what I have in mind. Notice the image at the end of the last line.
4
votes
2answers
3k views

Changing the subfigure caption by removing brackets & font of the subcaption

Note that by using \usepackage[bf]{subfigure} I'm able to change the label of the subfigure to be boldface. However, the label appears with brackets, e.g., "(a)". How could I get a subfigure label ...
4
votes
2answers
1k views

Hypcap not working with custom figure environment

I'm trying to use caption with hypcap=true so that cross-reference hyperlinks will go to the figure instead of the figure caption. However, I'm using a multicol environment with a custom figure ...
4
votes
2answers
709 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 ...
4
votes
2answers
801 views

How to make equations, figures and theorems use the same numbering scheme

It was asked a while ago how to make equation use the same counter as a theorem for example and one solution was to make the theorem counter use the equation instead by using ...
4
votes
1answer
398 views

Want figure height to ignore side caption height

I use beside captions placed in a large margin area. Sometimes, the caption text is taller than the figure and this causes too much vertical space around the figure. I'd like the effective height of ...
3
votes
2answers
739 views

Why do eps images overlap the captions in subfigures?

I'm using the package subcaption within an scrreprt compiling with XeTeX/XeLaTeX. When using subfigures for 4 images in a grid view, the images are not centered and overlap the middle subcaptions. It ...
3
votes
1answer
1k views

Adding figure in framed or shaded environment

I am currently using the shaded environment from the framed package for large calculation digressions in my papers. \usepackage{framed} \newenvironment{digression}[1]{\begin{shaded} ...
3
votes
2answers
398 views

Tables as PDF images

Due to time constraints I'm considering cheating a little and importing some tables I've created in Excel into my latex document. I realise I can do this quite nicely as a 'figure' using something ...
3
votes
1answer
194 views

Figure refs stop working after I added a new counter

I was using the amspset document class for generating exam practice problems. I had wanted to add some referencing to the problems so I started a new counter like this (adapted from some Tex Exchange ...
3
votes
1answer
1k views

Undefined reference: autoref points to section instead of figure or table

Here is a minimum working example (an image 'test.png' needs to be in the working directory. I used this one.) % Created 2011-05-23 Mon 15:21 \documentclass[11pt]{article} \usepackage{graphicx} ...
3
votes
2answers
961 views

Make tikz picture floating

I'm inserting a tikz picture in my section headings with \titleformat (see this question) and I would like it to not affect the spaces in the headings. Right now, what I do is that I compensate the ...
3
votes
2answers
1k 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 ...
2
votes
1answer
154 views

Automatically set the figure width depending on whether the layout is one or two column

I am wondering how do you usually deal with figure width when you are writing a paper. (use \linewidth, \textwidth ? others?) Maybe we can just define a "switch" and use it with ifelse package? ...
2
votes
0answers
80 views

Is there an alternative for \usepackage[nobottomtitles*]{titlesec}?

Is there an alternative for \usepackage[nobottomtitles*]{titlesec} as it messes up my automatic clearing of floatingfingure? \documentclass{article} \usepackage{mwe} \makeatletter ...
2
votes
1answer
566 views

Put figure text under images?

In LyX, how can I set a float that contain figure so that the caption is under the figure? By default the caption is always on the left side of figure.
2
votes
1answer
191 views

How to prevent figures from floating 'into' listings [closed]

I have a problem with floats and listings. Sometimes it happens that a listing is split over two pages and when a figure is near the listing it happens that the listing starts on the first page, on ...
2
votes
1answer
2k views

Ignore figure for list of figures

I'd like to include some figures in my LaTeX document just like every other figure but don't have exactly these figures included in the list of figures. Since I couldn't find a solution I have to ask ...
1
vote
0answers
64 views

Single column figure leaves a blank in the other column?

I am writing in a double-column template (IEEE Conference Template). What has been bothering me is that once I have a figure/pseudocode/tikz in one column, sometimes it pushes the contents in the ...
1
vote
1answer
5k views

How to remove space after image caption? [duplicate]

I am writing one article in which i need to write one image and its caption. I found space after caption seems to be more than normal. \begin{figure}[!ht] \centering ...