Questions tagged [subcaption]

{subcaption} is a package for typesetting captions of {subfloats}.

Filter by
Sorted by
Tagged with
1
vote
1answer
22 views

Automatically centering subfigures where the includefigure width is less than the subfigure width

Helloo everyone, I've been working with this community for quite a while now. Thanks for that! But now I seem to have run into a problem mentioned nowhere else. To be more precise, none of the ...
0
votes
1answer
19 views

How can I adjust the caption spacing between in-line subfigures?

MWE: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \usepackage{mwe} \usepackage{lipsum} \begin{document} \begin{figure} \begin{subfigure}[b]{0.475\textwidth} ...
0
votes
1answer
31 views

Report class in latex generates error for subfigures when compiled? Still generates error

\documentclass[12pt, a4paper]{report} % Report class in 11 points \usepackage[left=1.5in,right=1.5in,top=1.7in,bottom=1.7in]{geometry} %\usepackage{setspace} \usepackage[titles]{tocloft} \usepackage{...
0
votes
0answers
16 views

Aligning captions of different sized subfigures

I would like to make the captions of these subfigures align without changing the position of the images. Below is my script and the produced images: \begin{figure}[h] \centering \begin{...
0
votes
1answer
38 views

Subcaption package messing with caption format and not fully aligned figures

I am using IEEE Access template to write a document and I've added the subcaption package in the figure* environment in order to create a full page subfigures. In this I have two problems, the first ...
1
vote
1answer
23 views

longtable name doesn't appear

The name doesn't appear. this is the code. \begin{longtable}[c]{p{3.8cm}p{3.6cm}p{4.1cm}p{5.1cm}} \captionof{table}{\textbf{Summary of key ECD interventions in Cuba.}} \toprule \textbf{Dominant ECD ...
2
votes
0answers
135 views

Memoir subbottom (and subtop) vertical alignment control

What is the way to control alignment of subfloats (by content or by subcaption)? Some memoir or \xpatchcmd hack maybe? MWE (slight modification of Hyperref not jumping to the appropriate location for ...
2
votes
1answer
20 views

Cref customization output

I want to add ( ) parenthesis in subfigure references when using \cref. \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \usepackage[capitalize]{cleveref} \begin{document}...
0
votes
2answers
56 views

How to have multiple image in left right, up?

Basically I want to have an Figure like below: However, I am able to put left right, how to add an Up? \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage[utf8]{inputenc} \...
2
votes
3answers
2k views

How to force a subfigure's caption to be on one line?

I want the caption for each subfigure to be on one line because it isn't so long that it should line-wrap. Is there any way I can force it to be on one line? Here is a minimum working example: \...
0
votes
0answers
37 views

custom legend below figure

I have the following code and would like to set the legend below both subfigures in the centre. It would also be great to have subcaption (a) to be positioned horizontally with the corresponding pie. ...
5
votes
2answers
14k views

How to remove caption of some subfigures?

I have four figures and want to put them together as subfigures. However, I don't want the first one to have a caption. Can anybody figure it out please? Thank you in advance! \begin{figure}[t!] \...
1
vote
1answer
60 views

Centre in every subfloat (subcaption), 2020 edition

I would like to ensure that content is always centred within subfloats (without the need for \centering in each one). This question was asked and answered over 6 years ago but, of the answers, the ...
1
vote
1answer
20 views

How to align a caption with a ragged-right subfigure keeping caption text justified

I have a problem aligning subcaptions with their corresponding subfigures. I'm using \usepackage[export]{adjustbox} to shift subfigures (a) and (b) to the left and right borders of the body text as ...
4
votes
1answer
64 views

Cleverref package returns an extra parentheses

I am using the \cleveref package to reference subfigures. I am using the \crefmultiformat to customize the referencing style. I am trying to achieve Figures 1.1 (a) and (b) but with the attached code ...
0
votes
2answers
48 views

Using subfigure environment for arranging image in grids using multiple rows and columns

I am trying to set up a grid-based structure for images in latex document. Currently, I am using tabular under figure environment to achieve this. However, the outcomes are not well-aligned and flow ...
2
votes
1answer
55 views

Subfigures With Captions for IEEE Conf

I am creating a latex project with the document class ieeeconf: \documentclass[letterpaper, 10 pt, conference]{ieeeconf} I need to include some a figure with some subfigures, similar to what is ...
4
votes
2answers
307 views

How to properly use subcaption with threeparttable

I'm trying to use the subcaption package inside the threeparttable environment, but can't get it work. I know there could be some issues with the two but I simply can't abandon the TPTT. Apparently ...
0
votes
1answer
34 views

Reduce padding before and after figure (with sub figures)

I have the following code to include two images in my document: \begin{figure}[!ht] \centering \begin{subfigure}[b]{1.0\textwidth} \centering \includegraphics[height=6.31cm]{...
2
votes
2answers
76 views

Problems with subcaption in frontiers documentclass

If I use the subcaption package within the frontiersSCNS documentclass, the subfigure counter seems to be not reset properly. The MWE \documentclass[utf8]{frontiersSCNS} \usepackage{subcaption} \...
1
vote
1answer
33 views

tocloft does not work with list of subfigure in List of Figure?

If I load the following: \usepackage{tocloft} \renewcommand{\cfttoctitlefont}{\Huge \bfseries \sffamily} and below (below is the add in subfigure in the List of Figure) \usepackage[demo]{graphicx} \...
0
votes
0answers
22 views

How to arrange 4 images with individual sizes in three rows using floatrow package?

I'm trying to get familiar with the package floatrow and have the following MWE. In the final solution, the images are Tikz/pgfplot graphics, and the width and height of each image is set individually....
0
votes
1answer
46 views

How to increase counter on nested subfigure environment?

I would like to add an automatic numbering of nested subfigure environments. I found the following answer, which shows how I can manually add an additional Arabic number to my subsubfigure, but I ...
0
votes
0answers
36 views

why added in \usepackage{subcaption} have error?

I could not figure out what is the reason the error when I added in \usepackage{subcaption} in my main.tex for Overleaf. Basically, I want to have sub figure for one of my figure My main.tex code: \...
0
votes
0answers
28 views

How to do subfigure top and bottom, and not left and right

How to have a code for subfigure (a) and (b) in same line, not right and left I had tried: \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage[utf8]{inputenc} \usepackage{...
0
votes
1answer
36 views

The label from \subfigimg macro hided in xepersian

When use the "\subfigimg" macro with xepersian environment, the labes over each image missing: \documentclass[preview]{standalone} \usepackage{mwe} \usepackage[table]{xcolor} \usepackage{xepersian} \...
1
vote
1answer
24 views

Add some Caption in one box figure

I want to make a caption like this See the (a) and (b). I dont know how to add to my figure. I only have like this The different is only in this This is MWE \documentclass[a4paper, 12pt, twoside,...
0
votes
1answer
200 views

How to align sub-caption centrally and reduce space between sub-figure and sub-caption!

I have tried many ways to align sub-caption centrally and reduce the space between sub-figure and sub-caption, shown in the attached figure. As you can see, (a) & (b) are not perfectly centralized ...
0
votes
0answers
35 views

Package caption error when using rotating

When I try to include both \usepackage{rotating} and \usepackage{caption} or \usepackage{subcaption} in my preamble, I get the following error: Package caption Error: For a successful cooperation we ...
1
vote
1answer
42 views

Centre justification of the subcaptions

I am using the following code to place two subfigures: \documentclass[a4paper, 12pt]{article} \usepackage[margin=0.8in]{geometry} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \...
2
votes
2answers
954 views

Align subcaption to its subtable

I am trying to create a table with tree subtables in it. To do so I have written the following code: \documentclass[twoside]{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \...
4
votes
2answers
82 views

How to display tikz picture between subfigure and subcaption?

I want to insert a legend generated with the tikzpicture environment between multiple subfigures and their subcaptions. My current code is \documentclass[11pt]{article} \usepackage{tikz} \usepackage{...
1
vote
2answers
51 views

Double bracket in subfigures using subcaption package

I am using the package \subcaption; I would like my subfigures to be labeled by letters, e.g. (a), and when referencing a subfigure with \ref I would like to get something like Fig. 1(a). By default, ...
4
votes
1answer
14k views

Subcaption Package Error

I'm having an issue compiling with the subcaption package. I'm starting to write my thesis, and I originally started a chapter with a separate document. This compiled fine and had the following pre-...
0
votes
1answer
96 views

Subfigures with captions for thesis using \subfigure package

I want to put two figures side by side with their sub captions for my thesis. The template has the package \subfigure included, thus I cannot use for example \subcaption. If I use the following code: ...
2
votes
1answer
782 views

Change subcaption label format

I need to have subcaption labels (and references) be of the format Fig. 1a Instead of the default "(a)", and be able to reference them with \cref Unfortunately, I can't seem to get any subcaption ...
0
votes
1answer
40 views

Two subfigures, two pages, tikz images

I have a large tikz flow diagram that spans multiple pages. I broke it up into an 'a' and 'b' figure. It would be nice if the caption would state 'Figure 1a:' and 'Figure 1b:' automatically (instead ...
1
vote
0answers
20 views

Reference to a subcaptionbox causes an error in htlatex

Here is the MWE: \documentclass[12pt]{article} \usepackage[compatibility=false]{caption} \usepackage{subcaption} \begin{document} Lorem ipsum dolor sit amet, consectetur ...
0
votes
1answer
25 views

Plotting subfigures side-by-side?

I am trying to plot two figures side by side and I simply can't find why my Output is stacking them on top of each other and not side by side. Any help would be greatly appreciated. \documentclass[...
1
vote
1answer
43 views

Combining figures and a table using subcaption

I am trying to combine three images and a table, such that i can use one caption for all of them. The goals is for them to be aligned such that they make a neat square. the code I used is: \...
0
votes
1answer
170 views

Place pictures and ref it without using subcaption

I am writing a paper using Springer LNCS format, which is incompatible with the package subcaption. It provides subfig package instead. I wish to achieve the following format (3-by-2, refer each one, ...
1
vote
1answer
28 views

Cannot align \subfigures to the center of page properly

I want to plot two graphs side by side using the \subcaption library. However, I'm having difficulty in adjusting the width of the floats which is causing them not to not be plotted side by side. \...
1
vote
0answers
28 views

Extracting height of minipage with subfloats inside

I am repeating an example shown previously in One figure having two columns of subfigures: the left column has one image and the right one has two images , but with the use of subcaption package. ...
0
votes
0answers
34 views

Single caption, double figure, figure notes, and left caption alignment

I am using this template to write an article. I have the following to produce a side-by-side figure. \documentclass[mnsc,nonblindrev]{informs3} \begin{document} \begin{figure}[ht] \begin{minipage}{....
4
votes
1answer
245 views

Hyperref not jumping to the appropriate location for memoir's subbottom

I'm trying to utilize native Memoir subbottom command. However, I'm unable to make hyperref links jump "to the picture", rather than "to the caption". Only links to (a) and (d) work as desired. \...
0
votes
1answer
30 views

Removing caption and subcaption from tikzposter

I am fairly new to the tikzposter class. I would like to have figures in a subfigure format but without any subcaptions (i.e. (a), (b), (c), etc.) and captions. Option 1: This gives me the right ...
1
vote
2answers
59 views

The document Class ''els-cas'' cannot not print subfigure

\documentclass[a4paper,fleqn]{cas-sc} \usepackage{booktabs,siunitx} \usepackage{subfigure} \usepackage{graphicx} \begin{figure}%[!htb] %\minipage{0.32\textwidth} \begin{subfigure}%[b]%{1\textwidth} ...
0
votes
1answer
253 views

Undefined control Sequence <argument> \@@magyar@captionfix [duplicate]

When I try to compile the following code in TexMaker I get the following error Undefined control Sequence @@magyar@captionfix. Does anyone know what is the solution to that? \documentclass{...
2
votes
1answer
146 views

Revtex 4.2 caption error

\documentclass[amssymb,aps,twocolumn,pra,nobibnotes,secnumarabic,prc]{revtex4-2} \usepackage{tabularx} \usepackage[labelformat=simple,caption=false]{subcaption} \renewcommand\thesubfigure{(\alph{...
0
votes
0answers
24 views

Large figure preceded by small text, small caption under figure, large caption on next page

I would like a large figure to be preceded by a bit of text, to be followed right below by "Figure X: (Caption next page)", and then have the large caption on top of the following page. Here is what ...

1 2 3 4 5 15