Questions tagged [subfloats]

{subfloats} is about small "sub"-figures and "sub"-tables within a single (floating) figure or table environment. For questions specifically about formatting a subfloat's caption, consider to use {subcaption}.

Filter by
Sorted by
Tagged with
2
votes
2answers
30 views

Subfigures in subfigures - proper alignment

I would like to place three (or more) images such that two images (or four/more) are stacked over each other, while the remaining image is put as a separate column, spanning over all stacked rows. My ...
3
votes
1answer
30 views

caption position with subfloat command of float package

I have some code that used to work correctly on some other machine, but I currently have an issue with subfloat captions: They appear next to the image (on the left side) instead of below. Here is a ...
3
votes
3answers
57 views

Figures side by side: captions and size problems

I'm quite new to Latex and I'm having some problems placing figures side by side. I want the first image to be shifted a bit on left side of the text as well as the second a little bit on the right, ...
0
votes
0answers
20 views

Move subfigure captions in subfigure package

I am writing a manuscript for a journal which have specified to use the subfigure package, instead of subfig or subcaption. I am aware that subfigure is deprecated but I cannot change the journal ...
0
votes
2answers
37 views

Subfigures (if) on different pages with main captions on each page

I would like to make multiple subfigures and if there is a pagebreak in between than I want that the main caption appears on every page (If I reference with \ref{} it should just go to the first one). ...
1
vote
1answer
33 views

Subfigure with different image size

I have two images with size of 1920 by 1280 and 561 by 422. I want to include them in a figure. But due to different sizes, the resulting figure is not looking good. MWE: \documentclass[journal]{...
2
votes
3answers
48 views

How do I make a subfigure for each colour so that there are 2 in each row?

So I want to make subfigure inside a subfigure. So 1 for green, 1 for yellow, and 1 for purple. And within each colour have 2 further subfigures. \begin{figure} \centering \begin{subfigure}[...
1
vote
1answer
32 views

Subfigures with captions don't stack side by side

I tried to stack two figures side by side, but always come on top of each other with the caption aligned left. \documentclass[article]{Definitions/mdpi} \usepackage{amsmath,amssymb,amsfonts} \...
0
votes
1answer
25 views

Side-by-side figures with pseudocode in fboxes of same height

I have two pieces of pseudocode that I want to be in side-by-side figures, encapsulated each in their own fbox and these fboxes should have the same height. Any advice on how to do this? I'm pasting ...
0
votes
1answer
33 views

How can I create a new environment that is the same as subfigures or subcaption then add its lable to the \listofgraphiques

I want this \renewcommand\cftfigpresnum{\figurename~} for the new envirenment. part of answer is here \documentclass{book} \usepackage[demo]{graphicx} \usepackage[T1]{fontenc} \usepackage[utf8]{...
1
vote
0answers
21 views

How can I create a new environment that is the same as subfigures or subcaption

The first part of the question has an answer GRAPHIQUE ENVIRONMENT. I want to create the same environment as subfigures (called graphique for instance) to put photos side by side. \documentclass{...
1
vote
1answer
26 views

How do I justify the text using subcaptions in the attached code?

I am using revtex4-2 formatting, and have 2 columns. I would like to have 2x2 subfigure, each labeled by a different alphabet. And I want the caption to be justified. However, the attached code ...
0
votes
1answer
28 views

Rearranging 4 figures 2*2, and having the top and bottom figures appear on separate pages [duplicate]

I'm having difficulties arranging my 4 figures in a 2*2 and have them appear on different pages. This is what it looks like: https://imgur.com/a/karanWW This is the code that I tried (using Overleaf) \...
2
votes
1answer
19 views

spreading the table captions for subfloats

Hello I am trying to spread the caption of a subfloat in a table to be in one line but could not figure out a way to achieve that. Here is an example \documentclass{article} \usepackage{subfig}% http:/...
2
votes
1answer
49 views

How can Overleaf handle \subfloat and subfigure environment together?

I have written a paper in overleaf and used \subfloat and subfigure environment at the same time. I only included \usepackage{subcaption}. When I wanted to compile it on the local computer, it says: ...
1
vote
1answer
63 views

How to insert the caption in the right side (documentclass[a4paper,fleqn]{cas-dc})?

I want to align the sub-caption (c) as in the following figure. \documentclass[a4paper,fleqn]{cas-dc} %\usepackage[numbers]{natbib} %\usepackage[authoryear]{natbib} \usepackage[authoryear,...
1
vote
1answer
35 views

Package caption Error: \setcaptionsubtype outside float

I've got a custom command for placing pictures next to one another on the page, filling the width of the page, optionally with captions. The code generated by the macro ends up looking like: \begin{...
0
votes
1answer
28 views

placing a figure side by side to a table that is atop a figure

I am trying to insert a figure on the left and a table atop a figure on the right. I have the following MWE: \documentclass{article} \usepackage{subfig,graphicx} \begin{document} \begin{figure}[h] ...
1
vote
0answers
18 views

latex code didnt print images of equal size

i am working on ieee 2 column template .. i am placing 4 figures in a row but i am really wondering that the code didnt show them equal size even they sare of equal size can any one tell me why here ...
2
votes
2answers
47 views

How to align image as shown below

I was trying to align images as shown in the picture below. I am new to latex need help \usepackage{graphicx} % takes care of graphic including machinery \usepackage[section]{placeins} \usepackage{...
0
votes
0answers
15 views

How to make 2 subfigures to take up whole width in 2 column document without minipage, float

I would like to put a figure with 2 subfigures at the top of the same page that they are included in the code. The document is in 2 column format, but I want the figure to take up both columns (placed ...
2
votes
2answers
33 views

How to pause counter for Table numbers

I'm trying to create a list following tables: Table 1; Table 2A; Table 2B; Table 3. Tables 2A and 2B are NOT subtables, but rather two very similar tables that my co-author wanted me to just rename it ...
0
votes
0answers
17 views

Subcaptions below each other with figure and table side-by-side

I have a question regarding placing captions with subfigures. I know there are several posts already which are pretty close to what I would like to achieve, but not exactly. I hope the question has ...
1
vote
1answer
114 views

How to combine code listings and graphics in a complex layout using LaTeX?

I have tried many things to no fruition, including tables and subfigures. My goal is to achieve the layout below, where: the grayed out parts represent code listings and the plot rectangles represent ...
0
votes
1answer
35 views

How to add a top margin before a figure in elsarticle latex template

I included a figure which contain 3 subfigures. The problem is that when I put the figure in the top, it doesn't left the top margin, if I put it in the bottom , there is an overlap with the text, it ...
1
vote
1answer
51 views

Control Caption and Subcaptions in A Nested Table

I want my subcaption for these tables to be in the following conditions: The subcaption font size to be smaller than the mean caption font size. The subcaption to be placed at the bottom of the table ...
3
votes
1answer
95 views

Subfigures are coming out strangely staggered, I want them to be side by side

I'm trying to place two subfigures side by side and for some reason the output is staggered and I don't understand why. Code \begin{figure}[t!] \centering \begin{subfigure}[a]{0.45\textwidth} \...
0
votes
1answer
31 views

Issue with positioning of text on the image

I want to add the text at the top of images, follow is my code, how can I do it? \documentclass[journal]{IEEEtran} \ifCLASSINFOpdf \else \usepackage[dvips]{graphicx} \fi \ifCLASSOPTIONcompsoc ...
1
vote
1answer
36 views

I want to add label to the subplot on the top and left, How can I do it?

I want to add A, B, C... on the top and one, two, three on the left follow is my code: \begin{figure*}[ht] \centering \subfloat[]{\includegraphics[width=0.22\columnwidth]{fig5a1.png} \label{fig5a1}...
2
votes
2answers
240 views

How can I divide my figure like this?

I have three pictures want to put into this way....it is quite normal But how? \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[tb] \begin{center} ...
0
votes
1answer
25 views

Spacing in captions

How do I remove this space in the captions and make it look like continuous text in subfigure (b)? Here is my code, \begin{figure}[h] \begin{minipage}[t]{0.22\textwidth} \includegraphics[width=35mm,...
4
votes
2answers
88 views

Using subfloat for the bottom most subfigures ruins alignment

I am facing an issue where using a subfloat causes the alignment to go wrong. Below is a snippet and a figure with and without the subfloat on the bottom left figure. How can I fix this issue without ...
0
votes
0answers
122 views

Overleaf, LaTeX: Missing number, treated as zero

I am writing a report. I am trying to put images side by side so I followed this tutorial. And I get the following errors: \begin{figure}[h] \begin{subfigure}{0.5\textwidth} % this line generates the ...
5
votes
2answers
153 views

add multilevel caption in figures

I am working on overleaf, i need to place images caption like this (highlighted with red pen and blue pen in figure below) separate caption for every image then one caption for two images. The code is ...
1
vote
1answer
28 views

How to use subfigure labels without multiple images in a figure?

I'm working on a paper and the figures are quite complex. For this reason I'm making the figures as a single image in GIMP so I can arrange and place them as I like. In this single image I still ...
0
votes
2answers
42 views

subfloat caption adjustment does not work

I want to remove the extra margin in front of the second subcaption (the yellow part). How can I achieve this? My current code is as follows. \documentclass[a4paper,11pt]{report} \usepackage{import} \...
1
vote
0answers
30 views

Too much space above and below equation and graphic

My latex program is doing some weird stuff and I can't figure out what to do. At one place in my document the space above and below an equation and a figure is way too much. But later in the document, ...
3
votes
3answers
185 views

Undefined control sequence when converting from conference to thesis

I am trying to put this (previously working in ACM MM conference paper) into my thesis. I am not sure how to fix this error: \begin{figure}[t] \centering \captionsetup[subfigure]{labelformat=empty} ...
0
votes
0answers
42 views

How can i show 10 images as a grid [duplicate]

I have 10 images and I want them to display as a grid as shown in the figure. It should have a title and space at the end to describe the images in latex. I have kept the code I am already working on. ...
1
vote
1answer
21 views

how to make a legend be wrapped by a subfloat?

I am looking to save space, by wrapping a subfloat around a legend in the following way: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis mi ut elit interdum imperdiet quis non ...
0
votes
0answers
28 views

"Label `subfloat@@table1' multiply defined" warning?

I understand a multiply-define label error, in general. However, I don't know how to resolve this error. I am using \usepackage[countmax]{subfloat} in my preamble, and do use \begin{subtables}...\end{...
1
vote
1answer
43 views

Subfigures: fail to inset 6 pictures in two rows

I'm using the Frontier template to insert figures, but I keep coming up with errors. I do upload caption and subcaption packages. only one of the figures can show up and no matter how I adjust the ...
0
votes
2answers
43 views

How to convert a 3*2 figure in a PDF file to 2*3 Figure?

I have a PDF file where 6 figures in 3*2 forms are stored. I imported the pdf into my report, but it does not look good. So, I wanna convert it to 2*3. However, I don't have the source to recreate the ...
0
votes
1answer
21 views

Subfigures wrong alignment

I am trying to align subfigures like this: 1 2 3 4 However, my figures are aligned this way: 1 2 3 4 I chose to resize the image because I thought it was caused by the image sizes. \documentclass{...
1
vote
1answer
57 views

Problems with chemical molecules in subfigures

I am trying to arrange a subfigure like 1 big on the left, one in the upper right and 4 left below. The figures are framed with a custom tcolorbox. All of my subfigures worked so far but for some ...
2
votes
1answer
39 views

Why are my references to subplots wrongly ordered

I am following this overleaf template, which is a release of this github repository. I am opening the template, as is, without changing compilers or anything else, as I am not an expert on the subject ...
1
vote
1answer
26 views

Shift subcaption of figure

I'm using this code for ploting multiple plots: \begin{figure}[htbp] \centering \captionsetup[subfigure]{justification=centering} \begin{subfigure}[b]{0.3\textwidth} \includegraphics[width=\...
0
votes
1answer
22 views

How to align figures with the \subfigure and \figure environments?

I have a code to reproduce 4 figures in a sort of 4x4 tile. But the subfigure (c)is not correclty aligned. Here the code: \documentclass[12pt,twoside]{book} \usepackage{_my_document_style} \...
1
vote
2answers
43 views

Why does '%' sign impact subfigure alignment? [duplicate]

These two LaTeX snippets differ only in the '%' sign at the end of subfigure 1, yet they produce different alignment of subfigures: Snippet 1 (without '%' sign): \begin{figure*} \centering \...
1
vote
1answer
42 views

Is there a way to wrap text around subfloats within a custom float?

I am a fairly proficient latex user, but have stumbled across a formatting challenge outside my experience. I am trying to create a custom "box" float - similar to what one might see in ...

1
2 3 4 5
36