Questions tagged [subcaption]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
29 views

Table environment not working in report document class [on hold]

I am having an unexpected behaviour in a report document class. I have to use the table float: \documentclass[a4paper,12pt]{report} \usepackage{float} \usepackage{caption} \usepackage{subcaption} \...
0
votes
1answer
37 views

Extra unwanted gap in the sub-caption label

I was trying to put two images one next to the other, and then I noticed there was a big gap between the letters of the subcaptions inside the parenthesis(?)! Any idea how this can be avoided? \...
3
votes
2answers
131 views

Unable to place figures side by side using subcaption

I am fairly inexperienced in Overleaf and I want to place two figures side by side, I tried the subcaption package. Here is the part of the latex code I used for this \usepackage{caption} \...
1
vote
2answers
27 views

Subcaptions without subfigures

I'm laying out a document that includes images that are made up of a series of sub images and each image includes labels directly in the image itself. Here's an example ... Again, the above is not 6 ...
0
votes
1answer
12 views

hyperref to sublistings

I'm using the subcaption package to define sublistings that I can put in my listing float environments. The listing float is defined by minted. This has all been working well so far (see full code ...
1
vote
1answer
26 views

Captions without labels

I am using subcaption but even if I copy paste code from the intenet, the result for me has no sublabels (a), (b) etc. \documentclass[a4paper]{jpconf} \usepackage{graphicx} %\usepackage{subfigure} %\...
2
votes
1answer
37 views

Caption alignment, subfig and Babel

After many years of getting great answers here it is time to post my own question. I'm writing my thesis and as I need to write the abstract also in Hebrew I'm using the babel package. In the body of ...
0
votes
0answers
17 views

Reference multiple subfigures in one subref call

I am using \subref (provided by the subcaption package), and \subref{somelabel} works fine. I would like to reference multiple labels in the same call however, since I am using both parentheses and a ...
0
votes
2answers
33 views

memoir subcaptionphantom without whitespace

\subcaptionphantom is nice when the subfigures are marked on a single figure, but the subcaption package is not allowed at memoir's house today. Thus a solution was made: memoir label and ref ...
1
vote
1answer
35 views

Multiline subfigure caption cannot be shown fully

It's covered by the picture form the next line as shown below: I've tried to set subfigure with new width or new height, but the problem is still there. The environment of my latex is a template ...
4
votes
1answer
44 views

Caption alignment problems in minipages and subfigures

I failed to center all captions in each subfigure like this. Captions in the left part (four subfigures "A") are not at the center I think. Captions in the right part (four dependencies) are aligned ...
4
votes
1answer
49 views

Centering subcaptions in a tikz pgfplot subfigure environment?

I am having a difficult time centering subcaptions for a figure. The figure looks like the following: But as you can see, the Panel A and Panel B subcaption are nowhere near being centered with ...
1
vote
1answer
29 views

Placing 2x3 subfigures side-by-side in pgfplots

I need to place 3x2 subfigures side-by-side, but have not been able to come up with a solutions. The thing is, I've done this where I needed 2x1 figures side-by-side, that is, two figures side-by-side....
1
vote
1answer
40 views

Multiple Figures on sidewaysfigure with default numbering

I have two figures I would like to display in landscape on the same page. One is a normal figure, the other is made up of three subfigures. They are currently in subfigures, to ensure that they end ...
2
votes
1answer
82 views

A new and better aesthetic look for figures and captions with vertical braces

Starting for the question Center a rounded square into a green line with the excellent @marmot's answer, using your MWE, \documentclass[12pt]{book} \usepackage{newtxtext} %%\usepackage{classico}%%%%%...
0
votes
2answers
35 views

Subcaptions not centered for pgfplot

This is my first time working with side-by-side pgfplots, so I am a little out of my zone of comfort. However, I noticed that my subcaptions for each panel is not centered around the figure, as in: ...
1
vote
1answer
35 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 ...
2
votes
3answers
41 views

How to align content and captions differently in subfigure

I'm trying to use tikz to illustrate an iterative process in figures, but when placed next to each other, the different heights of the images cause the captions to become unaligned, as below: ...
3
votes
1answer
32 views

Subcaption + clevered range parentheses

I'm trying to have subcaption labels of the form (a), (b), etc. references of the form fig. 1(a), and ranges of the form figs. 1(a--c). I cannot seem to get the last requirement. Here's my MWE (...
1
vote
0answers
35 views

Centering caption in subfloat with a forced linebreak [duplicate]

I have a few subfloat captions that are too short to have an automatic linebreak, but I want to force one and still have centering among the lines: Basically I would like a and b to be like c ... ...
0
votes
0answers
35 views

What is \subcaption@CheckCompatibility and how to fix it [duplicate]

I write my thesis in TeXstudio and i use for package manager MiKTeX. In the text who i write I want to put two shapes side by side. I find a very good solution for that "application" the subfigure. I ...
1
vote
1answer
42 views

subfloat - enclose a set of subfloats in a subfloat environment

I am struggling in finding the correct implementation for putting my two rows of figures inside a subfloat environment. What I have now is the following: \documentclass[english]{article} \usepackage[...
0
votes
2answers
198 views

“\c@subfigure already defined” when using subfig and subcaption

The following is my thesis preamble: \documentclass[12pt,english]{article} \usepackage{subfig} \usepackage{graphicx} % for graphics \usepackage{subfigmat} %\usepackage[draft]{graphicx} % temporarily ...
1
vote
1answer
36 views

How to use \refstepcounter correctly in attempt to implement subfigures?

Trying to use space on a page more economically, I developed the idea to arrange graphics as a table being part of a figure. As I still wanted to refer to individual graphics, I also wanted to have ...
4
votes
1answer
96 views

A particular customize with green line and letters for subfloat

For my book, the MWE that it is adding below, is the cropping of a part of the code when I insert only two figures: \documentclass[12pt]{book} \usepackage{newtxtext} %%\usepackage{classico}%%%%%%%%% ...
1
vote
2answers
63 views

Compatibility of subfigure with subfig package

Suppose, I have the grouping of images as specified below. My problem is that I want to include this kind of image grouping in an environment that uses the subfig package and that subcaption and ...
1
vote
1answer
32 views

How to align three images on the same row with subcaption package [duplicate]

\usepackage{graphicx} \usepackage{subcaption} \begin{figure}[h!] \centering \begin{subfigure}[b]{.3\textwidth} \includegraphics[width=\textwidth]{nano1_Images/eclipsed_iron.png} ...
2
votes
1answer
44 views

How does one get the caption to over-print an image?

I'm preparing a manuscript for a journal where they tend to have the caption over-print on the image for subfigures to really squeeze out all the whitespace in these panels (Here's an example document,...
0
votes
2answers
54 views

New command based on \subfigure package

I tried to make a new command to insert photos, but it began to overwhelm me. I tried in three different ways and either I got an unintelligible mistake or it didn't work as it should. I present you ...
2
votes
2answers
66 views

Trying to use sub-figures in a column on a tikzposter

I'm trying to use sub-figures in a figure, within a block, that's in a column, on a tikzposter and instead of placing the figure and caption within the block they appear outside of it, in the middle ...
0
votes
0answers
34 views

Reducing width of image captions without messing up subcaptions

The captions in my document are as wide as the text itself and this can lead to parts where the caption seems to continue when in reality it's the document's text. So I wanted to reduce the width of ...
1
vote
1answer
50 views

Spacing between tikz subfigures and subcaptions

I'm having trouble reducing the size between the subcaptions and their figures when adding the figures through tikz. I tried a negative \vspace as well as setting (or changing?) the \captionsetup{skip=...
0
votes
0answers
56 views

Legend for tables

I am trying to generate tables similar to the one attached here. Basically, one main caption on the top, and some extra descriptions in the legend below the table. EDIT: Thank you for the comment. ...
1
vote
1answer
36 views

Insert multiple sub-captions (a,b,…) aligned below flowchart figure

I have a single figure representing the system transitioning between 5 states proceeding from left to right. I would like to add an aligned sub-caption below each state (a), (b), etc. Because the ...
2
votes
2answers
54 views

Error adding a figure with multiples subfigures

I would like to include a figure made by 2 or more subfigures. This is my code: \begin{figure}[ht] \centering \begin{subfigure}[b]{0.3\textwidth} \includegraphics[width=\textwidth]{.....
3
votes
1answer
74 views

minted environment inside subcaptionbox is not working

I've seen some similar questions here and here, but none mention the \subcaptionbox command. Here is my MWE: \documentclass{article} \usepackage{subcaption} \usepackage{minted} \begin{document} \...
2
votes
1answer
73 views

MacTeX / TeX Live 2018 older Caption package bundles don't work with beamer class unless updated

Good morning, I want to add the source to figures in my beamer document, so I found online people are doing: \usepackage{caption} \newcommand{\source}[1]{\caption*{Source: {#1}} } However, once I ...
2
votes
2answers
37 views

Tikzpicture shifts subfigure environment

I would like an axis drawn with TikZ in the corner of the image grid to see the increase in variables clearly. The MWE below results in Figure 1. I have tried putting a \linebreak in between \end{...
0
votes
1answer
72 views

how to index subtables as in number them as 1,2,3,…? [closed]

\documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} \usepackage{tabularx} \begin{document} \begin{table*}[h] \renewcommand{\arraystretch}{1.2} \begin{subtable}{0.22\textwidth}...
1
vote
3answers
111 views

Subfloat: How to align subcaption of image to same elevation as other subcaption?

Assumed we have two images with different heights. Both images are aligned to the top via valign=t. Minimum working example (MWE): \documentclass{article} \usepackage{subfig} \usepackage[export]{...
1
vote
1answer
46 views

How do I remove extra padding from drawing on a figure with tikz?

I am trying to draw over a figure using tikz, using a method for adding scalebars from this answer. The figures that are drawn over this way have extra padding around them (i.e. between the subfigures)...
0
votes
2answers
60 views

How to embed a subfigure inside another subfigure

I have multiple plots which I built using Tikz. I need to put all of them in the next configuration. Can anyone give me an idea of how to do it?
5
votes
1answer
128 views

Using subfigure and creating two rows of figures?

I am trying to get two rows with two figures in each row using subfigure, but I keep getting errors for this. \documentclass[demo]{article} % remove 'demo' option in real document \usepackage{...
0
votes
1answer
101 views

Using subfigures in a wrapfigure with proper captions

I am trying to create a wrapfigure that has two subfigures. Normally when I create subfigures, I use the following structure: \begin{figure}[h] \centering \begin{subfigure}{.5/textwidth} \...
0
votes
0answers
24 views

Incompatibility of 'subcaption' package with [hebrew]{babel}

I've come across a few posts now that try to deal with the issues bable has with Arabic and Hebrew and I know that the polyglossia package is recommended, however I am reluctant to rejig my entire ...
0
votes
2answers
47 views

Pictures on horizontal page in a 2x2 grid with equal distances between them and the margins

I would like to add four pictures with slightly different aspect ratios on two rows on one horizontal page so that the distances between each picture and to the outer margin of the page are equal or ...
2
votes
1answer
57 views

Figure and subfigures titles should be left justified

Could you please give me some advice about this situation? Thank you so much. I would like to move all the titles to the left. But if we want to draw the following figure with 2 subfigures then we ...
1
vote
0answers
111 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 ...
3
votes
1answer
149 views

2x2 figure and caption alignment: clash with packages subcaption, subfigure and subfigures

I am trying to align three figures and their three captions as the following 2x2 (four square) pattern: In order to solve this, I have the following code which works, but not in aesthetic appeal \...
0
votes
0answers
30 views

use of @subcaption and @subfig package

I am going to insert various figure by using subcaption but when i use \usepackage{subfig} or \usepackage{subcaption} the program doesn't run and give an error like subfig.sty not found. Please help ...