Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [subcaption]

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

0
votes
1answer
33 views

Subfigure range in caption with cleveref and besidecaption

I originally asked for a solution which would automatically give me the range of subfigures in a caption. Skillmon came up with something which did work with my original MWE, but which gives problems ...
4
votes
1answer
22 views

Using lstlisting in subfigure

I would like two side-by-side subfigures, both containing an lstlisting environment. The problem is that using it in the manner shown, I get a left margin from the listing that is redundant, and with ...
2
votes
2answers
45 views

Print subfigure range in caption

Consider the following MWE: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \usepackage{caption} \begin{document} \begin{figure} \subcaptionbox{\label{fig:img1}}{% \...
1
vote
1answer
24 views

Subcaption spacing inside node

I need to add a subcaption at the side of each plot within a \groupplots environment. After some searching I found this topic here on Tex.SE which shows how to add a subcaption to groupplots. I ...
3
votes
1answer
21 views

Three images on one line using subfigure

I'm trying to put 3 images into one figure on one line. I have done the following approach: \documentclass[sigconf]{acmart} \usepackage{subcaption} \begin{document} \begin{figure*} \begin{...
2
votes
0answers
29 views

Subcaption incompatible with babel-farsi

I am trying to use some farsi words in my text. I also have to use subcaption for my pics. But I am getting the following error: ! Package caption Error: The `subcaption' package does not work ...
0
votes
0answers
15 views

How to get small caption size and remove automatic numbering

Using the below code, I get the caption size as rather large and also get automatic alphabets, which I do not want. It can be seen from the image. My question is how do I get small captions which look ...
3
votes
1answer
30 views

Error while using quotes syntax with packages babel, subcaption, and tikz

While using quotes, I get the error ERROR: Argument of \language@active@arg" has an extra }. from \documentclass{article} \usepackage[spanish]{babel} \usepackage{subcaption} \usepackage{tikz} \...
0
votes
0answers
23 views

Minimize the column layout

Using the below code I get a layout with 3 columns and 4 rows. I want to get something like 2 columns (same rows) on the same width and somewhat large caption size which does not expand to another ...
0
votes
1answer
31 views

Pgfplotstableset, longtable and subcaption

I am using pgfplotstableset and longtable to read data from a file and format it into a table composed of several subtables. I have managed to create the table and to include a caption over it. ...
2
votes
2answers
41 views

How can I format 8 subfigures to have a single legend to the right of the page?

My code produces a figure which looks like this: How can I make it look like this: (which I have produced using paint.) The code \usepackage{graphicx} \usepackage{subcaption} \begin{document} \...
1
vote
1answer
73 views

Error using pdfx package with subcaption package (introduced by the chkfloat package)

I am using pdfx with the a-1b option to comply with my university's requirements for PhD thesis. According to the pdfx package's documentation, this package must be loaded first. However, this ...
2
votes
3answers
51 views

Complex subfigure grid

I would like to arrange four subfigures into a 2-by-2 grid, where the grid element heights vary; something like this: |------| |----------| |------| |----------| |------| |----------| |------| ...
1
vote
1answer
34 views

Shows figures on the right side

I added figures to my latex file and for some reason, it shows them on the right side instead of in the center. How can I fix it? \begin{figure} \centering \subcaptionbox{A Constant Rectangle\label{...
1
vote
1answer
30 views

How to change sub-caption to small font from capital letters?

I used \usepackage{caption} and \usepackage{subcaption} respectively for the captions. now when i generated the pdf i get the subcaption as (A),(B),(C) . I need all of them in small letters like ...
0
votes
0answers
30 views

Subfigures and subtables

If there any package which allows us to include both subfigures and subtables. (\usepackage{subcaption} does not go with \usepackage{subfig}). I need to have both subfigures and subtables in my ...
1
vote
2answers
50 views

Subcaptionbox in tabu: wrong numbering of subfigures

I'm am using the tabu environment inside figures to have some nice alignment for multi-panel figures. However, this seems to give me some problems with the numbering of the subfigures (the numbering ...
0
votes
1answer
33 views

Subfig: Color for numerates and line breaks in caption (beamer)

Before my subfig caption, Latex automatically put (a) (b) in front and color are in blue. Anyway to change the color of (a) and (b) to black? Also, is there a way to enter line breaks in the ...
1
vote
1answer
28 views

Align captions for unequal sized figures with subcaption package

I have two figures of unequal size (figure 1 is wider and shorter), and I would like to centre-align the two subfigures vertically, but keep the subcaptions aligned at the top (please see attached ...
2
votes
1answer
32 views

subfloat - issues with the subcaption

I am new at LaTeX and I have been some problems with the subcaption text, since I have to put five images in a singe row. I have the follow code for this: \documentclass{article} \usepackage[utf8]{...
0
votes
2answers
53 views

ContinuedFloat not working - ShareLatex

I'm using ShareLatex to write my thesis and right now I need 16 images divided by 3 pages with the same caption. The images should be on pairs of two for being able to compare. I don't want any ...
1
vote
1answer
52 views

Caption does not fill the whole column

I am using the ReVTeX 4.1 template (for AIP journals), and while I was trying to add figures I noticed that the caption does not fill the whole column. Is there a way to make caption fill the lines (...
0
votes
0answers
61 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. \...
2
votes
1answer
28 views

Interference of \addtokomafont and subcaption

Dear stackexchange users, the document \documentclass{scrartcl} \addtokomafont{captionlabel}{\textbf} \usepackage{subcaption} \begin{document} \begin{figure} \caption{test} \end{figure} \end{...
2
votes
1answer
38 views

PGFplots: Assigning subcaptions to the grouped plots

This is a follow-up question about this answer, where I would like to get the same output using the conventional article class and edit the printed cross-reference text such that, for example, I would ...
0
votes
1answer
53 views

Error using \usepackage{subcaption} in LaTeX document

Right now, I am writing my bachelor thesis and using LaTeX for the first time, using the template made available at https://www.overleaf.com/read/jtsdtwkcjcyq . I am writing the results as I am ...
1
vote
1answer
27 views

Figures in (3*2) pattern with labels in a particular manner

I need figures along with the labels in the following manner (a) (d) (b) (e) (c) (f) How to achieve this? Normally the figures are labelled from left to right and then vertically down and so ...
3
votes
1answer
18 views

subcaption is broken by \makebox?

I tried following this answer to get my subfigures to fit ignoring margins, but as soon as I add the \makebox call, several errors are returned relating to what look like commands internal to packages ...
0
votes
2answers
95 views

How to align subfigures of different heights in the same row

The following code: \documentclass[journal,twocolumn,10pt]{IEEEtran} \usepackage[compress]{cite} \usepackage{times} % Font Times New Roman throughout the document \usepackage{subfigure} \usepackage{...
1
vote
1answer
37 views

caption not centered for subfigure

I have three plots which I want to display one after the other. It displays fine but the only problem I have is the captions are not centered. the subcaptions are more obvious after rendering the ...
0
votes
1answer
57 views

How to place and space captions of subfigures

I have the following code: \documentclass[journal,twocolumn,10pt]{IEEEtran} \usepackage{subfigure} \usepackage{mathtools} \begin{document} \begin{figure}[t] \centering \subfigure[Line]{\centering ...
0
votes
0answers
28 views

\begin{subfigure} & \captionof: Main figure counter incremented twice per figure [duplicate]

Problem statement I like to use the \begin{subfigure} environment from \usepackage{subcaption} in combination with the \captionof command. This works in principle, but it seems that the particular ...
1
vote
1answer
63 views

How to align image caption of two parallel images?

\documentclass[\classfontsize,\papersize,twoside,showtrims,extrafontsizes]{memoir} \usepackage{graphicx, caption, subcaption} \begin{figure}[h] \centering \begin{minipage}[b]{0.49\textwidth} \...
0
votes
2answers
46 views

Aligned subcaptions: Two small stacked pics left to a large pic

There are already a few questions regarding this layout: How do I do complex positioning of my subfigures? Is the following layout possible with the subfigure package? Sub-figures of different sizes ...
1
vote
0answers
27 views

Why I can't put subfigure side by side? [closed]

I'm using subcaption package to make subfigures side by side but it doesn't work. One figure is on the top of the other. Could anyone help? \begin{figure}[H] \centering \begin{subfigure}[b]{0.4\...
2
votes
1answer
29 views

Bounding boxes for each column of a 2-column algorithm & align them flush with page margins

I have two sub-algorithms for side-by-side placement using the algpseudocode layout from the algorithmicx package. Since each sub-algorithm needs to be individually referred in text, I chose the ...
2
votes
1answer
23 views

Algorithmicx - caption alignment of 2-column sub-algorithms of different height

I have 2 sub-algorithms that need to be placed side-by-side (2 columns) using the algpseduocode layout from the algorithmicx package. Since I need to refer to each of them individually in the ...
1
vote
2answers
71 views

Problem with label and references and subfig/subcaption

Dear stackexchange users, I want to use subfigures in my document but the solution I got so far scrambles my ability to use labels and references in my documents. \documentclass{scrartcl} \...
4
votes
1answer
216 views

How to solve subcaption package compatibility issue when using babel package with arabic option?

I am trying to include some Arabic text but I am getting the following error: ! Package caption Error: The `subcaption' package does not work correctly (caption) in compatibility mode. ...
1
vote
4answers
105 views

Figure centering problem

I have following codes: \begin{figure}[h] \begin{subfigure}{0.3\linewidth} \centering \includegraphics[width=\textwidth, height=4 cm]{boat_gray_256.png} \centering \caption*{...
3
votes
1answer
75 views

acronym + subcaption: problems with acronyms in captions

I am trying to use the acronym package together with subcaption. However, even in figures where I am not using subcaptions, the acronyms don't work correctly. MWE: \documentclass[11pt]{report} \...
1
vote
2answers
34 views

'Referenced' subfigures gives arabic numerals in IEEE Trans.

I am using IEEE Trans template. I have inserted figures using subfig and everything looks fine. However, after looking closely into the text I see output like Fig VI-B, Fig V-Bb which appears very ...
0
votes
0answers
30 views

Errors showing 2x2 subfigures with subcaption [duplicate]

So I have been using the subcaption and caption packages and have followed numerous examples to try to fix my issue, but I can't figure out why this is still happening. Error is "Missing number, ...
4
votes
2answers
87 views

Latex counts a figure as two if it includes subfigures and the caption is above the figure

I have a strange bug where Latex does not continuously count figures. This bug appears only if the caption is above the figure and if the figure includes subfigures. The number of subfigures does not ...
1
vote
1answer
30 views

Subcaption - vertical alignment of vertically arranged subfigures relative to the right edge

I want to align two vertically arranged tikz plots relative to their right boundary. They both contain a coordinate system - e.g., a Bode diagram. Due to different y labels and ticks, they have ...
4
votes
1answer
30 views

How to customise subcaptions with `\documentclass{scrartcl}` that work inside no-float environments?

DISCLAIMER: Yesterday, I posted this question about subcaptions numbering. The question received an excellent answer that works perfect for \documentclass{article}, but that fails whenever using \...
1
vote
1answer
78 views

How to change subcaption numbering?

I'm currently using this code \documentclass{article} \usepackage{caption} \usepackage{subcaption} \usepackage{graphicx} \renewcommand{\thefigure}{\Roman{figure}} \captionsetup[figure]{labelsep=...
-1
votes
1answer
50 views

minipage subcaption text not working [closed]

I am writing my thesis in memoir class. The subcaption texts are not appearing under the minipage content. Its appearing when I am running the following code, but in my thesis the subcaption text are ...
1
vote
1answer
48 views

How can I place listing with backgroundcolor next to tikz picture with subcaptionbox?

I would like to place a listing next to a tikz picture so that the captions are vertically aligned on the same level. I found the \subcaptionbox command to be very helpful. However, the listing's ...
0
votes
1answer
30 views

\mathparpagebreakable with border and/or caption on each page?

I'm using the Ott tool and the ott-alt package for automatically generating and typesetting a large number of inference rules. Some sets are too large to fit on one page. The ott-alt package puts ...