Questions tagged [subcaption]

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

61 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
169 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} ...
3
votes
1answer
48 views

tikzpicture cannot draw in subfigure/subcaption/subfloat

I tried to place two tikzpictures in one figure as two subfigures, but the tikzpicture did not draw properly in subfigure. I have tried package subfig, subfigure, subcaption, they all failed. \...
3
votes
0answers
176 views

Memoir subbottom (and subtop) vertical alignment control

What is the way to control alignment of subfloats (by content or by subcaption)? Some memoir or \xpatchcmd hack maybe? MWE (slight modification of Hyperref not jumping to the appropriate location for ...
2
votes
0answers
614 views

Unwanted rotation of images

I have three images included with \subcaptionbox in a figure, but the problem is that I get one of the images, which is vertical, rotated 90° automatically and I don't want it. Is there any way I ...
2
votes
0answers
64 views

Subcaption incompatible with babel-farsi

I am trying to use some farsi words in my text. I also have to use subcaption for my pics. But I am getting the following error: ! Package caption Error: The `subcaption' package does not work ...
2
votes
0answers
340 views

How to get Subcaption outside float working for landscape tables?

I use the nice MWE displayed below to display a landscape table (found here: Tex: How to place table on new page.) I have one big table (that's why landscape) which I want to split across multiple ...
2
votes
0answers
580 views

subcaption package changing algorithm2e caption position

I have a project which makes use of the subcaption and algorithm2e packages. For whatever reason, the subcaption package is causing the captions in the algorithms to be misplaced. Here we have a MWE ...
2
votes
0answers
784 views

Vertically aligning figures on their center using subcaption package

Is there a way to make figures vertically align on their centers using the subcaption package? Currently I get the following result: The captions below them are vertically aligned on their tops. ...
2
votes
0answers
99 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 ...
1
vote
0answers
38 views

Reference to a subcaptionbox causes an error in htlatex

Here is the MWE: \documentclass[12pt]{article} \usepackage[compatibility=false]{caption} \usepackage{subcaption} \begin{document} Lorem ipsum dolor sit amet, consectetur ...
1
vote
0answers
37 views

Extracting height of minipage with subfloats inside

I am repeating an example shown previously in One figure having two columns of subfigures: the left column has one image and the right one has two images , but with the use of subcaption package. ...
1
vote
0answers
25 views

How do I remove page numbers from a list of figures with subcaption and tables?

In subcaption: remove page number from lof, someone asks how to remove page numbers from the list of figures when using subcaption. This in itself works fine. However, when I generate a list of ...
1
vote
0answers
32 views

subcaption adds horizontal space to newfloat

If anyone has a better idea to add captions to equations, this can be posted too. I'm trying to set equations with titles (therefore I defined a new float myfloat). Sometimes I want a few equations ...
1
vote
0answers
140 views

Spacing between subcaption and subfloat

I'm currently using the subcaption package to set up figures with subfloats. My current code is the following : \begin{figure} \centering \captionsetup{font=normalsize,justification=...
1
vote
0answers
2k views

Adding vertical distance between subfigure environments

When having subfigures not only horizontally but also vertically in a figure-environment, their subcaptions are placed very close to the below subfigure. Essentially because the subfigure-environments ...
1
vote
0answers
41 views

Overcoming interaction with H specifier while staying on subfig package

I know that from the float package and subfig you get a bad interaction with an H specifier. (see: Numbers keep continuing - Problem with subfig and ContinuedFloat) I tried to just add subcaption ...
1
vote
0answers
90 views

Why my figure isn't at top of the text?

I'm new in LaTeX and I'm trying to use the environments \subfigure and \subcaption. The two images inside the main image are OK, but the image containing the other two isn't in the correct position. ...
1
vote
0answers
84 views

add subcaptions in tabular

I want to have subcaption to the subfigures and one caption below the figure. How can I add it to my code? Code below is without any captions. The layout is: \documentclass[12pt, a4paper]{report} ...
1
vote
0answers
134 views

Caption alignment of grid subfigures

I have 5 images and I would like to display them in 2 rows (3x2). This is what I've done so far, \begin{figure}[h] \begin{tabular}{ccc} \subfloat[caption]{\includegraphics[width = 1.8in]{figures/...
1
vote
0answers
309 views

Replace subfigure indices with new ones

I have the following code: \documentclass[12pt,a4paper,twoside]{book} \usepackage{graphicx} \usepackage{subfigure} \begin{document} \begin{figure} \centering \subfigure { \includegraphics[...
1
vote
0answers
138 views

Using cleveref with 2 different styles

I like to style my \cref as following (Geophysical Prospecting): Type 1: Fig. 1, Fig. 1(a), Fig. 1(a,b), Figs 1 and 2 Type 2: (Fig. 1), (Fig. 1a), (Fig. 1a,b), (Figs 1 and 2) I have tried with \...
1
vote
0answers
104 views

How to adjust the spacing between figure and caption with Sidenotes and Subcaption package?

Can anybody help me to adjust the spacing between figure and caption within the sidenote package? I would like to have the same spacing like without \phantomsubcaption \documentclass[oneside]{scrbook}...
1
vote
0answers
80 views

Wrong caption using subfloat command

I am using the following: \documentclass[11pt,letterpaper,landscape]{article} \usepackage[utf8]{inputenc} \usepackage{epstopdf} \usepackage{amsmath,amsfonts,amssymb} \usepackage{mathtools} \...
1
vote
0answers
619 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 package)...
1
vote
0answers
89 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 my_sub_caption2]{\...
0
votes
0answers
8 views

Is there an easy way to use package 'subcaption' with SN journal style?

Is there an easy way to use package 'subcaption' with SN journal style? \documentclass[smallextended]{svjour3} % onecolumn (second format) \usepackage{subcaption} presents me with a message: ...
0
votes
0answers
12 views

Aligning subfigure captions using package subcaption

I have a problem on subfigure captions not being aligned due to the images' height being different. Using the following snippet: \usepackage{subcaption} \begin{figure} \begin{subfigure}{0.5\...
0
votes
0answers
17 views

White space inside the subfigure gets adjusted when I try to adjust the space outside the figure

I am writing an IEEE conference. I have adjusted the white space around single figures without any problem using the command: \setlength\belowcaptionskip{-15pt} However, when I tried to use the same ...
0
votes
1answer
27 views

Figure (composed of four subfigures) will not align

I am trying to center and decrease the space between four images that are all part of one figure. Commands like hspace and \captionsetup[sub]{skip=0mm} do nothing. Moving my center so it's below \...
0
votes
1answer
23 views

How to place two figures side by side with subcaption?

I am trying to display two figures next to each other with captions using subfigures but it keeps placing one under the other. Here is my code: \documentclass{article} \usepackage{graphicx} \...
0
votes
0answers
27 views

Easytable colors the whole table instead of item in enumerate

I can't solve this weird error: I have a table (easytable) and an enumerate, which I want side by side. In the first slide I want part of the table and the first item in color green. But the output ...
0
votes
0answers
20 views

How to customize spacing between subfigure and caption

I am currently working on my thesis. I struggle hard to get a figure to look like I want it to be. I do have a Figure with nested subfigures/subcaptions. I need a custom numbering for the captions, ...
0
votes
1answer
24 views

Subtables won't center within threeparttable

I try to center two subtables of which the second one has a tablenote to add which is why I am using a threeparttable. Unfortunately, I cannot get the second subtable centered on the page, it is ...
0
votes
0answers
24 views

Recommended spacing between the figure and caption

I am using a template based on Koma-script. The vertical spacing between any float object (table and figures) and the caption is very close (Idk the default value). Hence I would like to increase the ...
0
votes
1answer
35 views

Problem with subcaption package - undefined command

I am currently writing my own document class (which is very inspired by the book class) and I am facing a problem when using the caption and subcaption packages. Here's a part of my classemphasized ...
0
votes
1answer
16 views

Subcaption error

Im using TexStudio 2.12.22. When trying to make subfigures I get the following error: ! Illegal unit of measure (pt inserted). ! Missing number, treated as zero. to be read again> ...
0
votes
0answers
18 views

Aligning captions of different sized subfigures

I would like to make the captions of these subfigures align without changing the position of the images. Below is my script and the produced images: \begin{figure}[h] \centering \begin{...
0
votes
0answers
41 views

custom legend below figure

I have the following code and would like to set the legend below both subfigures in the centre. It would also be great to have subcaption (a) to be positioned horizontally with the corresponding pie. ...
0
votes
0answers
24 views

How to arrange 4 images with individual sizes in three rows using floatrow package?

I'm trying to get familiar with the package floatrow and have the following MWE. In the final solution, the images are Tikz/pgfplot graphics, and the width and height of each image is set individually....
0
votes
0answers
41 views

why added in \usepackage{subcaption} have error?

I could not figure out what is the reason the error when I added in \usepackage{subcaption} in my main.tex for Overleaf. Basically, I want to have sub figure for one of my figure My main.tex code: \...
0
votes
0answers
34 views

How to do subfigure top and bottom, and not left and right

How to have a code for subfigure (a) and (b) in same line, not right and left I had tried: \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage[utf8]{inputenc} \usepackage{...
0
votes
0answers
42 views

Package caption error when using rotating

When I try to include both \usepackage{rotating} and \usepackage{caption} or \usepackage{subcaption} in my preamble, I get the following error: Package caption Error: For a successful cooperation we ...
0
votes
1answer
50 views

Reduce padding before and after figure (with sub figures)

I have the following code to include two images in my document: \begin{figure}[!ht] \centering \begin{subfigure}[b]{1.0\textwidth} \centering \includegraphics[height=6.31cm]{...
0
votes
1answer
55 views

How to increase counter on nested subfigure environment?

I would like to add an automatic numbering of nested subfigure environments. I found the following answer, which shows how I can manually add an additional Arabic number to my subsubfigure, but I ...
0
votes
0answers
36 views

Single caption, double figure, figure notes, and left caption alignment

I am using this template to write an article. I have the following to produce a side-by-side figure. \documentclass[mnsc,nonblindrev]{informs3} \begin{document} \begin{figure}[ht] \begin{minipage}{....
0
votes
0answers
25 views

Large figure preceded by small text, small caption under figure, large caption on next page

I would like a large figure to be preceded by a bit of text, to be followed right below by "Figure X: (Caption next page)", and then have the large caption on top of the following page. Here is what ...
0
votes
0answers
58 views

Regarding incompatibility of the caption package with IEEEtran class

When trying to load the caption package with the IEEEtran class, I get the following warning Unsupported document class (or package) detected, usage of the caption package is not recommended. See ...
0
votes
0answers
23 views

How to include side-by-side pdf-images into pdfLatex environment (using subfloat)?

I have to include 10 pdf images within 2*5 or 5*2 size. We have tried using tabular and subfloat as shown below. displayed: MISSING $ INSERTED \usepackage{graphicx} \usepackage{subfig} \...
0
votes
0answers
36 views

Sub captions and numbers for tikzpicture arranged using tabular

Trying to add caption and auto-number for each tikzpicture arranged using tabular. Following is my code. Tried 'captionof' method but didn't work. Seems the document class being used doesn't support '...
0
votes
0answers
28 views

Subfigure Texmaker error

I have been using the subfigure package and all has been well despite reported depreciation problems. Recently however, while using my Texmaker IDE as usual, Latex reported an error that seems ...