2022 Developer Survey is open! Take survey.

Questions tagged [floats]

{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}.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Place figures after the cross-reference

Is there a way to make sure figures and tables appear after the cross reference? I'm 100% sure I have read that a package has got the option to do exactly that, but I can't recall for the life of me ...
user avatar
1 vote
1 answer
26 views

Tikz-Feynman diagrams overlapping in subfigure

I want to show three Feynman diagrams next to each other. I use the subfigure environment. However, the vertex labels of the 2nd and 3rd diagram overlap. I tried to use the [scale=0.5] argument to ...
user avatar
0 votes
0 answers
20 views

Figure reference number refers to section number and not to figure

I want to have the reference number of the figure referring to the figure number (1) and not the subsection number (1.1). What shall I do? Here is the output: Here is the code: \documentclass[a4paper,...
user avatar
  • 779
0 votes
0 answers
13 views

Graphic size error in lyx

i am getting this error : Latex error :cannot determine size of graphic Try typing to proceed. If that doesn't work, type X to quit.
user avatar
0 votes
1 answer
14 views

How to make sublistings with minted package?

I use the minted package for creating highlighted code listings in my text, and I have a need to display several snippets under one float. Firstly, I've tried to use the \subcaptionbox command from ...
user avatar
1 vote
3 answers
42 views

Figure with two graphics and one matrix

I want to recreate this figure in latex: https://developer.nvidia.com/discover/convolution I dont quite managed to algin the matrix and the images. This is how I tried it: \begin{figure} \...
user avatar
  • 193
2 votes
2 answers
154 views

How can I draw a box around a picture plus text?

Right now I am struggling with getting a box around some text with a figure. The idea is that I have a small picture on the lefthand-side with some text right next to it. And then draw a box around ...
user avatar
0 votes
0 answers
37 views

Writing out vectors in a figure [closed]

I have a problem with writing a 2x1 vector in my figure (code below). They will only become 2x2 matrices with the element in the diagonal as one can see in the picture. Code: \def\arrowlength{2cm} \...
user avatar
2 votes
1 answer
26 views

Page-wide figure with sidecaption in two column article

Having some trouble getting my latex document to format this properly. I know there's difficulty using floats in two column documents, but there's got to be a way to make this work properly. I'd like ...
user avatar
2 votes
1 answer
69 views

Latex3 floating point calculations in longtblr (tabularray)

I'm learning LaTeX3 and trying to do simple calculations on floats in a longtblr environment. Trouble is that I cannot manage to dynamically compute sub-totals per row. The global total is working ...
user avatar
0 votes
1 answer
30 views

How to place six subfigures in 2 columns x 3 rows form, where column first shall be considered instead of row first

I have been struggling to place 6 subfigures in 2 columns and 3 rows, where the subfigures should be stacked in column first (one main caption) -- see illustration below. In the following question, ...
user avatar
1 vote
0 answers
27 views

How to size the image resolution in Latex?

I'm using overleaf to write the report of a big group project. There are lots of figures in the file. Thing is, I noticed that the pdf file output is becoming larger and larger due to the large png ...
user avatar
0 votes
0 answers
13 views

Which should be the workflow of creating figures with AutoCad to insert them into LaTex?

I was wondering if someone that uses AutoCad to create figures that will later on get imported into LaTex could share with me his/her workflow. I used to export an AutoCad figure as a pdf document to ...
user avatar
0 votes
0 answers
30 views

Multiple subfigures show under the page instead of on the next page

I have used the following to show five figures, but there are two problems which I think happen because the total size of all five figures is too large. First, the figures are not placed exactly where ...
user avatar
0 votes
2 answers
35 views

Removing page numbering on the Continued float two page figures in Overleaf

I have two pages consisting of two groups of related figures using the floating commands. I want to remove the page number on the second page of these two. I have tried this page using afterpage and ...
user avatar
  • 103
0 votes
0 answers
24 views

Placement of figures and tables in document while using the figure* and table* environments

I am using the figure* and table* environments to place figures and tables in my document. I am using revtex4-2 documentclass and so each page is divided into two columns of text. So I need to use ...
user avatar
0 votes
0 answers
28 views

Floats in text with indents

In an effort to make this as concise and clear as I possibly can, I will format this in the form of lists. 1. What I aim to achieve Being able to properly place floats within a text with shifted left ...
user avatar
  • 1
0 votes
0 answers
28 views

Placing a full width image in a text layout that occupies half width?

I have a latex document where each page is split into the left and right parts, where the text is written first in the left part and then starts in the right part. I have a scenario where I need to ...
user avatar
-2 votes
2 answers
200 views

How to create code in the preamble to give the same result as a prescribed boxed figure with nested caption and numbering

Can a routine be created - similar to those for \chapter, \section, \subsection i.e., containing a number of #2, #1 parameters - to control the boxes used to highlight a series of figures? In my MWE ...
user avatar
0 votes
2 answers
37 views

Independent labelling of a Figure and Table (in the same Figure environment) with a combined caption

I am trying to reference a Figure and Table (with ~\ref{}) in my document. I placed both elements in a figure environment (figure first, table second, both inside of a minipage) to have them displayed ...
user avatar
  • 1
0 votes
0 answers
30 views

Error while using Subcaption package

I am trying to use the subcaption package in my code but it throws errors. Here is the preamble of my code: \documentclass{report} \usepackage[utf8]{inputenc} \usepackage[LGR,T1]{fontenc} \usepackage[...
user avatar
1 vote
1 answer
41 views

how to generate a panel of 2 figs with \subfigures?

I use \subfigures to replicate a panel of 2 figures (see below), and my output does not look like the one I wished to reproduce. The output of my code is as follows: my code is: \documentclass[12pt,...
user avatar
  • 69
0 votes
0 answers
45 views

List of Figures not compiling due to fragile commands

I have my dissertation written in LaTeX and contains about 40 figures, some of the captions contain short and long format of acronym package, and 2 of them contain cites. Recently I added another one ...
user avatar
  • 1
0 votes
2 answers
30 views

Figure referencing isn't working with PGFPlots

Here's my MWE: \documentclass{book} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \usepackage{subfig} \usepackage{titletoc} \begin{document} \begin{figure}[h!] \begin{center}{ \begin{...
user avatar
  • 182
0 votes
0 answers
20 views

Ensure floats are placed before some section, subsections, subsubsections

I'm writing a description of few hiking paths, grouped all in the same section, but in different subsection and subsubsection. Attached to description there are few tables and figures in floats, and I ...
user avatar
  • 203
0 votes
0 answers
22 views

\fltitem does not work properly when I compile large document

I've used the \fltitem to avoid the list problems recently. The \fltitem works very well when I compile a small document, however, the \fltitem does not work properly when I compile a large document ...
user avatar
  • 3
0 votes
1 answer
34 views

Scanned image does not appear in PDF

This is my document: \documentclass[12pt,a4paper,onecolumn]{report} \usepackage{pdfpages}%for inserting pdf thesis declarations \usepackage{graphicx}%for inserting pdf thesis declarations \begin{...
user avatar
0 votes
1 answer
37 views

Left aligning a caption

Captions are usually center aligned if one line or justified if more than one line. I would like to left align / justify some captions, even if one-liner. I read some instructions about the captions ...
user avatar
  • 203
1 vote
2 answers
50 views

Vertical alignment with scaled Feynman diagrams

I'm doing a row of three Feynman diagrams made with tikz-feynman. I'm having some problems with alignments. First, I use subcaptionbox to have a vertical alignment of the subcaptions (see here). ...
user avatar
1 vote
1 answer
29 views

Tables goes unwantedly on next page using IEEE journal

I have made a table with two subtables, that go in to the margin on the sides. For some reason the table always go on the next page even though using [h] or [!b]. An example: \documentclass[journal]{...
user avatar
0 votes
1 answer
36 views

Why the following graph tikz picture doesn't compile?

I can't get the following to compile: https://github.com/IMCG/graph-theory-algorithms-book/blob/master/image/introduction/bipartite-complete-bipartite-graphs.tex I get ! Package tikz Error: Sorry, ...
user avatar
  • 13
0 votes
0 answers
31 views

How to have a set of "photo" different from the set of "figures", with another numbering and "list of"

In my document I would like to distinguish the figures into two subset: "synthetic" figures like diagrams, plot and so on camera pictures The two sets should have independent numbering, ...
user avatar
  • 203
2 votes
1 answer
85 views

Align figure and caption

I am novice on LaTeX, and I tried to align figure and caption. But This happens. What should I do? Especially caption Graph1 is looking bad so I want to align with the square figure. I am finding ...
user avatar
  • 125
2 votes
0 answers
35 views

Three subfigures

I am trying to add generate three subfigures in latex like the attached photo. My code is \begin{figure}[H] \centering \begin{minipage}{.66\textwidth} \includegraphics[width=\textwidth]{figA.eps} \...
user avatar
  • 85
0 votes
0 answers
16 views

User package subcaption is centering all my figure captions

I've been writing an article which includes a great deal of figures. In order to show more of them I imported the packages caption and subcaption. With these I managed to plot figures and subfigures, ...
user avatar
0 votes
0 answers
23 views

problem when inserting figure: "dfTeX error: pdflatex (file ./billeder/Metodeteori/nmr_spectra_ny.png): libpng: internal error"

When I insert a figure in LaTex I get this error: dfTeX error: pdflatex (file ./billeder/Metodeteori/nmr_spectra_ny.png): libpng: internal error. I have checked that the file is correctly uploaded, in ...
user avatar
0 votes
1 answer
18 views

float table misalignment, table crosses the page width

I am using the IEEEtran template. I am trying to build a table that is a single column as the text in the second column is wide. I used table* for float tables but the text in the second column is ...
user avatar
0 votes
1 answer
30 views

fixed position with newfloat

Listed code renders text with some text related to the third listing above source code with cat file2. Forced positioning with H solves the problem however this option is not available in newfloat ...
user avatar
  • 1
0 votes
0 answers
22 views

Every figure is not in the right place [duplicate]

I'm very new to latex and I've been trying to write a summary on an internship I did, but every figure I used is in the wrong place, I've tried to use [h!] and [htb] but it didn't seem to change ...
user avatar
2 votes
3 answers
168 views

How to put 4 independent figures in a row in latex

My code is able to print 4 figures in a row in 2 column format. But the thing is these are sub figure but my figures are not sub figures they are independent of each other. I tried to remove subfloat ...
user avatar
  • 507
2 votes
2 answers
138 views

Figure placement after first time referenced in text

I'm writing a master's thesis and was told that I could place figures anywhere, as long as they appear after the first time I reference them in the text. It seems to be a good practice around here, so ...
user avatar
  • 23
0 votes
1 answer
43 views

place figures side by side in two column format

I want to align graphs like this below figure in IEEE 2 column format I tried this code but its placing figures up and down not side by side \begin{figure}[t] \centering \begin{minipage}{0.48\...
user avatar
  • 507
0 votes
1 answer
47 views

adjustbox for 'Overfull \hbox LaTeX' with subfloat and minipage

I am trying to put two figures (separately stored in two .pdf files) vertically in a one-column style. \subfigure is not allowed, and below is my code: \documentclass{article} \usepackage{subfig} \...
user avatar
0 votes
1 answer
21 views

How can I move a figure "in a section"? [duplicate]

Actually I made a code, and I want to make my figures in (below) Introduction. But the results is like this: How can I make the figure in Introduction?? (Below the 1.Introducition) \documentclass[...
user avatar
  • 125
2 votes
3 answers
73 views

Latex subfigure arrangement

I need help with arranging subfigures in this manner (as subfigure b is a different height but same width as a and c) Any help much appreciated! edit: I've been using the subcaption package!
user avatar
0 votes
0 answers
28 views

Two-column figure shows up underneath text

I'm trying to add this two-column image a the top of this page; however, it shows up underneath the text. \begin{figure*}[htb!] \label{fig:2} \includegraphics[trim=0cm 3.5in 0cm 3.5in,clip=...
user avatar
0 votes
1 answer
39 views

How can I automatically force two side by side floats of any kind (including texts) to have (approximately) the same height?

I often put two floats side by side using the minipage environment: it can be two texts (typically excerpts from books or press articles), two pictures (a map, a photography or a chart) or one of each ...
user avatar
0 votes
3 answers
36 views

problem with subfigure exactly below the figure

I have a problem with subcaption. It does not appear exactly below my figure in center like photo attached. Would you please check it? \documentclass[hidelinks,review]{elsarticle} %\documentclass[1p]{...
user avatar
1 vote
1 answer
40 views

How to center imagine but not caption and cite?

For my paper I need to add the source for the images I use. to achive that I have my formating like this \begin{center} \includegraphics[scale=0.4]{Images/ci-cd-flow-desktop_edited_0.png} \end{...
user avatar
  • 11
2 votes
1 answer
35 views

Let float run into outer margin

I think there have been some questions regarding this, but I haven't found a solution so far. The figures in my (twocolumn) document are too small. Therefore, I thought about letting them run into the ...
user avatar
  • 1,486

1
2 3 4 5
115