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

learn more… | top users | synonyms

0
votes
0answers
18 views

Figure with four subfigures using epslatex [duplicate]

I'm trying to make a figure with four epslatex subfigures. I found A.Elletts answer in Minipage with four figures - avoiding too much whitespace to be very helpful. However, it only deals with ...
1
vote
0answers
54 views

Trying to change from subfigure package to subcaption

I am working with a template that uses the package subfigure, as I understand that it is outdated (and also because I have problem understanding how to place to figures side by side using this ...
1
vote
1answer
30 views

How to direct all sub-captions of the subfigures in a central caption

Is there a way to direct all the \caption{}'s found within multiple nested subfigure environments within a central \begin{figure} environment given as \begin{figure} ... ...
4
votes
1answer
80 views

How to make the subtitle (a or b) of an image position correctly?

I want the following subtitles (a or b) to be shown correctly not like the current view as shown in the following image: Also how can I add more spacing between the two images? \begin{figure*}[htp] ...
7
votes
1answer
50 views

Label handling in a macro

I want to create an environment to easily list a bunch of subfigures with their explanations. But the explanations should appear only in the caption of the complete figure, instead of the subfigure's ...
2
votes
1answer
385 views

Subcaption package error, even without the use of the subfigure package

I have read countless instructions on how to use the subcaption package, and tried several examples. Each time I get two types of errors, which I will post further down. This is my premable: ...
8
votes
1answer
88 views

Two identical diagrams inserted with subcaption box come out at different scales

I have two diagrams that are 100% identical except for a red line in the other one. However, when they are included in a figure as two subfigures with subcapionbox, the one with the red line is ...
1
vote
1answer
109 views

floatrow + caption = odd behaviour + wrong figure numbers

Looking for means to control vertical alignment in subfigures, I decided to use floatrow package, but later found it behavior quite strange. The issue is with figure captions, which may disappear or ...
3
votes
1answer
88 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, ...
3
votes
1answer
107 views

3 subfigures in a row, different sizes. How to manually adjust the spaces in beween?

I want three subfigures to be shown next to each other so that the subcaptions of all three subfigures are equally 'wide'. I'm experiencing 2 problems. Since my middle subfigure is a lot smaller, ...
0
votes
1answer
59 views

What might cause crop and trim to behave differently in different contexts?

I have tried to get a MWE for my problem, but really it is more of a dual to an MWE, because it doesn't work where my actual code DOES work, but I don't understand why it should work. For instance, ...
0
votes
0answers
52 views

Subcaption, report, missing number and missing \endcsname errors

So, this is probably a redundant post, but I can't seem to find a solution to my problem. I have seen every post there is to see, search every wikipedia page, tried every example I could find, but ...
4
votes
1answer
58 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 ...
4
votes
1answer
52 views

subcaption: third figure breaks column

I would like to align one big image next to three different small ones with the help of the subcaption (wich is used in all the rest of my document). But I still don't get the posistions "right". The ...
2
votes
1answer
96 views

Listings float with sublistings

I want to have 2 listings side-by-side in a float environment with its own name (i.e. Listing 1 instead of Figure 1) and counter (so that I can have a separate listoflistings besides listoffigures). I ...
5
votes
1answer
172 views

How to make distance between captions of close pictures?

The captions between the pictures are too close to each other. How can I make some space between them, but do not move pictures itself? \documentclass{article} \usepackage{graphicx,subfigure} ...
1
vote
1answer
59 views

Subref with floatrow (without subcaption)

I have subfigures created with the floatrow package instead of the subcaption package. The latter is not loaded. \begin{figure}[htbp] \ffigbox[\FBwidth] {\begin{subfloatrow}[2] ...
0
votes
1answer
69 views

Are subcaption, cleveref and hyperref compatible? [duplicate]

I tried with this MWE: \documentclass{article} \usepackage{caption,subcaption} \usepackage{cleveref} \usepackage{hyperref} \begin{document} See \cref{subfig1}, \ref{subfig1} \begin{figure} ...
3
votes
1answer
88 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 ...
12
votes
2answers
164 views

Why does \label create an undesired white space after \phantomsubcaption?

Usually \label does not create any white spaces. However, It creates an white space when \label is used after \phantomsubcaption from subcaption package. Why? How can I get rid of this white space? ...
1
vote
3answers
73 views

How to add multiple images in one place using captions like Figure x. a, Figure x.b?

Is it possible to caption the two figures as Figure x.a, Figure x.b?
0
votes
0answers
16 views

Re: LaTeX - Subfloat caption apparently can't include optional arguments for citations? [duplicate]

I would be very grateful for any help with the following problem, as a LaTeX novice. I am trying to create two subfigures, each with their own captions, to include quotations with the optional ...
2
votes
0answers
32 views

autonum, subcaption and equations in floats

When compiling the document below (MiKTeX lualatex or pdflatex) latex seems to be stuck in an infinite loop. Removing either subcaption or autonum resolves the problem, but of course I'd like to use ...
2
votes
1answer
987 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 ...
4
votes
0answers
199 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
67 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
263 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
550 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
39 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
47 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
160 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
732 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
1k 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
152 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
73 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
90 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
175 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
216 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
51 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
76 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
248 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
93 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
122 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
702 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
133 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
207 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 ...