The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [subcaption]

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

Filter by
Sorted by
Tagged with
145
votes
3answers
68k views

subcaption vs. subfig: Best package for referencing a subfigure

On this question, a comment by Martin H says: that one should forget about the subfigure and subfig packages and use subcaption. As subfig replaces subfigure, no argument there. I am currently using ...
41
votes
1answer
57k views

Subcaption package: compatibility issue

There is a compatibility problem between the CIFA document class and the subcaption package. When I compile the following example (with PDFLaTex): \documentclass{cifa} \usepackage{subcaption} \...
10
votes
1answer
6k views

Changing the formatting of subcaption for reference

\usepackage{subcaption} \begin{figure}[t] \begin{subfigure}{1\linewidth} Figure1 \caption{Hello}~\label{fig:TBS} \end{subfigure} \begin{subfigure}{1\linewidth} Figure2 \...
12
votes
4answers
26k views

How to align multiple subfigures in a grid?

I have three images and I want to align them in the way that one image is above the other two. Here's an example: How can I achieve this? For my other figures I use the subcaption package, but I am ...
18
votes
2answers
15k views

Top-aligned subfigure with bottom-aligned caption

This is a follow-up to an earlier question regarding left-aligning subfigure captions. Having achieved the left-alignment goal, I would now like the caption of the subfigure to be bottom-aligned, ...
2
votes
1answer
1k views

subcaption: Calculating the Width

A friend writes his master thesis and asked me for help. He wants to use sub figures. "No problem" I said...two hours later here we are :) I thought that the subcaption package is the best suited for ...
5
votes
2answers
16k views

Table and Figure side-by-side with Table caption above, Figure caption below

A continuation of this question. I'm fighting a page-limit in a single-column layout and I need to put a Figure and a Table side-by-side and provide them with independent captions. However, the style ...
6
votes
1answer
5k views

Subcaption: Vertical alignment of two images of different vertical size

I want to place two images of different size next to each other. Both shall have individual subcaptions. Everything works fine. My only question is: how can I center the smaller image vertically with ...
2
votes
1answer
2k views

sidesubfloats… why does this errored code work and my “correct” code doesnt?

I use the following code to get a 3 x 3 figures with automated labels that range from a-i. As you can see there is an error in the code, I use sufloatrow instead of 'subfloatrow' a few times. However,...
21
votes
2answers
26k views

Subfig label positioning

Can anyone tell me how to change the horizontal position of subfigure labels? I have: \captionsetup[subfigure]{labelformat=simple,position=top} Is there something like: {position=topleft} to ...
9
votes
2answers
5k views

Align by the top borders of figures when using subcaption

I'm using the subcaptionpackage to have figures side-by-side. The problem is that the package aligns the figures to their subcaptions (should I be taking a hint for the package name?) rather than the ...
5
votes
3answers
11k views

Multiple captions under a single figure

I have a figure (lets say a picture of a couple ) for which I want two subcaptions (1 a that will be under the first half of the figure and will show the man and 1 b that will be under the second half ...
3
votes
1answer
7k views

Caption labelfont in uppercase, what am I doing wrong?

I'm trying to get the subcaptions and captions in sanserif font and Uppercased. According the manual of the caption package this should be possible in the following way.However, this doesnt seem to ...
28
votes
1answer
46k views

Referencing subfigures in main caption (with \subfloat and \subref)

I've used subfloat to include subfigures, with their relevant labels but with empty captions. what I'm going to do is to reference these figures with \subref in the main caption of the figure. But ...
24
votes
2answers
37k views

Multi-page Figure with subcaption package

I have a figure with subfigures defined using the subcaption package (*not the deprecated subfig or subfigure). I need the parent figure to span two pages with two subfigs on each page. I have ...
10
votes
3answers
23k views

subcaption package incompatible with memoir class?

When I try to compile a document with the memoir class and the subcaption package I get the following error: ! Package subcaption Error: This package can't be used in cooperation with the subfig ...
22
votes
1answer
21k views

Centering a subcaption

I have three figures that I want to place next to each other. That is fine. In addition, however, each subfigure has a caption on its own and the crucial thing with these is that I have to have two ...
6
votes
1answer
2k views

How can I vertically align subfigures of different size without affecting subcaptions?

Please consider the following MWE \documentclass{article} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering \begin{minipage}[c]{0.45\textwidth} \centering ...
12
votes
1answer
4k views

How to change the display of subfigures in List of Figures?

I'm using the subcaption package and I would like to change the display in the List of Figures of the subfigures. Right now, it displays as : 2.1 Caption 1 . . . . . . . . . . . . . . . . . . . . . ...
8
votes
2answers
5k views

memoir class with subcaption and hyperref packages

This is similar to this question about using subfigures in memoir class and this one about using subfigure memoir and hyperref together Is it possible to use memoir class with sucaption package? I ...
10
votes
3answers
2k views

Combining cleveref and subref

I recently switched to using cleveref in my latex document. However, I have one case I still don't quite get right (or maybe it is just not covered in cleveref): I use the subfigure-environment of ...
6
votes
1answer
842 views

conflict refcheck/subcaption packages for label with underscores

I found a conflict between the hyperref/subcaption/refcheck packages. I was using figures with subfigures and subcaptions, enabling the hyperref package for cross referencing in the document without ...
1
vote
1answer
6k views

\captionof{figure} starts with number 2 [duplicate]

Why does the caption start with number 2 and how to fix it? \documentclass{article} \usepackage{mwe} \usepackage{subcaption} \begin{document} \begin{center} \captionsetup{type=figure} \begin{...
5
votes
1answer
1k views

How to \ref to subcaption numbers (a, b) when using memoirs subcaptions?

How can I get references to subcaption numbers when using memoir? In this example: \documentclass{memoir} \newsubfloat{figure} \begin{document} \chapter{Lorem} \section{ipsum} \begin{figure}[b] \...
4
votes
2answers
2k views

Labeling subcaption

The reference to my sub caption doesn't work \documentclass{article} \usepackage{mwe} \usepackage{subcaption} \usepackage{cleveref} \begin{document} \section{Section} \begin{center} \captionsetup{...
3
votes
1answer
942 views

Put two figures side by side

There are already several threads that deal with this: they suggest having one figure and putting putting minipages inside, or using the subcaption package and having subfigure environments. However, ...
2
votes
2answers
3k views

Two tables side by side with minipage

I have a problem that I cant solve it alone even I have read several threads here. The goal is to have 2 tables side by side with subcaption (a) and (b). However, I dont know where my mistakes are, ...
2
votes
2answers
254 views

Display short title and long title (both) in a caption with subcaption

I am trying to use the tweak provided in Display short title and long title (both) in a caption? together with the subcaption package. Unfortunatelly it breaks: \documentclass{scrartcl} \usepackage{...
1
vote
2answers
125 views

Compatibility of subfigure with subfig package

Suppose, I have the grouping of images as specified below. My problem is that I want to include this kind of image grouping in an environment that uses the subfig package and that subcaption and ...
14
votes
2answers
67k views

Problem on subfigure 2X2

I try to put figures in 2X2, but they appear in 4 rows. \begin{figure*} \begin{minipage}{\textwidth} \centering \begin{subfigure}[b]{1\textwidth} \centering \includegraphics[scale=0.3]{images/...
11
votes
1answer
14k views

Subcaption: having two subfigures captions on the same line

In my document, the TikZ pictures have different bounding boxes so the two subfigures have staggered captions. \documentclass{article} \usepackage{standalone} \usepackage{subcaption} \begin{document} ...
15
votes
1answer
15k views

Subcaption with Beamer

I am trying to use subcaption with beamer, but I get a series of error messages concerning subcaption.sty when I attempt to do so. This doesn't happen in the article document class. Here is a MWE \...
6
votes
4answers
11k views

Multiple subfigures not appearing on the same line

Multiple figures under a single caption. I have tried a code to put two images in a together under a same caption. The subfigures do not appear on the same line. The code is : \documentclass{...
13
votes
1answer
23k views

Using subcaption package but subfigures end up stacked rather than side by side

I'm trying to put two jpegs side by side using the subcaption package, but the images are consistently stacking on top of each other rather than side by side. All the solutions I've found simply state ...
14
votes
1answer
4k views

Align top of images using subcaption

I'm trying to align the tops of two images using the subfigure environment from the subcaption package. Unless I'm misinterpreting the other questions, I believe I have read multiple questions asking ...
10
votes
3answers
5k views

Subcaption compatibility with ACM document class

I'm currently working on a paper for an ACM conference and they require me to use the sigplanconf.cls I want to use subcaption, but if I add \usepackage{caption} \usepackage{subcaption} then I get ...
8
votes
2answers
2k views

How can I have images that are side-by-side and have numbers attached to each one?

For example: *Image 1* *Image 2* *Image 3* (i) (ii) (iii) Figure n. Multiple images. (i) image at time n. (ii) Image at time n+1. (iii) Image at time n+2
6
votes
1answer
3k views

Subcaption vertical alignment

I'm displaying some figures with different bounding box. The figures seems to be bottom aligned, but I would like to have them vertically aligned. I though subcaption automatically take care of that, ...
5
votes
2answers
3k views

How to wrap text around a subfigure?

I would like to align 3 subfigures vertically (all on top of each other), and then have these on the right side of the page with text wrapping around them. I know how to use wrapfig for a single ...
5
votes
1answer
29k views

subcaption/subfigure not centered, and caption too narrow

I'm using the subcaption package to make some subfigures with subcaptions (clearly), in a two column document, specifically the IEEE Transactions journal document class. There are a lot of figures, ...
4
votes
1answer
727 views

missing sub-caption numbers with tufte-latex

Why are the numbers (acually, letters) for the sub-captions missing in the following MWE? note the colon that would follow the letter is printed. \documentclass{tufte-handout} \usepackage{tikz} \...
8
votes
1answer
7k views

Centering Subcaptions including a linebreak

I found an asnwered question concerning this topic already here: Centering a subcaption Copying \captionsetup[subfigure]{justification=centering} doesn't help me thought for I am using different ...
7
votes
1answer
5k views

Subcaption defaulting to capital letter labels?

I seem to be having a unique problem. There are many questions asking about how to change subcaption to a label with capital letters but for me my program is defaulting to capital letters when I would ...
5
votes
1answer
758 views

subcaption: how to redefine default separator between figure and subfigure number in \ref's?

I am migrating from subfig to subcaption package and wondering how to make the following thing. The subcaption labels in floats should look like a single italic letter in brackets (a), and \subref{f:a}...
5
votes
1answer
1k views

Multiply defined label warnings when using Subcaption in a Tikz picture

In an earlier question, I asked how to create zoomed highlights of a larger image automatically. User Jake provided an excellent solution using TikZ. However, when subcaptions and hyperref are added ...
5
votes
1answer
1k views

Caption above subtables with subcaption package breaks numbering of following table

I use the subcaption package to display multiple tables side by side. My document follows the convention of putting table captions above the table and I would like to keep this for the meta caption at ...
4
votes
1answer
777 views

RevTex4-1 caption behaviour for last line changed after customization, how to change it back?

I'm in the \begin{figure*} environment, with a few subfigure objects that have no captions. After \end{subfigure}, I'm currently using \caption[]{\small\justify blah blah blah} which produces the ...
3
votes
2answers
5k views

How to reduce caption font in \subcaption for a particular figure

How to reduce a font size of a particular figure in \subfigure environment in beamer. I know how to reduce the caption font globally \usepackage[font=small]{subcaption}, but I am looking for a font ...
3
votes
2answers
6k views

Subfigure arrangment with no caption with IEEE format

I have a little problem. I am trying to arrange to subfigures side by side (i.e. a graph and its legend) using the IEEE article format and I cannot remove the subcaption. I was using package ...
1
vote
1answer
42 views

Use tikz commands in caption

On a map I used different symbols to indicate different structures. I used this answer to draw on the screenshot of a map website. I defined three types of symbols: \tikzstyle{ARA} = [blue,regular ...