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

1
vote
1answer
89 views

Margin notes in listing with float environment – Error: Float(s) lost

Based on this question: Margin notes in listing with float enviroment - Error: Float(s) lost I have now other question. The solution is working fine. But I want to use floats for listings, to prevent ...
1
vote
1answer
57 views

My float items are linked to wrong entities

I am using a .sty file from my university to prepare my dissertation. In this file, there is a float for "Algorithms" that I use to define Algorithm 1, Algorithm 2, ... My problem is that, no matter ...
1
vote
1answer
53 views

Picture goes to a new page when inserted

I have now managed to insert a picture into my LaTeX...but now, I cannot place it where I want it to go :/ For some bizarre reason, the picture, when inserted, goes to the next page, a new page, ...
1
vote
2answers
41 views

How can I ensure that a figure is displayed following another one?

I have two figures in my document: \begin{figure} \begin{tabular} ... \end{tabular} \caption{Notation used in the big complicated table} \end{figure} \begin{figure} \begin{tabular} ... \end{...
1
vote
1answer
110 views

RevTex4-1 figure reference wrong number? [duplicate]

I have included a graphic using \includegraphics into a \begin{figure} \end{figure} in revtex4-1. The figure appears in section II (i.e. 2) but the caption of the figure says Fig.1 (this is not a ...
1
vote
1answer
80 views

Twocolumn Revtex-4 figure caption is above the figure

Figure captions should be below figure (unlike table captions). But in Revtex4-1 the caption is above the figure. How can one fix this to make it appear below the figure? I'm bumping this should have ...
1
vote
1answer
68 views

Bad caption imporing figure from pdf

I'm making some figures with Visio 2013 and exporting them as pdf files. I'm including them in LaTeX: \begin{figure}[h] \centering \includegraphics[width=1.00\textwidth]{./Figures/figure.pdf} ...
1
vote
2answers
520 views

How to remove blank spaces above and below inserted images?

In my document there are large blank spaces above and below the images that I inserted, also sometimes I can see blank spaces after the texts too. How can I remove the blank spaces above and below the ...
1
vote
1answer
113 views

Removing white space in text after the image moves

I'm writing a thesis and have about 80 figures. The text leads up to the figure with a single line space: ....text text text text. \begin{figure}[h] .... \end{figure} More text, and so on... My ...
1
vote
2answers
114 views

Border of pictures are not coming in longtable

\begin{longtable}{|lllllllll|} % [ht] \caption{Create } \\ %\label{step 3} \hline \multicolumn{3}{|l|}{\textbf{Prefix}} & \multicolumn{2}{l|}{\textbf{...
1
vote
1answer
121 views

White space between two figures

I have four figures all of the same size. They are all put under each other but for some reason there is no space between the first two, but for the second two there is a white space which makes the ...
1
vote
1answer
70 views

Page break in float pages

I have an appendix section with half a page of text followed by a lot of tables. I want all these tables to go on float pages for the nice distribution on the pages, so placement specified as [p]. ...
1
vote
1answer
80 views

Expansion problem in a grid-like tikz figure

My goal is to automate a process where I have many pictures from a movie sequence and I would like them to be typeset in descending rows. For that, all my images rest in a folder and of course, they ...
1
vote
1answer
128 views

All figures have width equal to textwidth

I am using the AIAA typeset for my LaTeX file. I include figures as follows: \begin{figure}[!htb] \centering \includegraphics[scale=.70]{XXX.eps} \caption{XXX.} \label{fig:XXX} \end{figure} The ...
1
vote
1answer
36 views

image position using figure

I have this document and I want that both images be located in same page or at least that every image be located at the top of the page. Is there anyway to put bigger? I tried to modify the scale but ...
1
vote
1answer
92 views

figcaps package: How to print figure captions and then tables?

I am using figcaps package, it puts at the end Tables and then Figure captions. I want to have first Figure captions and then Tables. Is there any solution? Code: \documentclass{article} \usepackage{...
1
vote
1answer
132 views

Labeling figures as Figure 1, 2, 3 in LyX

I am making a document in LyX but my figures are labelled here as figure 2.1, figure 3.1, figure 3.2 etc instead of figure 1, figure 2etc. How can I fix this issue?
1
vote
1answer
36 views

How can I create standard document?

I like create standard format in my document like: -All the text are justify until I swap this part of text only (center, right, left); -Standard margin of document (top, bottom, left, right); -...
1
vote
1answer
79 views

How to customize the caption as a figure number in the algorithm2e package

I want to show the algorithm as a figure and cite that figure using the figure number anywhere in the page. Below is the code: \documentclass[a4paper,11pt]{report} \usepackage[linesnumbered,ruled,...
1
vote
1answer
289 views

Tikz drawings side by side

I am trying to draw two figures (three, in fact, but even two is not working) side by side using TikZ. I added two TikZ drawings in matrix.tex using \newcommand and tried to add them in the main file....
1
vote
1answer
81 views

How to make my images look transparrent in my pdf document

I'm trying to make my images look transparent in my output pdf using latex (MikTex 2.9). and removing the bottom line. Here is my tex code : \documentclass[10pt,a4paper,twoside,twocolumn]{article} \...
1
vote
1answer
545 views

Rotated Text in Table Extending into Rows in Lyx

I'm trying to create a table with some rotated text in it, but the rotated text is extending into the rows below the cell, as shown here: Here is what my screen looks like in Lyx: I've tried ...
1
vote
1answer
68 views

Table from a defined layout / template for input

I'm doing a project where I need to copy a table several times throughout a document. The basic structure for the table is the same, however, some of the input needs to change. I was wondering if it ...
1
vote
1answer
101 views

Theorem text rendered after figure instead of before

I'm trying to place a figure inside a theorem. However, in the following example, the "test" text is rendered under the figure, and not above as it should be. What can I do to fix that? Minimum ...
1
vote
2answers
87 views

Enforce figures to be placed in the same section [duplicate]

I'm having some sections in a report with more images (figures) than text. I include the images in the following way: \begin{figure}[h] \centering \resizebox{10cm}{!}{\includegraphics{images/test.png}...
1
vote
1answer
242 views

Multi-page subfigures using the subfigure package

I'm trying to create figure that contains many subfigures and I want it to span multiple pages. I'm using the subfigure package to create my figure: \usepackage{subfigure} \begin{figure}[!hbp] \...
1
vote
1answer
62 views

caption close to the table in caption of figure

I need guidance for making the picture below. I can't see to put the caption to the right of the small table (a,b,c), as in the picture below. Any ideas? This is my code: \begin{figure*} \begin{...
1
vote
1answer
118 views

Add figures to a minipage

I've been trying to add figures to a minipage in lyx but couldn't really find a way. Does someone know how this is done in lyx?
1
vote
1answer
158 views

Tables with the same height but with different number of rows

I want to put two tables side by side. Each table has its own caption and the two have a common caption. I can do that with subfloat: \begin{table} \centering \subfloat[][left]{\begin{tabular}{|c|}\...
1
vote
1answer
127 views

Table positioning and floating problem [duplicate]

Here is my question. I want to put my tables exacty where I want in document so I use \begin{figure}[H] code. but then, this problem appears. If table does not fit the page, LaTeX puts it next ...
1
vote
1answer
123 views

How do I keep one figure in its place and move the rest to the end?

I am working on my thesis with many chapters. In one of it, I use a lot of figure and table. I have been able to use endfloat to send all of the figure and table. However, other chapter has only one ...
1
vote
1answer
502 views

How to place the caption of a lstlisting in the margin? (scrreprt, floatrow)

In the following mwe I am using the floatrow package to place the figure captions in the margin. How can I do the same for listings? Update: Some listings are spread over two pages. \documentclass[...
1
vote
1answer
179 views

Overlapping ticks and figure not centered with matlab2tikz

See the printscreen. What I want is that the figure is centered, now that is not the case with using \setlength\figurewidth{1.0\textwidth}. Besides that the ticks with negative signs on the x-axis are ...
1
vote
1answer
113 views

Float after paragraph on the same page

I always put my float environments at the end of the paragraph where it was first referenced. But I have a problem when the paragraph is split over two pages (beginning at the bottom of the first ...
1
vote
1answer
2k views

How to reduce spacing between figure and text

I want to reduce spacing between figure and text (not caption) and between paragraphs. I'm using revtex4 package (two column style).
1
vote
1answer
247 views

How to get figure counter to follow theorem counter?

I am trying to get my figure to counter to follow my theorem counter. I created a few different environments: lemma, example, definitions, etc. I have gotten all of them to follow my theorem counter. ...
1
vote
1answer
204 views

How to make caption of a subfigure wider after scaling the figure?

i wanna scale (a) similar to (c) unfortunatelly, the caption is scaled too how can i make the caption of (c) wider (similar to caption of (a))? thank you \documentclass[12pt]{article} \usepackage[...
1
vote
1answer
99 views

What is the best way to achieve Figure - Comment structure in article class?

I'm writing my thesis in LaTeX. However, as most of the users do, I face the problem of placing figures. I tried various methods to place figures, and all of them were perfect -- except, when I add ...
1
vote
1answer
125 views

figure different numbering \only - beamer

I am using beamer and i want to create a set of slides with the same title, but different content so i use the command \only. Per each \only{} i inserted different pictures, but they appear with the ...
1
vote
1answer
296 views

Problem with caption, hyperref and algorithm2e

I'm trying to mix the caption, hyperref, and algorithm2e packages, but I am having some issues. Here is a MWE. \documentclass[12pt]{book} \usepackage{float} \usepackage[footnotesize,bf,center,...
1
vote
1answer
116 views

Move figure away from first page, in two-column mode

I'm trying to suppress any floats, tables and figures, from appearing on the first page in a two-column ieeetran document: Furthermore, IEEE journals never place floats in the first column of ...
1
vote
1answer
268 views

A figure-like environment that can contain many subfigures and break over pages: How to align double-column starts after the thing properly?

I have a problem similar to post 11059, i.e., I need a figure-like environment that can contain an arbitrary number of sub-figures. These may take so much space that the figure may span over multiple ...
1
vote
1answer
58 views

is possible to use a part of the margins with figure?, as with tabular

is posible to use a part of the margins with FIGURE?, as in this example with tabular \documentclass{article} \usepackage{subcaption,mwe} \usepackage{graphicx} \usepackage{mathtools,amsmath,...
1
vote
1answer
147 views

include figure, auto-fit image and add caption at same time

I have to include some images to illustrate a problem. So I used the following code to auto-scale them to text-witdh, which works amazing. But how can I add some caption? (I have to label and number ...
1
vote
1answer
76 views

Two figures with two sub-figures each on same page

I need a layout like this on a single page without any other text or floats. | figure 1a | figure 1b | Caption for Figure 1 | figure 2a | figure 2b | Caption for Figure 2 Do anyone know ...
1
vote
2answers
82 views

how to put a figure on the side of text?

I have a figure which does not occupy a lot of horizontal space, and I want to put text on its left side. Is there a way to put a figure environment such that the text naturally flows on the left, ...
1
vote
1answer
75 views

Referencing a figure in the text before the figure

I'm wanting to reference a figure, but I know that the usual way of doing it: \begin{document} \begin{figure}[h!] \centering \includegraphics{image.png}\\ \label{fig:fig1}} \end{figure} \end{...
1
vote
1answer
48 views

How to direct all sub-captions of the subfigures in a central caption

Is there a way to direct all the \caption{}'s found within multiple nested subfigure environments within a central \begin{figure} environment given as \begin{figure} ... \begin{subfigure}...\caption{}...
1
vote
1answer
45 views

Lower page number for selected pages

Is there a possibility to lower the page number at a single page where a large figure (float) with a height nearly pageheight is positioned? So the command must probably be used inside the figure ...
1
vote
1answer
243 views

Centering Xcircuit Figure

Hi I am using a program called xcircuit to make circuit diagrams and I cant seem to get the figure centered. I have tried \begin{center}, \centering. I have tried messing with \flushleft but it needs ...