Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [subcaption]

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

4
votes
1answer
40 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
42 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
21 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
24 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
75 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
30 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
32 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
38 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
29 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
29 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
40 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
113 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
35 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 ...
6
votes
1answer
91 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
36 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
25 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
38 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
42 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 ...
3
votes
2answers
40 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 ...
1
vote
0answers
32 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
46 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
40 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
30 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
42 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
45 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
63 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 ...
3
votes
2answers
36 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
67 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
78 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
40 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
43 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
99 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
81 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
23 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
44 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
49 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
68 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
106 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
28 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 ...
1
vote
0answers
20 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 ...
3
votes
1answer
59 views

Aligning multiple subfigures in figure

I'm using the chemfig package for some structural diagrams I'm preparing for a lab report, and I need to align five structural diagrams (with their own name captions) in a 2x3 column-and-row format. ...
1
vote
1answer
79 views

Subcaption environment failed. All figures containing a subfigure crashing all of a sudden

I am currently writing my thesis in LaTeX. Today, all of a sudden, LaTeX started crashing. All the figures which contain a subfigure (NOTE: I am using the subcaption package) started receiving the ...
0
votes
1answer
55 views

Avoid automatic centering of caption [duplicate]

I have in the LaTeX source file: \usepackage{subcaption} \captionsetup{compatibility=false} \begin{figure} \begin{subfigure}{0.50\textwidth} \includegraphics[width=0.95\linewidth]{...
1
vote
1answer
86 views

Entering subcaptions for figures without using subcaption environment

I'd like to realize this picture in LaTeX to show radiation of the dipole. I've already ask this question Radiation diagram. But, I need to have the caption for each diagram WITHOUT using \subcaption!...
2
votes
1answer
248 views

Two tables side by side without losing caption

I am trying to do two tables side by side. I have also benefited from the following thread, followed this answer and a couple of others. Two tables side by side with minipage My code is the ...
0
votes
0answers
40 views

Undefined control sequence error for \subref command used in svjour3 latex

I am trying to use the subfigure environment along with sub-reference using \subfloat and \subref command and have already installed and tried with the packages like \subfig, \subcaption, \float in ...
5
votes
3answers
42 views

Position of last subfigure differs within a figure

I want a number of graphs (in this example four) in one figure and try this with the following code: \usepackage{subcaption} \begin{figure}[h] \begin{subfigure}[b]{0.4\textwidth} \...
3
votes
1answer
68 views

How to center wide subfigures in classicthesis?

In a twosided ClassicThesis document, I want to put 2 TikZ pictures side by side, so that their total width is bigger than \textwidth. If I use KOMA's addmargin as described in this question, the ...
3
votes
1answer
42 views

How do I align the caption in a subfigure?

I have a figure which is composed of three subfigures. Two of them are expected to occupy the left side of the screen, while the last will be on the right side. I want the sub caption on the one to ...