Questions tagged [subcaption]

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

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

Aligning different sized images vertically with captions in a two-column environment

I am trying to to get the smaller images in the second row to center align with the bigger images in the first row: (this using MS word) I tried the following code: \begin{figure*}[h] \centering \...
4
votes
3answers
203 views

How to add subcaption to tikz

I need to place three tikz pictures side by side, and assign one caption to the triple and a subcaption to each tikz. I currently use subcaption package and it works well. However, I need migrate to ...
0
votes
1answer
250 views

\subcaption does not work

I am using the following code to list 3 figures in one line. It is working well and showing the figure if I remove the \subcaption for each figure. However, when I include the (\subcaption)s, it shows ...
1
vote
1answer
340 views

Package caption Error: No float type 'noticebox' defined

I took the NIPS 2018 paper template from here, which I can compile (via pdflatex). However, when I add this package (before \title): \usepackage{caption} I get the error: ! Package caption Error: ...
1
vote
1answer
585 views

Align figure and tables in subfigure environment

I am trying to put a table and a figure side by side with a subfigure environment. I followed some resources online and the most similar is the following: Join figure and table on the same page. In ...
2
votes
2answers
271 views

subcaption - How to use 'Figure x' instead of alphabet numbering?

My current table of images looks like: However, instead of (a), I'd like the caption to include 'Figure' and continue numbering from previous figures. How would I do this? A MWE: \documentclass{...
0
votes
1answer
92 views

Subcaption package make all captions centered

If i include subcaption package, all captions of figures are centered. But i want to make captions justified text. What should i do? P.S I insert image by \begin{figure} and \includegraphics and make ...
1
vote
1answer
342 views

Problem with babel package and subfigures

I have tried to change the language of my article by adding the following lines to the preamble: \usepackage[greek,english]{babel} \selectlanguage{greek} In most of the cases seems to work fine. But ...
0
votes
2answers
189 views

Grid of images with captions as column name

I am new to latex. I want to create exactly similar grid as shown in image below except I want 'ground truth', 'baseline' and 'proposed' text on top. Can I refer single images from grid elsewhere? I ...
1
vote
1answer
40 views

Subfigure caption for a non-float figure

Following the answer here (or here), I have an inline figure with four subfigures. I would like to add subcaptions for those, preferably with automatic labels, but since the figure isn't a float, ...
0
votes
1answer
61 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
88 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
114 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
89 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
283 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
59 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 ...
3
votes
1answer
38 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} \...
1
vote
1answer
118 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
56 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
129 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
182 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
214 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
239 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 ...
1
vote
2answers
144 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
55 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
48 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
215 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
173 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
155 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 (...
4
votes
1answer
224 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
43 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
60 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
154 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
31 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
102 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
103 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
336 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
161 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
47 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
249 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
255 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
93 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
78 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
91 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 ...
2
votes
2answers
2k 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
593 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
431 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
139 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
169 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 ...
4
votes
2answers
393 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 ...