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}.

0
votes
2answers
18 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
16 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
1answer
13 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
35 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
25 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
24 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
1answer
27 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]{.....
0
votes
0answers
56 views

undefined control sequence begin document [on hold]

I tried to compile a very simple set of slides but I get the error "Undefined control sequence. \begin{document}" If I comment out the lines \usepackage{caption} \usepackage{subcaption} then ...
3
votes
1answer
21 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
46 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
30 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
57 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
49 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
36 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
33 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
56 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
46 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
20 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
43 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
42 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
55 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
43 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
25 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
19 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
42 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. ...
0
votes
1answer
51 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
51 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
85 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
68 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
31 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
41 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
56 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
38 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 ...
1
vote
2answers
47 views

vertical space is different between subfigures

I'm trying to add groups of subfigures like below, and LaTex is following. However, the second captions starts little below than others. How can I fix it? \documentclass[twocolumn]{article} \...
2
votes
2answers
45 views

Label for the subcaption containing square brackets isn't acting nicely in the figure caption

I often have to use "[" and "]" in various labels when cross-referencing items with formulas of inorganic complexes. Everything worked fine until I noticed a problem with \subref{...} of the ...
4
votes
1answer
35 views

inconsistent space between subfloats in subfloatrow

There is an inconsistent space between the second and third subfloat in subfloatrows. I don't understand where it comes from and how to remove it. (OMFSM, MWEs can take a really long time to assemble!)...
0
votes
1answer
81 views

Removing Trailing Dot in Figure Caption

How do I remove trailing dot in Figure Captions. I am getting Fig. 1.1. but I require it as Fig. 1.1 I have seeing solutions for other classes of document(Scrreport).I am using report class.
2
votes
1answer
58 views

Alignment of text in Fig footer

I want to align the fig footer text in figure caption to left in double column image. Use of following code giving center alignment. cta_author latex file is available at:CTA \documentclass{cta-...
0
votes
1answer
48 views

Consistent spacing between caption and TikZ and EPS figures

The problem I have is that spacing between a TikZ figure and its caption is bigger that between any other type of pictures and their spacing: Obviously, it can be solved by hardcoding \vspace{} or ...
2
votes
1answer
39 views

Setting up different font sizes for captions in each figure

I try to change font sizes od figures caption separately for some figures. I read that: Changing Figure caption text size. But using this solution sets it globally for whole document not for selected ...
0
votes
1answer
79 views

Responsive collage of pictures

I need to make a collage of picture responsive. Below my current MWE, I cannot use any environemnt but subcaption as this is the guideline of my university: \documentclass{article} \usepackage{...
1
vote
1answer
24 views

Aligning different sized images vertically with captions in a two-column environment

I am trying to to get the smaller images in the second row to center align with the bigger images in the first row: (this using MS word) I tried the following code: \begin{figure*}[h] \centering \...
3
votes
3answers
123 views

How to add subcaption to tikz

I need to place three tikz pictures side by side, and assign one caption to the triple and a subcaption to each tikz. I currently use subcaption package and it works well. However, I need migrate to ...
0
votes
1answer
79 views

\subcaption does not work

I am using the following code to list 3 figures in one line. It is working well and showing the figure if I remove the \subcaption for each figure. However, when I include the (\subcaption)s, it shows ...
1
vote
1answer
90 views

Package caption Error: No float type 'noticebox' defined

I took the NIPS 2018 paper template from here, which I can compile (via pdflatex). However, when I add this package (before \title): \usepackage{caption} I get the error: ! Package caption Error: ...
0
votes
1answer
65 views

Align figure and tables in subfigure environment

I am trying to put a table and a figure side by side with a subfigure environment. I followed some resources online and the most similar is the following: Join figure and table on the same page. In ...
2
votes
2answers
89 views

subcaption - How to use 'Figure x' instead of alphabet numbering?

My current table of images looks like: However, instead of (a), I'd like the caption to include 'Figure' and continue numbering from previous figures. How would I do this? A MWE: \documentclass{...
0
votes
1answer
19 views

Subcaption package make all captions centered

If i include subcaption package, all captions of figures are centered. But i want to make captions justified text. What should i do? P.S I insert image by \begin{figure} and \includegraphics and make ...
1
vote
1answer
167 views

Problem with babel package and subfigures

I have tried to change the language of my article by adding the following lines to the preamble: \usepackage[greek,english]{babel} \selectlanguage{greek} In most of the cases seems to work fine. But ...
0
votes
2answers
49 views

Grid of images with captions as column name

I am new to latex. I want to create exactly similar grid as shown in image below except I want 'ground truth', 'baseline' and 'proposed' text on top. Can I refer single images from grid elsewhere? I ...