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

4
votes
1answer
36 views

How to increase space between the bottom border of a boxed figure and its caption?

I am trying to generate a space (6pt) between the boxed figure and its caption. Since I am using tikz code \includegraphics did not work. Also I tried \setlength{\abovecaptionskip}{6pt}, ...
1
vote
1answer
21 views

Positioning two independent figures [duplicate]

I have two figures, 1 and 2. Figure 1 should be placed on top, so a \begin{figure}[t] is the way to go. In the syntax, figure 2 is loaded just after the first one with a \begin{figure}[h] command, so ...
1
vote
1answer
33 views

prevent page break a couple of lines after figure

I am writing a document which consists of the repeating format: text, figure, then a larger paragraph. How can I prevent a page break between both of the text and figure environments, whilst not ...
0
votes
1answer
25 views

How to use a marginfigure environment inside a tcolorbox environment?

\documentclass{book} \usepackage[demo]{graphicx} \usepackage[paperwidth=170mm, paperheight=240mm, left=42pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, ...
3
votes
0answers
24 views

Spacing around figures and tables

At the moment I have the following code in the preamble: \usepackage{float} \floatstyle{plaintop} \restylefloat{table} This puts figure captions below the figure, and table captions above the ...
0
votes
0answers
17 views

One column IEEE format (figures not go to the end)

I changed a double column paper (\documentclass[journal]{IEEEtran}) to a single column using the command \documentclass[12pt, draftclsnofoot, onecolumn]{IEEEtran}. However, some of the figures are ...
3
votes
2answers
31 views

How to have a figure with multiple groups of image and each image with individual name?

I have several images and I must put their names below them. Moreover, I need to give the name of the group of that images too (for example, "first layer", "second layer" ect as show below). I need to ...
0
votes
1answer
21 views

Vertical spacing around align in a figure

Math environments like align put vertical space around them, to separate them from the text. This is all well, and if I wanted to change that, I could check this question. However, these environments ...
3
votes
1answer
41 views

Adding figures with a certain order

I am trying to add some figures in a specific order as shown below but it didn't work, Any Ideas? My code: \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure*} ...
1
vote
1answer
52 views

Why do all of my latex figures say “chesches” next to it? [duplicate]

When I use \includegraphics all of my figures say "chesches" at the bottom left of the figure. Here is the code: \begin{figure} \includegraphics[width = 6 inches]{HHCircuit.png} \end{figure}
0
votes
0answers
19 views

Unwanted Edges in MATLAB Pcolor Figure Appear in TeX

I want to use an eps file in my tex document. I generate this figure with MATLAB using pcolor command. To make the edges smoother and omit the grids, I use the shading flat (or shading interp) ...
3
votes
1answer
28 views

(color online) label in RevTeX

For colored figures, Physical Review journals require that the caption label takes the form "FIG. 1 (color online). Caption content" if the figure will not appear in color in print. Could someone ...
3
votes
0answers
40 views

List of figures with reference URL

I want to have a list of figures, which also contains a reference URL (or the article which I refer to \cite{}) for each figure entry. (and if possible the URL should appear in the next line with a ...
0
votes
0answers
25 views

Fix wide-figure positioning in 2 column Latex

I have a two column formating of latex. I know that I can use * to wide the figure in two column: \begin{figure*}----\end{figure*} For fix positioning I know, I have to use \usepackage{float} plus ...
2
votes
1answer
14 views

Wrap caption in multipage lstlisting environment

I am following the accepted answer from this question to extend an lstlisting across multiple pages. It works great, however if my caption is too long the continued caption doesn't wrap, and this is ...
2
votes
0answers
23 views

eps images position in IEEEtrans class

I have a document with some problems in the positions of the last images. I copied the code here and after that, I copy the warnings that I get: \documentclass[journal]{IEEEtran} ...
1
vote
1answer
26 views

Margin notes in listing with float enviroment – 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
0answers
21 views

Content is missing but lof or toc keeps showing on top of first page [closed]

\documentclass[a4j]{jarticle} \usepackage{float} \usepackage{listings} \usepackage[dvipdfmx]{graphicx,color} \usepackage{amsmath,amssymb} \usepackage{bm} \usepackage{chngcntr} ...
1
vote
2answers
15 views

Is it possible to have fxnotes in caption of figure or table?

I am using the fixme package with the following MWE: \documentclass[10pt,a4paper, draft]{memoir} \usepackage[utf8]{inputenc} \usepackage{fixme} \fxsetup{layout=footnote} \begin{document} Fixme notes ...
3
votes
1answer
40 views

Figure: Sidecaption while text floats next to figure

I am restricted to a two-column and have a figure that I want to include in \textheight height with the caption on the other column. The figure spans exactly one column, but I don't know how to let ...
2
votes
1answer
22 views

How can I reference figure*'s subfigure? [duplicate]

I'm writing a paper to submit a conference. However, I am having some problems fixing non-resolved references in latex. \begin{figure*}[ht!] \begin{subfigure}[b]{0.3\linewidth} ...
2
votes
0answers
88 views

How to move the List of Figures to the end of a document

Is it possible to set the list of figures to appear at the end of a document instead of appearing at the beginning? I tried to set \listoftables befor the command \end{document} but nothing ...
2
votes
1answer
49 views

2nd Column EnvironmentTable and figure 2x2 on the top of 1st and 2nd page

Can anyone help me revise my code so that I can achieve the following goals. 1.How to make the table to be on the top of the first page? Now it skips the first page and jumps to the middle of the 2nd ...
2
votes
0answers
24 views

multiple handcrafted labels for figure

The following MWE shows my attempt to create a list of references in a document, with links from text to reference and back. It works well in text, but badly in figures when I try make the reference ...
3
votes
2answers
48 views

Centering figures vertically on a page?

I am finishing off a book, and there are a few issues with some page layouts. Specifically, the publishers have requested figures to be on the top and bottom of pages as much as possible. I have ...
4
votes
1answer
66 views

Is there a way to divide ONE figure to reference the subparts of the figure?

I have a figure that basically consists of smaller figures. I don't want to split the big image apart to put it together with latex for convenience. Instead, I want to reference each subpart of the ...
0
votes
1answer
24 views

how to insert protocol in Lyx?

I know how to insert "algorithm" in Lyx. But how to insert "protocol" as shown in the following figure?
11
votes
2answers
236 views

Which is better practice: rendering figures on the fly, or importing them as images?

I've come to a philosophical quandary with respect to my use of LaTeX for scientific writeups. At first I tried to render all figures in LaTeX at compile-time, for example making a graph using ...
1
vote
0answers
23 views

`h' float specifier changed to `ht' [duplicate]

When I add this text: The pdpotri routine computes the inverse of a real symmetric or complex Hermitian positive definite distributed matrix $sub(A) = A(ia:ia+n-1, ja:ja+n-1)$ using the Cholesky ...
1
vote
0answers
13 views

How to set the figure number corresponding to its section and start from 1 in each section [duplicate]

\renewcommand{\thefigure}{\arabic{section}-\arabic{figure}} I used this commend, and I get the figure number like this: 1-1,1-2.....2-9.....5-54, but I want to set the figure number to the type ...
0
votes
0answers
35 views

Error: “Undefined control sequence” in \includegraphics, height

I am using figure and subfigure environment. Inside subfigure I am using includegraphics. The figure and subfigure structure looks like following: \begin{figure} \begin{subfigure}[b]{.25\textwidth} ...
2
votes
2answers
23 views

Get rid of text over footer after figure and long table

The document is otherwise exactly what I want. The text respects the footer on every page but one. On this one page, the first thing is a figure, followed by a longtable (that doesn't actually ...
4
votes
1answer
158 views

Why is the picture not centered in the frame?

Using the following code: \documentclass[12pt]{beamer} \usepackage{ctex} \usepackage{graphicx} \begin{document} \begin{frame}{PSA分析级别和实施程序} \begin{figure}[htbp] \centering ...
2
votes
0answers
16 views

Float environment before or on the page of its first reference

I know, it's an old topic and I already know about the general functionality of float environments in LaTeX. I want to give it as much freedom as possible and generally like the way of placing floats. ...
1
vote
0answers
16 views

IOP double column manuscript unable to print figures in pdf

I am trying to write for IOP, when i use multicol package latex cannot print figure , for single column article no problem occur at all.
4
votes
2answers
112 views

Image not showing up when using figure environment

I want to add an image to my paper but I have a problem. When I add the image with just \includegraphics[]{} tag, everything works fine, and the picture shows up when I compile my document. When I ...
2
votes
1answer
31 views

Using “moderncv” package, the \cvitemwithcomment command gives error

I'm trying to create my personal CV using moderncv package but I'm getting an error: in language skills section I'd like to insert a table resuming my skills using the code as follows ...
4
votes
1answer
36 views

Odd or even full-page float

I want to place a full-page image after one of the closest page breaks, but I want to control, whether to place this image on ad odd or on an even page. The closest question I found is this: ...
0
votes
0answers
19 views

`strip` Environment Does Not Work in Empty Document / Interaction with `\afterpage`

I have a question about the interaction of the packages afterpage and cuted in two-column mode near the document end - or about cuted's strip environment in otherwise empty documents for that matter. ...
5
votes
2answers
89 views

Can I have a tcolorbox behave like wrapfig, without using the wrapfig package?

I want to have the text go on the right side of my tcolorbox (like this), instead of it just being white space on the right side of my tcolorbox. This code illustrates a tcolorbox with all white on ...
4
votes
2answers
118 views

Why have floats smaller headsep?

I am typesetting an illustrated book, and the author pointed at the pictures seemint to have a smaller headheight. I think he is right and I am wondering why. Here is my MWE: ...
0
votes
1answer
34 views

Caption for subfigures

I'm using the below script to display a figure. The problem is that I don't know how to put subcaption for each subfigure. I don't want to use any other packages. Any advice please? \begin{figure} ...
2
votes
1answer
40 views

How to left-align a table in LaTeX with nonstandard document class

I need to align my table with the left margin of my page. The adjustbox package looks to be the solution, but I'm having difficulty implementing it. I realize my question is potentially a duplicate to ...
1
vote
0answers
10 views

How to tell cleveref to use the correct label type [duplicate]

I'm trying to use cleveref to reference some figures, but it is incorrectly labelling them as sections. (i.e. It will say something like Section 5.12 instead of Figure 5.1 in the text) I'm also using ...
0
votes
0answers
28 views

Predefining placement of figures and tables in custom package

I am trying to define figures in a new custom package using \newenvironment{name}{begin defs}{end defs} and minipage command (code is given below). if i create a \newcommand{\name}{defs} (named as ...
5
votes
1answer
52 views

Vertically oriented “row names” for subfigures

How can I create vertically oriented "row names" for subfigures? I tried to visualize my idea here: Here is the code for the images using the subcaption package to get subfigures within a larger ...
1
vote
1answer
45 views

Suppress figure numbers only on certain slides in the latex beamer class?

I am working on a presentation with the beamer-class. I have several slides with pictures on them, some pictures are logos where the logo is its own name. For example: Coca Cola has a logo that is its ...
2
votes
1answer
90 views

Multi level latex figure

I am trying to do the following figure with shemabloc, but I didn't succed mainly due to the first two comparators that I cannot place correctly. Thank you for your help. Here is my code. ...
2
votes
1answer
30 views

How to reference the section of a figure or table (on purpose!)

Is there a way to reference the section in which a particular figure or table is defined? I know that referencing a figure's section is typically a mistake (i.e., accidentally putting the \label{} ...
1
vote
1answer
38 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 ...