Stack Exchange Network

Stack Exchange network consists of 174 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}.

2
votes
1answer
12 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
32 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
46 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
83 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
34 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
21 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
39 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
52 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
33 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
45 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
32 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
38 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
41 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
42 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
32 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
47 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
22 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
113 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
36 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
63 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
24 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 ...
0
votes
0answers
55 views

How to put images side by side using subcaption and caption packages?

I'm trying to put several images side by side. I've seen some examples (such as this) and the first image that I have is working correctly. The others are not and I can't understand why, since the ...
2
votes
2answers
52 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
17 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
137 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
34 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 ...
1
vote
1answer
23 views

Subfigure caption for a non-float figure

Following the answer here (or here), I have an inline figure with four subfigures. I would like to add subcaptions for those, preferably with automatic labels, but since the figure isn't a float, ...
0
votes
1answer
35 views

Subfigure range in caption with cleveref and besidecaption

I originally asked for a solution which would automatically give me the range of subfigures in a caption. Skillmon came up with something which did work with my original MWE, but which gives problems ...
4
votes
1answer
29 views

Using lstlisting in subfigure

I would like two side-by-side subfigures, both containing an lstlisting environment. The problem is that using it in the manner shown, I get a left margin from the listing that is redundant, and with ...
2
votes
2answers
56 views

Print subfigure range in caption

Consider the following MWE: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \usepackage{caption} \begin{document} \begin{figure} \subcaptionbox{\label{fig:img1}}{% \...
1
vote
1answer
41 views

Subcaption spacing inside node

I need to add a subcaption at the side of each plot within a \groupplots environment. After some searching I found this topic here on Tex.SE which shows how to add a subcaption to groupplots. I ...
3
votes
1answer
27 views

Three images on one line using subfigure

I'm trying to put 3 images into one figure on one line. I have done the following approach: \documentclass[sigconf]{acmart} \usepackage{subcaption} \begin{document} \begin{figure*} \begin{...
2
votes
0answers
41 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 ...
0
votes
0answers
17 views

How to get small caption size and remove automatic numbering

Using the below code, I get the caption size as rather large and also get automatic alphabets, which I do not want. It can be seen from the image. My question is how do I get small captions which look ...
3
votes
1answer
32 views

Error while using quotes syntax with packages babel, subcaption, and tikz

While using quotes, I get the error ERROR: Argument of \language@active@arg" has an extra }. from \documentclass{article} \usepackage[spanish]{babel} \usepackage{subcaption} \usepackage{tikz} \...
0
votes
0answers
23 views

Minimize the column layout

Using the below code I get a layout with 3 columns and 4 rows. I want to get something like 2 columns (same rows) on the same width and somewhat large caption size which does not expand to another ...
1
vote
1answer
56 views

Pgfplotstableset, longtable and subcaption

I am using pgfplotstableset and longtable to read data from a file and format it into a table composed of several subtables. I have managed to create the table and to include a caption over it. ...
2
votes
2answers
46 views

How can I format 8 subfigures to have a single legend to the right of the page?

My code produces a figure which looks like this: How can I make it look like this: (which I have produced using paint.) The code \usepackage{graphicx} \usepackage{subcaption} \begin{document} \...
1
vote
1answer
92 views

Error using pdfx package with subcaption package (introduced by the chkfloat package)

I am using pdfx with the a-1b option to comply with my university's requirements for PhD thesis. According to the pdfx package's documentation, this package must be loaded first. However, this ...
2
votes
3answers
81 views

Complex subfigure grid

I would like to arrange four subfigures into a 2-by-2 grid, where the grid element heights vary; something like this: |------| |----------| |------| |----------| |------| |----------| |------| ...
1
vote
1answer
101 views

Shows figures on the right side

I added figures to my latex file and for some reason, it shows them on the right side instead of in the center. How can I fix it? \begin{figure} \centering \subcaptionbox{A Constant Rectangle\label{...
1
vote
1answer
60 views

How to change sub-caption to small font from capital letters?

I used \usepackage{caption} and \usepackage{subcaption} respectively for the captions. now when i generated the pdf i get the subcaption as (A),(B),(C) . I need all of them in small letters like ...
0
votes
0answers
65 views

Subfigures and subtables

If there any package which allows us to include both subfigures and subtables. (\usepackage{subcaption} does not go with \usepackage{subfig}). I need to have both subfigures and subtables in my ...
1
vote
2answers
74 views

Subcaptionbox in tabu: wrong numbering of subfigures

I'm am using the tabu environment inside figures to have some nice alignment for multi-panel figures. However, this seems to give me some problems with the numbering of the subfigures (the numbering ...
0
votes
1answer
40 views

Subfig: Color for numerates and line breaks in caption (beamer)

Before my subfig caption, Latex automatically put (a) (b) in front and color are in blue. Anyway to change the color of (a) and (b) to black? Also, is there a way to enter line breaks in the ...
1
vote
1answer
30 views

Align captions for unequal sized figures with subcaption package

I have two figures of unequal size (figure 1 is wider and shorter), and I would like to centre-align the two subfigures vertically, but keep the subcaptions aligned at the top (please see attached ...
2
votes
1answer
39 views

subfloat - issues with the subcaption

I am new at LaTeX and I have been some problems with the subcaption text, since I have to put five images in a singe row. I have the follow code for this: \documentclass{article} \usepackage[utf8]{...
0
votes
2answers
76 views

ContinuedFloat not working - ShareLatex

I'm using ShareLatex to write my thesis and right now I need 16 images divided by 3 pages with the same caption. The images should be on pairs of two for being able to compare. I don't want any ...
1
vote
1answer
60 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 (...