A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [subcaption]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
25 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 ...
0
votes
0answers
36 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
43 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
57 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
29 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
32 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
21 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
0answers
35 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
23 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
34 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
0answers
26 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} \...
4
votes
2answers
78 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
45 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
56 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
29 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
39 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
19 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
44 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
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
36 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
27 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
27 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
30 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
24 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 ...
2
votes
2answers
51 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
71 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
23 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 ...
0
votes
1answer
27 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
42 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
55 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
46 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
51 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
34 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
22 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
191 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
102 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, ...
0
votes
0answers
36 views

Sub captions and numbers for tikzpicture arranged using tabular

Trying to add caption and auto-number for each tikzpicture arranged using tabular. Following is my code. Tried 'captionof' method but didn't work. Seems the document class being used doesn't support '...
1
vote
1answer
38 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
21 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
46 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
24 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
38 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}...
3
votes
1answer
52 views

Alignment problem with subcaption

Is there a simple solution to alignment the subcaptions into the same level? \begin{figure}[H] \centering \begin{subfigure}[H]{0.3\textwidth} \centering \...
1
vote
1answer
20 views

Space between subcaptions

so there is a lot of topics with spaces between subcaptions and captions etc. but my problem is a bit different. I have two subfiugures and the text is so long that it fills the 0.5\linewidth that I ...
1
vote
1answer
78 views

Letters for figure captions

I would like to represent each figure with a letter caption. For the first row, all figures should have a caption of Figure 1(a), ... Figure 1(d), and Figure 2(a), ... Figure 2(d) for the second row. ...
1
vote
1answer
46 views

Multiple justified lines/paragraphs in subfloat caption with centering line if short

Having the following MWE: \documentclass{scrartcl} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} % \captionsetup[subfigure]{justification=centering} ...
2
votes
1answer
102 views

Table environment not working in report document class [closed]

I am having an unexpected behaviour in a report document class. I have to use the table float: \documentclass[a4paper,12pt]{report} \usepackage{float} \usepackage{caption} \usepackage{subcaption} \...
0
votes
1answer
45 views

Extra unwanted gap in the sub-caption label

I was trying to put two images one next to the other, and then I noticed there was a big gap between the letters of the subcaptions inside the parenthesis(?)! Any idea how this can be avoided? \...