Questions tagged [subcaption]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
52 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
0answers
18 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
87 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
27 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
1answer
24 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
63 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} \...
0
votes
0answers
49 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. ...
0
votes
1answer
35 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{...
1
vote
1answer
39 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 ...
1
vote
1answer
66 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 ...
3
votes
0answers
259 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 ...
0
votes
2answers
161 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 ...
4
votes
1answer
78 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 ...
2
votes
1answer
343 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 ...
1
vote
1answer
165 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
45 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
72 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
50 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
28 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
0answers
78 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
45 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} \...
4
votes
2answers
100 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{...
2
votes
2answers
252 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, ...
0
votes
1answer
2k 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: ...
0
votes
1answer
96 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]{...
0
votes
1answer
53 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
108 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
92 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
1answer
66 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
335 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: \...
1
vote
1answer
31 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
45 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
48 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}{....
0
votes
1answer
46 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 ...
3
votes
2answers
343 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} \...
2
votes
1answer
830 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
1answer
38 views

Figure preceded by small text, long caption on next page

I have a figure caption that is too long to fit in the same page of the image. I would like to precede the image with a little bit of text and start the next page by the caption, then followed by text ...
1
vote
1answer
305 views

How can I make a subcaptionbox label appear in front of an image?

This MWE: \documentclass{article} \usepackage[labelfont=bf,size=Large,position=top, skip=-10pt, justification=raggedright, singlelinecheck=false]{subcaption} \usepackage{graphicx} \begin{document} \...
4
votes
1answer
200 views

Aligning several columns of varied-height subfigures of subfigures

I'm attempting to align a 3-column x 2-row grid of figures, where the top row is aligned to the top and the bottom row to the bottom. I define the subfigures as columns so that caption numbering ...
1
vote
2answers
147 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
2answers
55 views

Tikz subfigures alignment

I created 5 figures and used subcaption package to align them. My hope is to put three figures in the above line, and the remaining two is the second line in the center. But the current one is, one ...
0
votes
0answers
89 views

Regarding incompatibility of the caption package with IEEEtran class

When trying to load the caption package with the IEEEtran class, I get the following warning Unsupported document class (or package) detected, usage of the caption package is not recommended. See ...
0
votes
0answers
40 views

How to include side-by-side pdf-images into pdfLatex environment (using subfloat)?

I have to include 10 pdf images within 2*5 or 5*2 size. We have tried using tabular and subfloat as shown below. displayed: MISSING $ INSERTED \usepackage{graphicx} \usepackage{subfig} \...
0
votes
1answer
588 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{...
4
votes
1answer
427 views

What is the difference between subfigure and subcaptionbox both from package subcaption?

I was recently searching for a way to place subfigures into one overall figure. As I found out, today we should make use of the subcaption package rather than usig subfig or something else. However, ...
1
vote
1answer
290 views

subtable alignment

I am struggling to align two tables using the subcaption package. I have seen answers to this question that rely on tabular* but my tables are produced by a stats software that convert regression ...
1
vote
0answers
29 views

How do I remove page numbers from a list of figures with subcaption and tables?

In subcaption: remove page number from lof, someone asks how to remove page numbers from the list of figures when using subcaption. This in itself works fine. However, when I generate a list of ...
1
vote
2answers
170 views

How set Sub captions horizontally?

I used vspace and hspace to align upper figures with the lowers manually, but upper sub captions do not move with the upper sub figures. What command i must use to locate upper sub captions canter of ...
0
votes
0answers
33 views

Subfigure Texmaker error

I have been using the subfigure package and all has been well despite reported depreciation problems. Recently however, while using my Texmaker IDE as usual, Latex reported an error that seems ...
1
vote
1answer
351 views

Error Message: “Missing number, treated as zero.”

searched a lot around to fix this issue, usually it only takes a few seconds but now I have no luck. LaTeX puts out this error message mentioned above, here's my code: \usepackage{caption, subcaption}...

1 2
3
4 5
17