Questions tagged [subcaption]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
40 views

Use tikz commands in caption

On a map I used different symbols to indicate different structures. I used this answer to draw on the screenshot of a map website. I defined three types of symbols: \tikzstyle{ARA} = [blue,regular ...
14
votes
2answers
888 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? ...
13
votes
1answer
870 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 ...
6
votes
1answer
431 views

htlatex and subfigures

Is it possible to have htlatex generate side-by-side subfigures? The mwe tex file \documentclass{article} \ifdefined\HCode \usepackage[compatibility=false]{caption} \def\pgfsysdriver{pgfsys-tex4ht....
6
votes
1answer
3k views

How do I do complex positioning of my subfigures?

I'm writing my bachelors thesis, and I have som trouble positioning my subfigures. I have three figures in different sizes, and I would like to have an output like this: I tried typing the following ...
6
votes
2answers
8k 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
2answers
283 views

strange caption numbers in cross-references and list-of-figures

I am trying to fit a large figure containing four subfigures into my document. The whole thing is close to a page break, so I decided to split the figure via \ContinuedFloat. So just in case the ...
3
votes
2answers
564 views

How do I align both baseline and caption in a horizontal tikzpicture subcaption?

I have two tikzpictures next to each other and I want to align them with respect to a baseline, but also align the captions beneath. Originally, the figures were vertically centered, meaning that ...
2
votes
2answers
1k views

How to insert a main caption beside subfigures?

I have 3 subfigures that I insert at width=0.5\textwidth, which leaves some empty space. I would like to insert the main caption in this space. How can I do this? I am using subcaption package for ...
2
votes
1answer
1k views

Reference pgfplots' groupplot with subcaption

I created a groupplot with pgfplots. For referencing each plot I added a subcaption within a node into each plot. \documentclass{article} \usepackage{caption} \usepackage{subcaption} \usepackage{...
2
votes
1answer
496 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} \...
2
votes
2answers
4k 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
1k views

Subcaption package error: aastex61

I am trying to include subcaption package in the document class aastex61. Here are the relevant lines of my LaTeX source file \documentclass[twocolumn]{aastex61} \pdfoutput=1 %for arXiv submission \...
2
votes
1answer
448 views

Position of \caption gets counter incremented twice [duplicate]

So, this example was bugging me: \documentclass[12pt,a4paper,twoside,DIV=9,BCOR=2cm,openright,parskip=never]{scrbook} % \documentclass{article} % \usepackage{floatrow} \usepackage{subcaption} % \...
2
votes
2answers
276 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 ...
1
vote
2answers
734 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 ...
1
vote
1answer
120 views

Caption does not fill the whole column

I am using the ReVTeX 4.1 template (for AIP journals), and while I was trying to add figures I noticed that the caption does not fill the whole column. Is there a way to make caption fill the lines (...
14
votes
2answers
6k views

I get an error when using subfigure with memoir

I made an article and insert several subfigures in that as follows: \begin{figure} \centering \begin{subfigure}[b]{0.3\textwidth} \includegraphics[width=\textwidth]{fig6_1} ...
13
votes
1answer
18k views

Undefined control sequence at: “\begin{document}”

When trying to compile this document: \documentclass{article} \usepackage{hyperref} \usepackage{subcaption} \usepackage{svg} \begin{document} \end{document} I get the following error message: &...
24
votes
2answers
50k 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} \usepackage[...
4
votes
1answer
11k 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} ...
8
votes
2answers
8k views

Horizontally shifting subfloat captions in figure environment!

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 ...
8
votes
1answer
20k 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} \usepackage[draft]{...
5
votes
1answer
3k views

Sub-figures of different sizes grid layout

I have two subfigures that I want to align as such: But what I got is this with the codes below: \documentclass{book} \usepackage{subcaption} \usepackage{pdfpages} \begin{document} \begin{figure}[!...
4
votes
2answers
21k views

Multiple panel figure, with figures side by side

I'm trying to create a multiple panel figure and I want the figures to by side by side (thre are 3 so I want two of them to be side by side and the other one below the first one). However, I have ...
12
votes
2answers
14k 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 ...
10
votes
1answer
422 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} \...
8
votes
2answers
2k 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
1answer
1k views

Subcaption format with cleveref

I need to get Figure 1.1 (a) when i put \Cref{fig:NiceImage1}. I have to use \Cref{fig:NiceImage}\subref{fig:NiceImage1} for getting same result. \documentclass{scrbook} \usepackage[demo]{graphicx} \...
5
votes
2answers
1k 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} \...
4
votes
2answers
2k views

Is there a way to put subcaption labels on the side?

I need to save space in a document, and I would like to reduce the space on the figures. I'm using the subcaption package for subfigure. Is it possible to do something like shown in the figure with ...
4
votes
2answers
3k 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 ...
2
votes
1answer
8k views

Figure alignment using sub caption

I'm trying to align some figures using the subcaption package. My current code is that: \documentclass[11pt,twocolumn]{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \usepackage{...
14
votes
2answers
1k views

Vertically aligning minipages, subfigures, and subtables (not with baseline)

The goal My goal is to align side-by-side figures, tables, and text in minipages according to the top, middle and bottom of the largest such minipage. This makes it different (I believe) from the ...
12
votes
1answer
535 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
783 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
606 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 ...
8
votes
1answer
899 views

KOMA-Script and subcaption: wrong counting

I'm getting a to-me strange behavior when using scrartcl and subcaption. In particular, numbering is doubled for each table with the default option captions=tableheading. Here's an image (code at ...
7
votes
2answers
3k views

table rescaling and subcaption package

I am placing tables side-by-side using the subcaption package in the following way: \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} \usepackage{subcaption} \usepackage{tabularx} \...
7
votes
1answer
5k 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 ...
7
votes
1answer
2k 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 a) ...
6
votes
1answer
7k views

How to add left top-aligned letter to LaTeX subcaption figure?

I am using the subcaption package to place figures side-by-side, and I need to have labels in the form of letters to the top left of the figures. I.e. I am trying to achieve A [Figure] B [Figure] [...
6
votes
1answer
14k views

subfigure numbering in subfigure environment (subcaption package)

My new friend is the subfigure environment of the subcaption package. Although reading the manual by Axel Sommerfeldt i did not managed to change the subfigure numbering from lower case letters to ...
6
votes
1answer
4k 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 ...
5
votes
1answer
8k 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 ...
4
votes
1answer
6k 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
1answer
3k views

Texstudio \begin{subfigure} unrecognized command

I'm using the subcaption package to make subfigures in my document like so: \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure}[ht] \begin{subfigure}[b]{0.45\textwidth} ...
4
votes
1answer
129 views

How to evenly space subcaption - Use table?

I have a single image below and I would like to put a subcaption for each of the image in it. Only for the first row. The way I am doing it is not good because you can see that the subcaption for each ...
4
votes
1answer
530 views

How to solve subcaption package compatibility issue when using babel package with arabic option?

I am trying to include some Arabic text but I am getting the following error: ! Package caption Error: The `subcaption' package does not work correctly (caption) in compatibility mode. ...
3
votes
1answer
1k views

subfigure caption format differs for \captionof

When I place a subfigure caption using \captionof, the format differs from the one appearing when placed via \caption inside a subfigure environment. I suppose this is a bug in the \captionof command?...