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

69
votes
7answers
61k views

Custom margin settings for figure in LaTeX

I have a fairly large figure in a LaTeX document. This figure is too large for the left and right margin of the document. This results in the figure being placed flush with the left margin, and way ...
2
votes
1answer
50 views

How to snap a float to grid

I have a two-column document with some column-spanning floats. The problem is that floats essentially reduce the page size when present, and the remaining page size does not necessarily correspond to ...
2
votes
2answers
28 views

Minipages parallel with included image

Bonjour! I created two columns with information using \itemize in two different \minipage environments. Now I want to include an image parallel to these two 'columns'. I tried to include the ...
0
votes
1answer
24 views

How to insert flexible float/text separation in two-column mode

To avoid ugly extra white space in the text, i want a flexible glue between the float and the text in two-column mode. In one-column mode, I can add extra glue using \textfloatsep, and I hoped I could ...
0
votes
0answers
18 views

Problem with import of eps plots from Matlab - leaving blank figures

I am really frustrated with Matlab right now, as I have used many hours trying to find a solution to the problem with Matlab generated eps-plots leaving blank figures in Latex. This only occurs for ...
0
votes
0answers
9 views

How do I add list of my own floats to the table of contents?

I have the following MWE: \documentclass{book} \usepackage{float} \usepackage{newfloat} \DeclareFloatingEnvironment[ fileext=loa, listname=List of A, name=FloatA, placement=tbhp, ...
0
votes
1answer
11 views

How can I force the position of a float that I created the environment for using newfloat?

I have a stubborn float that won't appear in the right page (even though there is really no reason for that -- it takes a whole page, and for some reason it appears after the end of the chapter, ...
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.
2
votes
0answers
29 views

Flashcards with figures [on hold]

I want to make some flashcards of my anatomy notes, i guess i need to use the flashcards class. But then my problem is that i can't have figures/images on the flashcards, it won't compile; It gives ...
1
vote
1answer
27 views

How to put hyperlinks in endfloat's markers?

The documentation of the endfloat package explains how to customize the text in the markers from the default of "[Table 3 about here.]" But I would like to customize the markers to include a ...
1
vote
2answers
41 views

Size and placement of subfigure of different original size

I have a figure which has three similar subfigures and one of a different size (showing the legend of the other three). I'm having problems making the size and placing in the document look good. This ...
3
votes
1answer
26 views

Why do my lists of floats get collapsed?

I defined two types of new floats, but when I try to list each of them separately, they get collapsed into the same list. Here is an MWE: \documentclass{book} \usepackage{float} ...
0
votes
0answers
28 views

Table don't care about section

I'm trying to make a lab report and will begin my results with a table. The problem is that the table, even though it's written after, ends up BEFORE the section. Can anyone tell me what I'm doing ...
4
votes
2answers
53 views

Document doesn't show the list of figures (LaTeX)

I have the problem that LaTeX doesn't show the List of figures and List of Listings. I don't know where the problem is. I'm working with TeXstudio and the code was defined as follows: ...
2
votes
1answer
219 views

Line break in the caption of subfigure

I would like to add a line break in the caption of a subfigure: \begin{figure} \subfigure[a long line]{% \includegraphics[width=0.23\textwidth]{figures/cells_time.eps} } \end{figure} So I ...
0
votes
0answers
44 views

How to increase table and figure numbers' font size? [on hold]

I am trying to make the figure/table number in same sized font with the caption of the figure/table. the code is here: \begin{figure}[!htbp] \centering ...
1
vote
0answers
35 views

Section, figure, table numbers are in smaller font size

I have used \include{resultsanddiscussion} to import certain chapter results and discussion. I have used \fontsize{16pt}{18pt}\selectfont to determine heading size 16 pt and spacing 18 pt. the code of ...
2
votes
1answer
219 views

pgfplot same size font in figures and same size figures

Hi I've created figures with standalone and pgfplot package. The figures output size are different to one another but more importantly the font size are different. I would like all figures to be of ...
0
votes
1answer
43 views

scale bar figure - showing scale with citations

I am attempting to make figures similar to this: with latex. I would like for the citations to work in order to match the observed data from where it came. Does anyone know of a good package ...
2
votes
2answers
495 views

One column figure blocks text in adjacent column

I am facing this strange problem where a figure in one column of a two-column page is blocking the second column. In other words, text is not going there in other column with a figure in the adjacent ...
2
votes
3answers
104 views

figure is in subsection but it goes to subsection

I need your help in solving the followings: \documentclass[a4paper, 10pt, conference]{ieeeconf} ... \subsubsection{C} \begin{figure}[h] \begin{minipage}[t]{0.3\linewidth} \centering ...
14
votes
3answers
8k views

How to find the lost text part when having “Float(s) lost” error

I've lost some text. I don't know if theres something missing, so how can I find it? I'm not in the mood to compare the chapter1.tex to the pdf file by reading both. Chapter 1 (chapter1.tex) is rather ...
2
votes
1answer
33 views

Aligned figures and captions on one line

In LaTeX I'm trying to put two figures next to each other, with captions below, where the captions might have unequal numbers of lines in them. The images are bottom-aligned, and the captions are ...
0
votes
0answers
25 views

stfloats, twocolumn, figure* broken with late pdfTeX 1.40.16

I tried to build some older document with a new pdfTeX version and encountered very strange errors of figures getting lost. I was able to produce the following minimal example: ...
0
votes
0answers
14 views

Caption Error: “destination with the same identifier (name{figure.1}) has been already used” [duplicate]

I get the following error when compiling pdflatex: (/usr/local/texlive/2015/texmf-dist/tex/latex/base/omscmr.fd) [2pdfTeX warning (ext4): destination with the same identifier (name{figure.1}) ...
0
votes
0answers
18 views

Two-col spanning figure with a fixed position

I am writing a document that uses the common two-column text format. I have one figure which shall span over two columns, I am using figure* to achieve that. A side-effect of the figure* environment ...
1
vote
1answer
54 views

How to put figures in LaTex in \documentclass[preprint,12pt,authoryear]{elsarticle}

It said " %% For including figures, graphicx.sty has been loaded in %% elsarticle.cls I do not know how to use that effectively. can you provide a worked example here. For example ...
0
votes
1answer
20 views

define environment spanning two columns [duplicate]

In writing a two-column paper, I want to insert two figures. Fig. 1 has two subfigures (a) and (b); Fig. 2 has a single figure. So in total, there are three figures, each occupying about 1/3 of the ...
0
votes
1answer
46 views

wrapfig followed by a list: items after the first does not wrap around correctly

When using the wrapfig environment followed by a list, the text of the first item of the list wraps around the figure. So, with the wrapfig that has a left placement, this text starts on the right of ...
0
votes
0answers
25 views

How to move tables and figures to the end and without the list of figures blank page

Been using this and it works but how to include tables too, tables before figures first or figures before tables? Also, it adds a blank page which says list of figures, anyway to get rid of that? Is ...
3
votes
2answers
119 views

Renumber figures as they appear in text

I have two questions: When I use figure*, LaTeX sometimes places the figure before its predecessor. Is there a way to automatically number the figures as they appear in the text? On the other hand, ...
0
votes
0answers
13 views

Numbering of figures with {figure*} [duplicate]

I need to use both figure and figure* In my twocolumn article, but I have problems with the numbering. The figures are not numbered by the order of appearance. Apparently, the large figures* are the ...
2
votes
1answer
28 views

Vertically aligning captions in side-by-side figures

I'd like to put two side-by-side figures with two different captions. I used this: \begin{figure}[h!tbp] \centering \begin{minipage}[b]{0.6\textwidth} ...
1
vote
1answer
29 views

How can I independently number figure pages?

I have a document where all the figures are put on separate pages (sometimes more than one figure to a page, which is fine). This is achieved using the \begin{figure}[p] option in the figure ...
16
votes
1answer
8k views

Center-align the verbatim environment

I am trying to center align the content of a figure that has verbatim text in it. But the verbatim text is always right-aligned: \begin{figure} \centering \begin{verbatim} some text here ...
1
vote
2answers
39 views

How to put two figures in the same page?

I am trying to put two figures in the same page of my paper, but although there is still enough space for the second figure in the first page, the second picture won't appear in the first page. ...
4
votes
1answer
54 views

If figures are placed left, left-aligned captions are unwantedly centered (ConTeXt)

What I try to do: I want to place figures left so that text wraps around them if they have less width than \textwidth. The figure captions should be aligned left (flushleft). What happens: The ...
0
votes
1answer
31 views

Text starts from new page when there is enough space

I am writing a formal letter and found this template. I liked it very much and I am using it with a few changes. My problem is after I include my signature at the very end, my name starts from a new ...
1
vote
1answer
74 views

How to remove the blank line above the table in beamer

I want to insert a table in my beamer, but the there's a blank line above the table, how can I remove the blank line to make the table's top align with the text on the right This is the MWE ...
20
votes
3answers
9k views

How can I remove the figures from a draft of my document?

I'm working on a research paper with many figures in it. To save paper, I would like to exclude the figures when I print drafts of the paper. Is there an easy way to do this (via command-line option, ...
0
votes
1answer
16 views

Can I put a figure with caption and label inside a theorem (newmdtheoremenv)?

The following MWE doesn't compile if I uncomment the commented lines: \documentclass[a4paper,10pt]{book} \usepackage{amsmath} \usepackage{mdframed} \usepackage{graphicx} \usepackage{xcolor} ...
1
vote
0answers
10 views

How to remove the “path” above a figure [duplicate]

How to remove the text "LaTeX tutorial/STA9700 Project/fig1.jpg" above the figure: my code: \usepackage{graphicx} \usepackage{float} ...... \begin{figure}[H] \centering ...
0
votes
0answers
25 views

Reduce horizontal empty spaces between figures

I want to place the figures in grid mode and I use following lines for the same \begin{figure*} \begin{tabular}{cccc} \includegraphics[width=40mm,height=40mm]{mds_chiller2_august.pdf} ...
2
votes
1answer
37 views

Sideways picture shown on wrong page

My picture and my section won't be on the same page. I have tried the float package with [H] and [!] and so on but it won't work \documentclass[a4paper]{report} \usepackage{float} ...
3
votes
2answers
32 views

How to make a caption (table and figure) left justified

How do I make my captions both for table and figures left aligned. I tried using \usepackage[justification=justified,singlelinecheck=false]{caption}. But the caption is aligned with the page and not ...
0
votes
0answers
27 views

Why my table not showing up where it should? [duplicate]

I'm doing something like this some text \input{tables/ratings} some more text However, it's popping up randomly. How can use the \ref{} command in this case? Please suggest some simple solution. ...
1
vote
1answer
21 views

How to change figure caption label

How can i change my figure caption from Fig. 1 to Figure 1 I am using IEEEtran template. My code looks like below \documentclass[journal]{IEEEtran} \usepackage{algorithmic} \usepackage{graphicx} ...
2
votes
1answer
23 views

How are conflicting options for figure placement prioritized?

The options in \begin{figure}[!htb] [...] \end{figure} are in conflict (place here, place at the top, place at the bottom). It is said that the order doesn't matter. So, how are those options ...
0
votes
0answers
15 views

How to display the file name of a figure in a Latex document?

As I'm drafting a LateX document, I'd like to generate a PDF that displays somewhere the actual file names of the figures. I'm sure I saw something like that, but I cannot find it now. I know there is ...
3
votes
1answer
49 views

2x2 subfigures with tikz graphs

I saw that this has been asked before, but none of the solutions appear to work in my document. I am trying to set an 2x2 grid of sub figures, each filled with a tikz graph. However, no matter how ...