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

learn more… | top users | synonyms

69
votes
3answers
24k 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 ...
5
votes
2answers
3k 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 ...
8
votes
2answers
3k 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 ...
1
vote
2answers
146 views

Adjust link target for rotated two part figure

I want to place two pictures side by side as subfigures, rotated 90 degrees and those two pictuers filling a whole page. While this works from the looks I have some issues, with the hyperref package ...
9
votes
2answers
5k 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 ...
7
votes
1answer
292 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 ...
4
votes
1answer
146 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 ...
3
votes
1answer
106 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, ...
16
votes
1answer
13k 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} ...
4
votes
4answers
3k 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 : ...
5
votes
1answer
438 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 ...
5
votes
1answer
541 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 ...
4
votes
1answer
341 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} ...
12
votes
1answer
453 views

Are there any subfloat package that works with tufte-latex?

I'm trying a lot of subfloat-like packages with tufte-latex and all of them seem to interact badly with tufte-latex in the matter of labels, refs and captions. To captions I could find solutions ...
5
votes
1answer
4k views

Subfloat with subcaption package: Missing number, treated as zero

I want to make a figure consisting of two subfigures. Having read the Wikipedia subentry on subfloats, I tried to follow it exactly, so I did not use the subfig or subfigure package, only the caption ...
5
votes
1answer
768 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
1answer
497 views

How to automatically align subfloat captions to xlabel of PGFplots?

Subfloat captions are not usually aligned with their corresponding xlable in PGFplots. One way is to manually move the captions horizontally to align them. For example, (copied from here) ...
3
votes
2answers
2k views

Why do eps images overlap the captions in subfigures?

I'm using the package subcaption within an scrreprt compiling with XeTeX/XeLaTeX. When using subfigures for 4 images in a grid view, the images are not centered and overlap the middle subcaptions. It ...
2
votes
1answer
315 views

label in subcaption and customize cell size of an array

Using the following code \documentclass[11pt]{article} \usepackage{caption} \usepackage{subcaption} \DeclareCaptionSubType*[arabic]{table} \captionsetup[subtable]{labelformat=simple,labelsep=space} ...
1
vote
1answer
3k 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 ...
9
votes
2answers
8k 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 ...
8
votes
1answer
9k 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 ...
3
votes
1answer
4k views

How to prevent offset in subcaption / subfigure

I have the following problem trying to align two figures horizontally within the same figure environment. The right image is always put lower than the left image. Here is my code: \begin{figure} ...
12
votes
2answers
3k 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 ...
8
votes
2answers
226 views

Append \centering to \begin{subfigure} (from subcaption package)

How can I append \centering to \begin{subfigure} (from subcaption package)? I tried using the etoolbox , but for some reason it won't work for the subfigure enviroment (only working for the figure ...
6
votes
2answers
3k 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 ...
2
votes
2answers
1k views

subfigures using subfloatrow, overpic, tikz to add rows to annotate imported images/figures

I did my diligent search for a combination of subfloatrow, overpic, and adding arrows for annotation of imported images using tikz, but couldn't find one. These kind of images are typically found in ...
12
votes
1answer
380 views

Are subcaption and tabularx incompatible?

I know that tex.sx isn't the forum for bug-reporting, but I have a bit of a problem and I'm looking for a technical workaround. The following MWE produces odd labels: \documentclass{article} ...
10
votes
1answer
680 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 . . . . . . . . . . . . . . . . . . . . . ...
10
votes
1answer
537 views

nag l2tabu caption/label checking versus \subcaptionbox

The nag package used with the l2tabu option complains when \label is used in a float without following a \caption. Unfortunately, it does not understand that the first argument of \subcaptionbox from ...
8
votes
2answers
7k views

How to place subfigure caption on the side?

Is there some way to tell subfig package to place subfigure captions to the left or to the right of subfigures? There is sidecap package which does it for the main captions, but it does not affect ...
6
votes
3answers
330 views

Vertical alignment of subfigures of different horizontal length

I have four different tikzpictures merged in one single figure by means of the subcaption package and the \subfigure environment. However, the figures have different horizontal lengths, so I don't get ...
6
votes
1answer
1k views

Captioning nested subfigures with subcaption

The following creates a figure with three images arranged appropriately. If I remove the two \caption{} lines, it numbers the main subfigures as I'd like, and keeping the two \caption{} lines puts ...
5
votes
1answer
2k 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, ...
5
votes
1answer
3k views

LaTeX advanced use of subcaption package

I am trying to create a figure with subfigures aligned both horizontally and vertically in the same figure to explain this better i attached a primitive drawing. The labels are not of importance in ...
4
votes
1answer
503 views

custom sub-caption and refs format for subfigures

I've just read questions: Changing the subfigure caption by removing brackets & font of the subcaption Adding parentheses around subfig references How to put two images next to each other with ...
2
votes
1answer
1k views

Setting subcaption width for specific subcaptions

In the subfig packge, the command \captionsetup[subfigure]{width=<length>} can set the width of all subcaptions within a figure. How can the width of just a single subcaption in a figure be ...
8
votes
2answers
10k views

Missing number, treated as zero

A follow-up question to this one Aligning subcaptions with tikz pictures vertically This is the code I am using, worked to a pretty minimal scenario: \documentclass{article} \usepackage{float, ...
6
votes
1answer
786 views

Aligning subcaptions with tikz pictures vertically

A simple follow-up question to this one How to place and scale TikZ pictures in subfigure? I shamelessly copied the same code that was presented in the answer there because it fits my needs exactly as ...
5
votes
2answers
101 views

Problem with subcaptions in subtables

I am trying to implement a table with several subtables, but working with subcaption does not work neither when I try tabularx. This subtables have different number of columns. with the following code ...
5
votes
1answer
2k 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} ...
4
votes
1answer
69 views

How to swap subcaptions of zoomboxes?

I greatly appreciate the zoomboxes given in this question: How to create magnified subfigures and corresponding boxes for portions of a large image. As the comments thread is already long enough I ...
3
votes
1answer
3k views

Left-align captions with respect to subfigure

How do I left-align the captions on the subfigures below, so that the caption starts aligned with the left-hand edge of the corresponding subfigure? \documentclass{article} ...
3
votes
1answer
57 views

Add \centering to all subfigures in subcaption using \g@addto@macro

I'm trying to center subcaption subfigures as outlined this answer. However, compilation fails with ! Argument of \subcaption@minipage has an extra }. <inserted text> \par ...
3
votes
2answers
874 views

Prevent wrapping of subtable captions in lyx

Could someone provide me with an elegant solution to prevent wrapping of a table caption in lyx? It must wrap at the end of the line, not at the end of the table. %% LyX 1.6.7 created this file. ...
2
votes
1answer
1k views

subcaption: `caption' package not loaded

I am trying to use subfig in ACM class file, but it issues an error that 'caption' package not loaded. I downloaded the 1.3 version of caption (as suggested by ACM), but still the same. Here is the ...
2
votes
1answer
795 views

Error when trying to use the subcaption package

When I try to use the subcaption package (\usepackage{subcaption}), I get some errors. However, using the subfigure package (\usepackage{subfigure}), the compilation is successful with no errors. I ...
2
votes
2answers
2k views

Horizontally shifting subfloat captions in figure environement!

When using subfloat, the caption centers with regards to the figure width. However I want to center it with regards to the axes. How to horizontally shift the captions (manually) for all the ...
2
votes
2answers
291 views

Customize referencing of subcaptions in “memoir”?

When I use \subcaption{... \label{myfig}} in memoir, and then reference it, the result is something like "Figure 1(a)". But I would like to customize the reference by removing the parentheses, thus ...
2
votes
1answer
890 views

Center subfloat above extended subcaption in subfig package

In the subfig package, the command \captionsetup[subfigure]{width=<length>} extends the width of a subcaption. Now how can the subfloats be centered above their enlarged subcaptions? The ...