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

learn more… | top users | synonyms

5
votes
2answers
1k 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
3answers
262 views

How to place text and image above the exact subfigure?

I want to draw something like this: I am able to draw like this: This is the code for the same: \documentclass{article} \usepackage{tikz,subfig} \begin{document} \begin{figure} \centering ...
2
votes
2answers
836 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 ...
3
votes
1answer
359 views

Align plots in pgfplots

Can somebody help me? I try to align two plots horizontally in pgfplots! In the preamble I have: MWE* \documentclass[12pt]{article} \usepackage{pgfplots,subcaption} \pgfplotsset{ compat=1.7, ...
2
votes
1answer
221 views

Environment subfigure - what to do with whitespace

So I've made a block of figures using the subcaption package. It contains 5 images and follows the following layout: \begin{figure}[t] \begin{subfigure}[t]{0.3\textwidth} ...
3
votes
1answer
315 views

Alignment horizontal subcaption and TikZ

I have a problem with the alignment of 2 plots. The Problem is I want the captions to be horizontal aligned. Also the x-axis should be horizontal aligned! Is there a way to do that? ...
4
votes
1answer
469 views

Framebox and subfigure with dirtree package

I've integrated dirtree package in my manuscript but having issues with the following. Framebox: I consistently frame all figures in my manuscript using \framebox, however, applying this to dirtree ...
10
votes
1answer
387 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 . . . . . . . . . . . . . . . . . . . . . ...
2
votes
1answer
4k views

Problem installing subcaption package on texlive [closed]

I'm trying to install the subcaption package on TexLive installed on Ubuntu 11.10. When trying to build subcaption.sty, I found that I needed to first download or build several dependencies: ...
4
votes
1answer
169 views

Recreate position of subfigures in a table above figure caption

I need to recreate a particular style of captioning a "figure". Main characteristics of this style are: No subcaptions included in the subfigures. The position of the subfigures is recreated in a ...
2
votes
1answer
618 views

error float.sty line99

Well, here is my problem. My friends can compile this document. I can't, and I don't know why. The error is: File: "C:\Program Files\MikTex\tex\latex\float\float.sty Type: Error Line: Line99 ...
1
vote
0answers
1k views

Placing two figures side by side [duplicate]

Possible Duplicate: Two figures side by side Subfigures placed horizontally I want to place two figures side by side in my document. I am using the subcaption package and my code is as ...
3
votes
2answers
230 views

Presenting multiple figures in a proper and readable way under a same caption

I have 6 figures and I wanted to plot them in a proper way in a single page. It is important to remain readability. Moreover, including the sub-caption and sub-label is important. Possibly including a ...
7
votes
1answer
146 views

subcaption in LOF with hyperref

MWE: \documentclass{article} \usepackage{subcaption} \usepackage{hyperref} \begin{document} \listoffigures \begin{figure} \begin{subfigure}[b]{.5\linewidth} \centering\large A \caption{A ...
4
votes
4answers
2k 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 : ...
2
votes
1answer
153 views

Referencing Subfigure in Subfloat

I want to reference a subfigure like so: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure} \subfloat[A ...
12
votes
1answer
354 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 ...
3
votes
1answer
805 views

Subfigures side by side not working

I am trying to set two figures side by side while using the picture environment instead of includegraphics as shown in most examples here. Unfortunately they are displayed stacked and I do not know ...
6
votes
2answers
872 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
267 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
393 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
320 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
753 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
474 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
837 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
133 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
2k 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
2k 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
914 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
602 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
548 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
3k 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
329 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
283 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 ...
3
votes
1answer
5k 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 ...
7
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
253 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
3k 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
250 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
347 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
443 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
286 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
450 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
261 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
183 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} ...
11
votes
1answer
8k 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} ...