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

learn more… | top users | synonyms

4
votes
0answers
162 views

Suppressed figure numbers in \subcaptionbox still increase figure counter

I want to suppress numbering in some figures. In single figures, the use of \caption* works fine - see first two pictures in MWE below. However, when I have two subfigures in a figure-environment (set ...
4
votes
1answer
61 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 ...
6
votes
3answers
185 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 ...
1
vote
0answers
516 views

IEEE template and caption=false option for subcaption package?

According to the IEEE transactions information (tar file here contains IEEEtran_HOWTO.pdf along with the class files) Axel Sommerfeldt’s modern and actively maintained subcaption.sty package [23] ...
1
vote
1answer
36 views

Subcaption label on the top and center

\begin{table}[H] \tiny \subfloat[A]{ \centering \begin{tabular}{l l l l} g1 & g2 & ex & Error Rate\\ \hline 0.001 & 0.001 & 0.001 & 0.331\\ 0.001 & 0.001 & 0.01 ...
1
vote
0answers
43 views

How to have the same visual effect of a figure in a non-floating environment

I have the following code: \begin{figure} \centering \subfloat[\footnotesize my_sub_caption1]{\includegraphics[width=0.45\linewidth]{images/my_image1}} \quad \subfloat[\footnotesize ...
4
votes
1answer
130 views

tikzscale not working with subcaptionbox?

I have some complicated tikz pictures that I don't want to manually resize (therefore tikzscale) - but putting several in a figure doesn't seem to work with \subcaptionbox. It does work with subfigure ...
5
votes
2answers
393 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, ...
3
votes
1answer
708 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} ...
6
votes
2answers
132 views

How to customize cleveref package macro to be consistent when multiple figure references are used in this case?

The cleveref package does a very nice job of sorting the labels of the many references for you (whatever they are) in their natural order. However, I was stumbled by a special case when I wanted to ...
3
votes
0answers
69 views

Tricky problem with sources in list of figures

I've a very tricky problem here: MWE: \documentclass[12pt,german]{article} \usepackage[demo]{graphicx} \usepackage{caption} \usepackage[list=true]{subcaption} \begin{document} \begin{figure} ...
2
votes
2answers
79 views

How to center align the below subfigure when it stands alone?

I have three subfigures as shown in the MWE below, I want to align the subfigure c in the center below the two upper figures, how to do that? \documentclass{scrartcl} \usepackage{caption} ...
0
votes
0answers
34 views

Adding captions to sub-figures [duplicate]

For the question here, how can we add captions to each sub-figure?
8
votes
2answers
161 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 ...
5
votes
2answers
2k views

Maximise vertical space between subfigures with \subcaption

I have 2 subfigures vertically arranged using the subcaption package. I can set the vertical space between the 2 to something specific (using \bigskip or \vspace), but I would like to put as much ...
3
votes
0answers
42 views

At what point of my input file is the subfig package loaded? [duplicate]

When trying to compile my report, I receive an error related to the subcaption package (which I load in my preamble): ! Package subcaption Error: This package can't be used in cooperation ...
3
votes
1answer
187 views

Align environment {amsmath} inside subfigure {subcaption} breaks figure numbering

When I put an equation in align environment into a subfigure, it breaks figure numbering. In the example below, the whole figure gets number 2, not 1 as I want. How do I fix it? \begin{figure} ...
3
votes
1answer
48 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 ...
5
votes
1answer
73 views

Alignment of captions in subcaption

I am using subcaption and want to have the following effect. I want the main figure to contain several subfigures. I want the subfigures to have captions that only come from the \caption{} tag, i.e. I ...
5
votes
2answers
216 views

Source of Image in List of Figures

I need to have my sources, for example from image files, in my list of figures. \documentclass[10pt,a4paper]{article} \usepackage[list=true]{subcaption} \usepackage{graphicx} \usepackage{tocloft} ...
3
votes
2answers
92 views

Stacking floats vertically

How do I stack say three floats on top of each other vertically such that the height of each plot is approximately the third of the text height of the page? (i.e. so they all fit including captions ...
3
votes
0answers
107 views

Using subcaption package with knitr

How can I use subcaption package in knitr, instead of the obsolete subfig and \subfloat? Or, maybe, specify additional options with fig.env = 'subfigure'? It needed something like this: ...
2
votes
1answer
572 views

How to change subcaption font size in Lyx?

I want to set the font for captions and sub-captions in my Lyx document to 'large'. There is no issues with changing size of captions, but I can't change sub-captions. Here are the preambles I try to ...
2
votes
0answers
116 views

Global caption issue with table when using subcaption package

Firstly I apologize if this had been answered before. I have tried looking for it anywhere but I couldn't find any solution. Anyway, I have a trouble with the caption of my table when I included the ...
1
vote
1answer
1k views

How to remove caption of some subfigures?

I have four figures and want to put them together as subfigures. However, I don't want the first one to have a caption. Can anybody figure it out please? Thank you in advance! \begin{figure}[t!] ...
2
votes
1answer
174 views

floatrow package, subfigures and cross referencing

I think the question has not been posted already. Here is my problem : I wanted several subfigures within one. I used "subcaption" package at first, as it's the newest. But it appeared that it's not ...
3
votes
1answer
466 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 ...
0
votes
1answer
66 views

positioning two subfigure properly

I am trying to use subfigure \documentclass[10pt,a4paper,xcolor=dvipsnames,xcolor=table]{beamer} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % PACKAGES \usepackage{ mathrsfs, ...
4
votes
1answer
385 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) ...
4
votes
2answers
845 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
2answers
3k views

File `subcaption.sty' not found. in texstudio

I'm using texstudio on linux for writing paper. the version is: TeXstudio 2.3 (SVN ??) Using Qt Version 4.8.4, compiled with Qt 4.8.0 Copyright (c) (original TexMaker) 2004-2010 by ...
8
votes
1answer
111 views

subcaption: remove page number from lof

I use the caption and subcaption package as shown in the example below: \documentclass{article} \usepackage{caption} \usepackage{subcaption} \captionsetup[subfigure]{list=true} \begin{document} ...
4
votes
2answers
146 views

Remove font styles in list of figures

together with latex i use the subcaption package for subfigures. I use different font styles (like italics, bold, sans serif) in the captions for certain terms. Those font styles are used in the list ...
1
vote
1answer
76 views

how to include subfigures in list of figures or sub tables in the list of tables

Currently, \listoffigures and \listoftables display only the root and not the sub parts. I there any way to make them display sub parts as well? I tried searching but found nothing that I can use ...
4
votes
2answers
145 views

Referencing to subfigures in main caption

I'm trying to reference to subfigures in the main caption of my figure. Unfortunately I'm only getting blanks, not even undefined referencing ??. What's going on? \documentclass{report} ...
5
votes
1answer
114 views

How to use subcaption with standalone

I tried to \input in my main document file a standalone section, which uses the subcaption package. The standalone file compiles just fine. But when I try to compile the main document I get an ...
2
votes
1answer
442 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 ...
1
vote
1answer
385 views

Subcaption cannot be found by MiKTeX package manager?

Even though I cannot find it with the pacakage manager, a file with \usepackage{subcaption} in preambles can be complied successfully. Besides, the command \begin{subfigure}...\end{subfigure} ...
3
votes
1answer
702 views

Subcaption Package Error

I'm having an issue compiling with the subcaption package. I'm starting to write my thesis, and I originally started a chapter with a separate document. This compiled fine and had the following ...
6
votes
1answer
80 views

how to suppress page number for subfigures in LOF?

I am using tocloft and subcaption package, and I would like to suppreess page numbers and dot line for subfigures in LOF. I know, if one uses tocloft and subfigure package, this can be done with the ...
1
vote
0answers
187 views

Caption package incompatibility with \@makecaption in custom report class [closed]

My university has a recommended thesis class based on the report class. Unfortunately, it is incompatible with the caption package; for example, when I include the subcaption package, I get the ...
5
votes
1answer
1k 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
2k views

Vertical alignment of subfigures with different subcaptions length

I would like to vertically align 3 subfigures (same size), but I don't manage to do so if the subcaptions have different lengths, like here: This is the code that generated the image: ...
3
votes
1answer
88 views

subcaption: the subcaption documentation doesn't say anything about a short caption

When using \subcaptionbox, can the optional short caption be used? By this I mean, \subcaptionbox[short]{long \label{}}{\includegraphics} There is nothing in the documentation that mention the ...
2
votes
2answers
905 views

Is it possible to use subcaption inside a minipage?

I have tried formulations of using subcaption inside minipage--subcaption and subcaptionbox. I have also look at some threads but couldn't find anything doing what I needed. Please note that this ...
4
votes
1answer
1k 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
462 views

Incompatibility problem of the packages subfig and subcaption [duplicate]

I want have three subfigures in a special order. One on the right, two on the left. Therefor I found a snippet here on StackExchange. Alone the snippet works fine, you can check this by comment out ...
1
vote
2answers
151 views

Why don't these figures align horizontally?

I am trying to use the subcaption package for horizontally aligning up some figures, and I did as the documentation instructs me to do, yet the result is these are vertically aligned. It really ...
3
votes
1answer
309 views

Layout issues when using `subcaption` together with `sidecap`

I am using the sidecap package for side captions. I also want to have subfigures (for example, three or four subfigures labeled with a), b), c) and d), respectively). When not using the SCfigure ...
5
votes
1answer
164 views

Change ref format for subfigures

I am using the captionand subcaption package with floatrow and would like to change how references with \ref are formated. First here is my captionsetup so far: \DeclareCaptionSubType[alph]{figure} ...