Questions tagged [subcaption]
{subcaption} is a package for typesetting captions of {subfloats}.
981
questions
2
votes
1
answer
37
views
How to add subcaption the the subfigure
I need to add sub caption for the image how can do that?
\begin{figure}[!htb]
\centering
\minipage{0.32\textwidth}
\includegraphics[width=\linewidth]{im1.PNG}
\endminipage\hfill
\minipage{0.29\...
0
votes
1
answer
35
views
subcaption subfig packages not working
I am using ACM ACR 2 column latex template https://www.sigapp.org/acr.html I tried to put four figures with subtitles/ subcaption but its not working in my template , i think subcaption subfigure ...
0
votes
1
answer
23
views
pgfplots and subcaption subfigures not aligned vertically
I'm trying to create a figure with 3 figures horizontally. I'm using figure* environment, as I'm working in a two-column document, so that it spans the whole width horizontally. I'm using both ...
1
vote
1
answer
51
views
Add vertical text to the left of a figure with subcaption
I would like to add text, such as `My Y variable' to the left of the following figure (where I put the red mark):
Here is the MWE I got so far:
\documentclass{article}
\usepackage[luatex]{graphicx}
\...
0
votes
1
answer
71
views
How to overlap subfigure with caption
Consider the following
\documentclass{article}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}
\begin{figure*}[htpb]
\centering
\begin{minipage}{0.3\linewidth}
\begin{subfigure}[t]...
0
votes
0
answers
45
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]{\...
0
votes
0
answers
22
views
Subcaption Package is producing errors
I am working on a document which uses this \subcaptionbox from the package subcaption. Recently I updated MikTeX and now every single subfigure is producing four errors (I use TexStudio). Which option ...
0
votes
1
answer
40
views
Subfigure and \textwidth not working correctly
I want to use subfigure to put one image next to the other in my document. I literally copy-pasted the code from Overleaf and modified it to have 2 instead of 3 images. I am working on Overleaf ...
1
vote
1
answer
27
views
Undefined control sequence. <argument> ...sub\@captype }}}{\caption@subreffmt
I'm trying to understand a particular error encountered from using a subfloat within a figure. A MWE to reproduce the error:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\...
0
votes
0
answers
31
views
Subfloat spacing issue: Why the difference?
I'm having a spacing issue with a figure environment inside a framed box. The figure has two subfloats on each row, like what the MWE below is showing:
\RequirePackage[l2tabu,orthodox]{nag}
\...
0
votes
1
answer
35
views
caption below long table with specific spacing
I have to add caption below the long table and with 12pt empty space before and after the table caption. Help me in this regard.
\documentclass[10pt, a4paper, oneside]{article}
\usepackage[hidelinks]{...
0
votes
2
answers
24
views
subcaption: label subfigures in columns
Similar to this question, I am using subfigure to layout a grid of images. I would like (a) to be upper left, (b) to be lower left, (c) to be upper right, and (d) to be lower right. How to do this?
\...
0
votes
0
answers
28
views
subtable alternative. subfig-subcaption conflict
I'm currently writing my thesis and I need to list two sets of data I'm taking from literature. Since they're analogous but different (one gives me $t_0$, the other gives me $\sqrt{t_0}$, this is the ...
1
vote
1
answer
46
views
Page break in threeparttable with subtables
My Table includes multiple subtables along with tablenotes at the end and they spend in two pages. I'm try to do page break and I refer to this post, but it was a page break for footnotes only. Here ...
1
vote
1
answer
120
views
Environment Subtable not defined
I'm trying to insert a subtable into my document. I have loaded the subcaption package, as well as installed the caption package via MikTex. However I still get the Environment subtable undefined. \...
0
votes
2
answers
52
views
Even spacing when placing three tikz pictures side-by-side with single y axis
I am attempting to place three figures side-by-side. The figures can then make use of the same y-axis label to save on space. The problem that I am having is that I have to manually place the space ...
7
votes
2
answers
404
views
13 figures OK, 14 figures gives ! LaTeX Error: Counter too large. only with tex4ht and subfigure
I changed to using subfigure inside figure. Now when I include more than 13 figures in one document, tex4ht gives
! LaTeX Error: Counter too large.
Same document compiles OK with lualatex. I made MWE ...
2
votes
2
answers
147
views
Problem about using subfigure with subcaption in one column of a double-column template
I have the following code for my figures,
\usepackage{subfigure, subcaption, graphicx}
\begin{figure}[htbp]
\centering
\begin{subfigure}[b]{\columnwidth}
\includegraphics[width=\linewidth]{...
5
votes
2
answers
197
views
"\vspace{-number cm}" between "subfigure" and "subcaption" works in back direction in LaTeX
Sometimes I need to reduce the space between sub figures and sub captions, so I insert \vspace{-number cm} to do that. But, it will increase the space.
\documentclass{article}
\usepackage{lipsum,...
1
vote
1
answer
27
views
Set width of subcaption box to height of image
I've created a command to streamline my figure creation. I'm working on adding a subcaption (which is really just a parbox) using the subcaption package that will add some vertical text along the ...
1
vote
0
answers
44
views
How to sub-number tables in the tabular mode?
I want the first table to be 1 (a) and the second table to be 1 (b) [instead of Table 1 and Table 2] without changing the {center} or the {tabular} environment. Alternate cells are merged. Is it ...
0
votes
0
answers
28
views
Graph legend is shared by two subfigures, how can I make sure it overlays the second graph rather than it going through the second one?
\documentclass[a4paper]{book}
\usepackage{filecontents}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{filecontents*}{happyRel.csv}
happy,sampleA,sampleB
1,36,18
2,24,43
3,26,...
2
votes
1
answer
64
views
How to refer consecutive subfigures as Fig. 1 (a)-(c) instead of Fig. 1a, 1b, and 1c, in latex?
I want to refer to the subfigures. Let's say that I have one figure with three subfigures to it. To refer those subfigures I want to write Fig. 1 (a)-(c) instead of Fig. 1a, 1b, and 1c. I have pasted ...
2
votes
0
answers
235
views
subfigure not working
I have this test document
\documentclass{article}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\...
1
vote
1
answer
77
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 ...
0
votes
0
answers
18
views
text inserted at end of minipage environment within figure
It seems that there is something wrong with my minipage as it looks like there is a "b" being inserted in my figure. The minipage is contained within the figure.
When compiled, a letter &...
0
votes
2
answers
99
views
Multiple horizontally aligned subfigures
I am having a little bit of trouble trying to display multiple figures aligned horizontally in a same row, I am using the following LaTeX commands, and I obtain the following misplaced figure:
\...
2
votes
1
answer
44
views
5 subfigures for two rows, 3 and 2, and the second row is not centered
\begin{figure}[h] % figure will span both columns in article
\centering
\setkeys{Gin}{width=\linewidth} % common settings of images widths
\begin{subfigure}{0.3\linewidth}
\includegraphics{./...
0
votes
1
answer
35
views
Figure with three captions and I only want one of them to appear in the list of figures
I have a figure that occupies three pages. It is made up of subfigures. The caption of the three figures must be the same. This is an example:
Note that each figure appears in a different page.
As ...
2
votes
2
answers
55
views
No indication of the subfigures in the list of figures
I changed my document from subfig to subcaption, since I rode, it results in problems together with hyperref (it doesn't show any problems - yet, that's what wonders me).
I'd like to change the ...
1
vote
0
answers
154
views
Package caption Error: The nonfloat package is incompatible to the(caption) so try \usepackage{caption}[=v1] instead. \begin{document}
When I run textstudio I get the following error message (Package caption Error: The nonfloat package is incompatible to the(caption) so try \usepackage{caption}[=v1] instead. \begin{document}) , the ...
0
votes
1
answer
39
views
Book class list of figures with subfigures listed in paragraph format
For a report I am writing, there is a page limit and I have to include lists of figures/schemes/tables. I would like for the figure caption to be standard (i.e. 1.1 Testing ....... 1) and for ...
1
vote
2
answers
141
views
Row- and Column-specific labels for subfigures
I am trying to build something akin to the below, where each column and each row has one title/label.
How can I achieve it? Maybe with the use of subcaption, but I cannot find the solution. I am ...
0
votes
0
answers
33
views
Subcaption box size in a TikZ picture
I want to insert auto-referenced labels (a), (b), ... for grouped pictures, but the node boxes which contain these labels come out to be too large:
\documentclass{article}
\usepackage{caption, ...
2
votes
2
answers
104
views
Subfigure with vertically centered subcaptions on the side
I am trying to have multiple subfigures in rows with their respective subcation on the left side of them. I found a useful answer on the LaTeX forums using \parbox, but the subcaptions are not ...
7
votes
4
answers
505
views
Equal horizontal spaces between subfigures of different sizes
How can I shift the subfigure (j) to the left such that the horizontal space x between subfigure (i) and (j) is equal to all subfigures like in the first or second row.
My Code:
\documentclass{...
1
vote
1
answer
36
views
Having subtables and subcptions within tabularx environment
I am trying to have two large subtables within a tabularx environment, because the two tables are more than a page each. This means that each of them should break and have its own subcaption. I am ...
2
votes
1
answer
41
views
Wrapping pictures around captions
Is it possible to obtain something like
where the boxes are subfigures? Ideally, the size of the figure on the bottom-right corner would fit to the length of the caption, but I would be happy by ...
0
votes
1
answer
77
views
cleveref with subcaption, using \crefmultiformat and \crefstripprefix
I am trying to implement this solution:
https://tex.stackexchange.com/a/418261/194338
or this solution:
https://tex.stackexchange.com/a/416838/194338
but both fail in my case. Here is a minimal ...
0
votes
1
answer
38
views
Subfigure captions not centering and getting referenced with double parentheses
I'm using my University's template to typeset my document and it's messing up some things about the subfigure captions in my document. This is a MWE .tex file that demonstrates my issue:
\...
1
vote
1
answer
112
views
Spanning Figures Over Multiple Pages
I am trying to get subfigures to span multiple pages. I have declared a new floating environment because these are supplmental figures. And I am using the 'subcaption' package so as to have subfigures....
0
votes
1
answer
269
views
How to change Figures and Tables caption fontsize with IEEEtran?
For a conference submission I am using IEEEtran. I want to change the fontsize of caption for both figures and tables. By adding following code I am able to increase caption fontsize for tables but ...
0
votes
0
answers
28
views
Using subfigure to align images horizontally
Despite trying many of the suggestions I've found online, I still cannot get my figures to be aligned horizontally. For some reason, they are continually forced into a vertical alignment. I have also ...
1
vote
1
answer
52
views
Can \subref and xr work together?
With xr I can cross-reference labels in another document. With subcaption I can refer to subfigures (or similar). But if I try to combine them both, it seems they don't recognise each other:
a.tex:
\...
1
vote
1
answer
137
views
Cannot use subfigure in l4dc2023 template
I am using a conference latex template from https://l4dc.seas.upenn.edu/wp-content/uploads/2022/11/l4dc_2023.zip but I cannot use \subfigure here. The minimal working example (by changing the l4dc2023-...
2
votes
2
answers
92
views
Subfigures and subcaptions vertically aligned
What I am trying to achieve is: 1) side-by-side graphs vertically aligned by the-axis; 2) subcaptions vertically aligned. The result is as shown. I understand it's the delimiters that cause vertical ...
4
votes
1
answer
200
views
1 picture of 4 not completely aligned
New to LaTeX. I made a figure with 4 pictures in a 2x2 grid format, and one of the images is not aligned with the rest of them despite having the same code. To confirm it wasn't the images I tried ...
0
votes
1
answer
66
views
How to reduce space after label?
I want to reduce the space between label and caption in subfigure.
\usepackage{caption}
\usepackage{subcaption}
\renewcommand\thesubfigure{\Alph{subfigure}}
\begin{figure}
\centering
\begin{...
0
votes
1
answer
96
views
How to customize the subcaption caption text
Can you assist me in customizing the subcaption text parameters? Parameters originally derived from a caption environment:
Here is the caption parameters:
%%% Caption Formatting
%
% This modifies the ...
0
votes
1
answer
24
views
IEEEtran: Labeling top left without cutting in-between
I'm trying to Label multiple figures on top left without cutting in-between figs, just like this:
However, any code such as "Subfigures. To add A and B to subfigures (in the top left corner), and ...