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}.
1,934
questions
0
votes
1
answer
502
views
Text spacing on latex svg screwed when embedded
I have been trying to import svg images into my latex document, but latex seems to screw up the text spacing. I produce the SVG files using pyplot in python. The images look fine inkscape with proper ...
0
votes
0
answers
22
views
Incorrect appearance of the subfigures
I am using below code to include 3 different images in the same figure. However, the caption for each subfigure is with format "Figure 7.2: Gráfico del estado OFF" instead of "a)Gráfico ...
26
votes
2
answers
51k
views
Include table as a subfigure
Is it possible to include "table code" as a sub-figure (instead of an image) using the package subfig? If so, how?
1
vote
2
answers
418
views
How to adjust the height of subfigures of different sizes?
I have the following piece of code
\begin{figure*}
\centering
\subfloat[][]{\includegraphics[scale=0.9]{A_big_figure}
\label{fig:my_fig_1}}
\subfloat[][]{\includegraphics[scale=0.9]{A_small_figure}
\...
0
votes
0
answers
18
views
How can I replace the semicolon with a full stop after the 'Figure' index?
I'm editing an overleaf paper draft following the general formats defined in the IEEE access template. The color of the overall figure indexes complies with the IEEE access template now, but the ...
1
vote
1
answer
36
views
reference to a specific part of a subfigure in text
Hi there I was working on a subfigure and since it's part of a pipeline I wanted to have something in my main text saying: ... (Figure 4, top right) ... (Figure 4, middle) ... (Figure 4, bottom).
Now, ...
0
votes
0
answers
58
views
Aligning figures in subfigure environment
I would like to know, how is it possible to correctly align all figures below without passing through a vectorial processing software. Is it possible in LaTex ? I am working with subfiguresbut didn't ...
0
votes
3
answers
74
views
Automatically Cropping Images to Match Aspect Ratios in Side-by-Side Figures in LaTeX
I'm working on a document in LaTeX where I need to place two images side-by-side. These images come with different aspect ratios, and I am looking for a way to automatically crop them to appear with ...
0
votes
1
answer
44
views
How to edit the title of picture?
I write latex with IEEEtrans with TexLive version 2022
I would like to have the following format:
a. There is only (a) and (b) on each respective figure.
b. Title of Figure consists of the general ...
0
votes
1
answer
347
views
`! LaTeX Error: Not in outer par mode` only when using FrontiersinHarvard style
I want to submit an manuscript to an journal that provides a template there: https://www.frontiersin.org/about/author-guideline however is does seem to accept easily subfigures. The error disappears ...
2
votes
1
answer
336
views
Subfigures in Springer's book monograph class give error (but do work)
I'm using Springer's latex files to create a monograph book. The template can be found here:
https://www.springer.com/gp/authors-editors/book-authors-editors/your-publication-journey/manuscript-...
1
vote
2
answers
38
views
Issue with subfigure split across multiple pages
I have 4 subfigures that I want to be presented across two pages, with 2 on each page. (Each set of two subfigs is large enough to take the entire page).
I followed the suggestions here: Split ...
0
votes
1
answer
44
views
Subfigure captions alignment
I have used the subfigures package but there is a slight misalignment between my two captions. The figures however are aligned and of identical size. Would anyone know how I can solve this ?
\...
1
vote
2
answers
86
views
Creating a Common Legend for Subfigures with subcaption Package in LaTeX
I'm working on a LaTeX template, the elsarticle class from Elsivier, where I have two subfigures created using the subcaption package. I came across this answer which provides a solution for having a ...
0
votes
1
answer
21
views
How to input pictures with subfloat in IEEE latex
I write latex with IEEEtrans with TexLive version 2022.
I would like to input two pictures where Picture A is at the top and Picture B is at the bottom as follows.
Here is the latex code:
\...
3
votes
1
answer
131
views
Unaligned Subfigures blocking each other
I have the following piecharts in two subfigures, however:
One of them is blocking the legend as shown in the picture. Is there any workaround? I tried modifying pgf-pie (thanks Xu Yuan!)but to no ...
0
votes
0
answers
28
views
Place subfigure caption top left in revtex4-2 template
I would like to place the subfigure captions at the top left of the images. There are a ton of questions like this here but they all use the subcaption package, which I don't want to do since my ...
1
vote
2
answers
8k
views
Figures and text side by side
I'm struggling to put a series of five graphics side by side with the normal text. The figures are put as subfloat and placed inside a common figure environment to be able to give them a common ...
0
votes
1
answer
56
views
Figures in Two columns
I'm using overleaf. It's two column and I need 6 figures comes one by one. two figures in column 1 and another 4 in column 2.
0
votes
1
answer
171
views
2 by 2 Grid of Subfigures on Beamer Latex
I'm preparing a beamer presentation with 16:9 aspect ratio. I want to show 4 figures in one frame as a 2x2 grid. How can I adjust them on one slide. If I reduce figure size, they display far apart ...
0
votes
0
answers
12
views
Customizing reference styles of sub-tables in LaTeX
I create and reference to some sub-tables. The following show a minimum example.
\documentclass{IEEEtran}
\usepackage{subcaption}
\begin{document}
\begin{table}
\caption{Table}
\...
7
votes
1
answer
9k
views
How do I do complex positioning of my subfigures?
I'm writing my bachelors thesis, and I have som trouble positioning my subfigures. I have three figures in different sizes, and I would like to have an output like this:
I tried typing the following ...
5
votes
3
answers
5k
views
How to achieve top-alignment of images in subfigure?
There are some threads about subfigures and alignment, but I could not find a solution for my problem. I want to have two figures side by side, both with their own capture (a and b) and below one ...
1
vote
1
answer
90
views
How to add subfigures in own list of figures
I want to add subfigure captions (like "61(a)") in my own list of figures.
My code (see example document below) works fine, but as soon as I load the caption or subcaption package ...
2
votes
2
answers
1k
views
Centering ellipses inside a rectangular node
The following TikZ picture consists of a rectangle containing two ellipses. I'm constructing this by putting a TikZ picture environment inside the node of an including TikZ picture environment. I've ...
0
votes
1
answer
50
views
Minipage with figures, cannot use space after figures for text
I have six figures drawn on a page with minipage, I have limitations to use this subfloat and minipage environment to fit a journal requirement. The problem is that there is a lot of space left before ...
0
votes
0
answers
23
views
How to fix misaligned subfigures with subcaptions
I have two subfigures where the right one is vertically above the left one. I am not sure how to fix this. Here is the code I have:
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}% ...
0
votes
1
answer
39
views
Using figure* moves image to a new page in a 2-column document. Is there a way to prevent it? [duplicate]
I am using \begin{figure*}[H] since I want my figure to span to the whole page width while on double column page but it is causing the figure to move to a new page (despite using [H] to place the ...
0
votes
1
answer
37
views
Figure float is sticking in the middle of the page instead of top
I am trying to set up the figure float in such a way that if there in not enough space after the text in that page, it goes to the top of the next page. Then the text after that float is written in ...
0
votes
1
answer
69
views
sub figures with caption on the side and on the bottom?
I'm trying to create the following scheme in latex, where is given outcome is that some subfigures have both a caption on the bottom and on the left.
Currently, the closest thing I've got was
\...
0
votes
1
answer
43
views
How to properly create centered multi-lines sub-captions with subfig?
I'm having difficulties with subcaptions, which aren't well centered under their subfigure, and doesn't have proper horizontal andvertical spacings. Here's a MWE code to show the issues:
\...
2
votes
1
answer
30
views
Subfigure alignement in minipage-environment
I have a problem with the alignment of my subfigurs in a minipage-environment. My minimal example looks like this:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\...
18
votes
1
answer
41k
views
Reduce space between subfigure and the subfigure captions
How can I reduce the space between subfigure and the sufigure captions ?
Preamble
\usepackage{float}%exact location
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption} % for ...
1
vote
3
answers
98
views
How to use \autoref to refer to a subfigure
Let's say I have a figure that actually has two subfigures (but composited into a single file), is there a way that I could get autoref to output "Figure 1A" and "Figure 1B"?
What ...
0
votes
2
answers
65
views
Warning errors for floats and subfloats in my main document
I found this piece of script to place three images all on top of each other
\documentclass[preprint,12pt,review]{elsarticle}
\usepackage{multicol, blindtext}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \...
2
votes
1
answer
622
views
Package caption Warning: Unknown document class (or package), standard defaults will be used. How to solve
Package caption Warning: Unknown document class (or package), standard defaults will be used. See the caption package documentation for explanation.
May I ask, what is the error above, here is my ...
0
votes
1
answer
110
views
Scope command problem
I have a latex document in which I have drawn a figure with two tikzpictures, I need to place the two tikzpictures in specific locations. for this I used the "scope" command with "shift=...
0
votes
2
answers
74
views
TikZ-subfigures are not horizontally aligned
I have tried to align two tikz-subfigures. For for some reason though it doesn't work completely and they are misaligned horizontally as per this screenshot.
What am I doing wrong here?
\documentclass[...
1
vote
0
answers
53
views
tikz code compilation errors between different texlive version
As part of book that I'm working on, one chapter has several drawings that were drawn in tikz some 8 years back. Many people in this forum helped with that effort including Gonzalo Medina
I am now ...
1
vote
1
answer
55
views
Trying to put images side by side with \begin{subfigure} but it's not working
I'm trying to put two images beside each other using subfigure but they keep compiling on top of one another. On top of that, it's putting a "0.5" below each image and I'm not sure why. I ...
1
vote
1
answer
59
views
How can I vertically align four different sized subfigures and their respective captions?
I want to have a Figure out of 4 different sized subfigures in one line. The subfigures should be centered vertically and the captions should be at the same height.
I tried with and without [c] after \...
9
votes
3
answers
856
views
How to horizontally and vertically align a matrix of subfloats?
Assume you have a matrix of 2x2 tikz figures and you decide to use subfloats. The code
\documentclass{report}
\usepackage{subfig}
\usepackage{tikz}
\begin{document}
\begin{figure}[ht!]
\center
...
0
votes
0
answers
26
views
Composition of multiple figures [duplicate]
I'm trying to compose multiple figure into a singular figure block. I would like to obtain something like what in the picture.
2
votes
2
answers
66
views
Align last subfigure on the left side
I have 5 pictures and want to align them that three pictures are on the left side above each other and two on the right side.
I have tried it like this
\begin{figure}
\centering
\begin{subfigure}[h]{....
1
vote
2
answers
83
views
Including two separate figures in latex as a subplot
I have two separate figures in tex file: fig1.tex and fig2.tex
for example
\begin{figure}[t]
\begin{tikzpicture}
.
.
.
\end{tikzpicture}
\caption{caption}
\label{fig1}
\end{figure}
I use \input{fig1....
0
votes
3
answers
99
views
How to make two tikzpicture's appear one same row
\documentclass{article}
\usepackage{tikz}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[b]{0.3\textwidth}
\begin{tikzpicture}
\draw[...
3
votes
1
answer
57
views
Subfloat figure arrangment
I'm trying to achieve the following figure layout using \subfloat but without any success. That is to have one figure one the left side of the page, and other two on the right side, aligned, and as ...
0
votes
2
answers
58
views
Just cannot get the tikz scaling right in a subfigure environment
I understand how to scale a single tikz picture either by \begin{tikzpicture}[scale = ] or \resizebox or \scalebox. However, this seems to collapse once I put them into a subfigure environment. This ...
4
votes
2
answers
19k
views
How to move the caption of a subfigure right?
My demo code is as follows. Now the caption of each subfigure is displayed centered.
How can I move each caption (including the counter) by 0.5cm right?
[PS: I want the caption "(a) Data" is aligned ...
0
votes
0
answers
51
views
Is there any conflict here? \subfloat cannot use \label!
I want to put 3 subplots in latex using subfloat, I refer to the example and write as follows, the picture can be displayed normally.
\begin{figure*}[!t]
\centering
\subfloat[caption fig1a]{\...