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

learn more… | top users | synonyms

7
votes
3answers
1k 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 ...
4
votes
1answer
300 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} ...
5
votes
1answer
415 views

tufte-latex and subfloat positioning

I'd like to have two rows of top-aligned images, with top-aligned captions below each. This answer provides a technique using the floatrow package, but something in that package (or one of its ...
4
votes
1answer
333 views

grid of figures, caption to the left of each row

I think the title says it all: I took photos of 5 object from 3 different angles. So for each object there are 3 pics. I would like to display them so there's a row per each object, and in that row ...
1
vote
0answers
875 views

Trouble with subfloats/subcaption/subfigure [closed]

I compiled my tex file in Linux without any problems (text edior: Xemacs). I'm now running the file in TeXWorks with MikteX. I used the subfig package and the following worked perfectly: ...
6
votes
2answers
539 views

compare two diagrams side by side

I'm trying to compare two diagrams in pdf format side by side. I have this post - Two figures side by side to get some hint. This is the code that I'm coming up with. \begin{figure} ...
5
votes
1answer
2k 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 ...
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 ...
0
votes
1answer
142 views

Redefine \subref after redefinition of \ref

I have redefined \ref like this: \renewcommand{\ref}[1]{\autoref{#1}} so that I get "Figure nn" automatically by default. However, this makes \subref (from package subcaption) behave incorrectly. ...
3
votes
1answer
3k views

Command \c@subfigure already defined

when I try \usepackage{subcaption} immediately at the beginning of my document I get an error: Command \c@subfigure already defined What can I do?
6
votes
1answer
3k views

Using subcaption with graphicx: How to solve the “Missing number treated as zero” problem?

I'm trying to use the subcaption package to build composite figures. When I try to include an image using \includegraphics{}. I get the error beneath. I know this is very similar to Subfloat with ...
5
votes
1answer
1k views

margin caption and subfloat

I'm desperately trying to get a workable setup of margin caption and subfloats. I use mcaption for margin caption which provides an environment which one wraps the inner content of the float in. ...
5
votes
1answer
3k 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 ...
8
votes
1answer
732 views

Is there an incompatibility between the packages breqn and subcaption

When I try to typeset with both the packages subcaption and breqn, I get the following error: ! Package caption Error: The `subcaption' package does not work correctly(caption) in compatibility ...
4
votes
1answer
580 views

Caption centering does not work

I am using subcaption package to plot subfloats in my report. However, the caption for subfigures are not centered. Here is what I have done: \documentclass[10pt]{report} ...
8
votes
2answers
4k 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 ...
3
votes
1answer
3k 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} ...
6
votes
2answers
355 views

How to make “sub-level” numbering for listings, similar to subcaption?

I think what I'm trying to do may be complicated, so if not all of it is possible then that's OK. I'm using the listings package and I've done something similar to Custom numbering of listings ...
4
votes
1answer
299 views

Figure numbering IN figure

I'm using the subfig package which works like a charm. However, I only use the subfigure numbering (so no subcaptions, all the info will be in the main caption) but these are placed below the image ...
7
votes
1answer
7k 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 ...
8
votes
2answers
2k 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 ...
2
votes
0answers
264 views

Shifting the subcaption in subfigure [closed]

I have a subfigure in which I want to shift one of the figures to the left, but when I shift it the caption is in its place. what should I do? Here is what I have in latex: \begin{figure*}[ht] ...
4
votes
3answers
4k 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 ...
5
votes
1answer
4k views

Trouble with sub figures

I just started using a big template for a paper. With this template, if I \usepackage{subfig}, I get : Unsupported document class (or package) detected, (caption) usage of the caption package is not ...
1
vote
0answers
263 views

Subcaption with margin to the left only [closed]

I have a subfigure and I need to move its subcaption more to the middle of the subfigure. So I want to use something like \subfigcapmargin, but only with the margin on the left side, not on the right ...
12
votes
1answer
359 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
488 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 ...
2
votes
1answer
298 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} ...
5
votes
2answers
508 views

Use of subcaption in enumerate environment

This is a simple question. Say you were to place two (or more) related figures in an enumerate environment. Outside of an enumerate environment, which itself is a floating environment, you would ...
2
votes
2answers
277 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 ...
3
votes
1answer
187 views

hyperref causes a gap between the figure and subcaption with memoir

I'm experiencing a strange problem with memoir subfigure captions together with hyperref. Below is a working example: \documentclass{memoir} \usepackage{hyperref} \newsubfloat{figure} ...
13
votes
1answer
10k 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} ...
5
votes
1answer
690 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] ...
2
votes
1answer
5k views

\subfloat command from subcaption package doesn't produce bottom margin if used in table

I'm trying to typeset a table of images. If image inserted into cell with \subfloat (subcaption package included), resulting box will be w/o bottom margin, but top, left and right margins will be ok. ...
5
votes
1answer
405 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
489 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 ...
3
votes
2answers
411 views

How to hyperref a pageref in second half of an algorithm, independent of first half

I'm struggling with something that seems pretty complicated to me, but maybe there's a way better solution already out there. If not, I'd really appreciate any help with getting the following problem ...
2
votes
1answer
864 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 ...
2
votes
1answer
955 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 ...
4
votes
1answer
442 views

Empty caption of subfigure in memoir slightly misaligned

Consider the following minimal example meant to illustrate a single figure with a subfigure using the memoir documentclass: \documentclass{memoir} \newsubfloat{figure}% Allow for subfloats ...
2
votes
1answer
337 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. ...
7
votes
2answers
9k 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
720 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 ...
6
votes
2answers
2k 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 ...
4
votes
3answers
2k views

Nested subfloats with detailed caption control

I have four images, each with a corresponding magnified version of a small portion of it. I would like to arrange them so that the zoomed out versions are on one row side by side, and the ...
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 ...
1
vote
1answer
2k views

Subcaption: wrong subfigure labels

I am having a problem with \subcaption labeling subfigures (c) and (d) instead (a) and (b). I don't know where the problem originates from. I have many figures that contain two subfigures and most ...
63
votes
3answers
21k 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 ...
4
votes
1answer
767 views

Subcaptions for TikZ pictures

I'd like to put (sub)captions under the diagrams on the right hand side of the equation in the following code. For example, I'd like to label them (a) through (e). Thanks in advance for any help! ...
4
votes
2answers
614 views

Split one label into many and append with a, b, c, etc

I am making one table into two (or more) and would like them to have the same label number for these two tables, but append them with an "a" or "b" to differentiate them. Also, I would like to be able ...