Questions tagged [subcaption]

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

Filter by
Sorted by
Tagged with
1
vote
3answers
130 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
75 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
138 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
111 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
48 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
60 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
123 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
169 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 ...
1
vote
0answers
26 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
88 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
142 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
78 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
91 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
428 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 ...
5
votes
3answers
44 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
76 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 ...
1
vote
2answers
53 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
111 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
40 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
213 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
132 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
64 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
48 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
235 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
36 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
162 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
170 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
214 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: ...
1
vote
1answer
356 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
225 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
69 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
268 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
103 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
32 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
51 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
60 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
94 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
79 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
145 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
57 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 ...
3
votes
1answer
35 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} \...
1
vote
1answer
94 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
49 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
121 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
146 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
195 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{...