Questions tagged [subcaption]
{subcaption} is a package for typesetting captions of {subfloats}.
909
questions
0
votes
0
answers
11
views
LaTeX script to tile mutiple images into a single figure
I'm looking to devise a way to tile multiple images into the single figure in LaTeX.
I currently have the code below which works when the images fit nicely into a grid
\documentclass[11pt]{article}
\...
1
vote
1
answer
26
views
Eliminating vertical spacing between subfigure rows
I'm trying to determine how to eliminate vertical spacing between the rows of a subfigure generated using the subcaption package.
Currently I have
\documentclass[11pt]{article}
\usepackage[utf8x]{...
0
votes
0
answers
30
views
Error while using Subcaption package
I am trying to use the subcaption package in my code but it throws errors. Here is the preamble of my code:
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[LGR,T1]{fontenc}
\usepackage[...
0
votes
1
answer
31
views
Side caption in place of one subfigure
I currently have the following code displaying 5 subfigures:
\documentclass{article}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{graphicx}
\begin{document}
\begin{figure*}[t]
\...
1
vote
2
answers
46
views
Vertical alignment with scaled Feynman diagrams
I'm doing a row of three Feynman diagrams made with tikz-feynman. I'm having some problems with alignments.
First, I use subcaptionbox to have a vertical alignment of the subcaptions (see here). ...
0
votes
0
answers
36
views
Package caption Warning: Unknown document class (or package), standard defaults will be used
I have used the following packages in my IEEEtran document class, but I am getting the above warning:
Package caption Warning: Unknown document class (or package), standard defaults will be used. See ...
0
votes
0
answers
16
views
User package subcaption is centering all my figure captions
I've been writing an article which includes a great deal of figures. In order to show more of them I imported the packages caption and subcaption. With these I managed to plot figures and subfigures, ...
1
vote
1
answer
30
views
Putting subfigures side by side using subcaption and caption package
I have the following piece of code:
\documentclass{article}
\usepackage{subcaption,caption}
\usepackag{graphicx}
\begin{document}
\begin{figure}[hbt!]
\centering
\begin{...
1
vote
1
answer
20
views
Subcaption label positions - unexpected behaviour with twoside report
I need to position subfigure labels on the top left of their respective figures. I can do this fine for a normal report, however if I change to a twosided report the labels are incorrect on even pages....
0
votes
1
answer
24
views
Place subcaption labels topright of subfigures using subcaption package
I am trying to place the subcaption labels at the topright corner of the subfigures, using the \subcaption package. I have sort of managed to do it with the margin setting, but I have a couple of ...
0
votes
0
answers
12
views
How can I mix arabic two counter styles in caption formatting? [duplicate]
I am hoping to mix two counter styles ( arabic numerals and lower case letters) for the caption formatting as shown in the subsequent exemple:
1
vote
1
answer
38
views
Center align captions for subfigures
I would like to center align the subcaptions w.r.t. to their corresponding subfigures, like this:
My current attempt make them left-aligned even though I have specified \centering in the ...
0
votes
1
answer
21
views
How can I move a figure "in a section"? [duplicate]
Actually I made a code, and I want to make my figures in (below) Introduction.
But the results is like this:
How can I make the figure in Introduction?? (Below the 1.Introducition)
\documentclass[...
0
votes
2
answers
31
views
Trying to place an image vertically above another in a two column document in latex
I am trying to get one tall image on the left with two smaller images next to it, one on top of the other. This is my code so far:
\begin{figure}[h]
\subcaptionbox*{First subfigure}[.45\linewidth]
...
1
vote
1
answer
48
views
The best way for putting pictures Side by side
I read similar questions and answers but unfortunately, I couldn't fix it.
I use subcaption package;
I know the subfigure is relatively old. I try to use subfig environment but I was not succeeded.
...
1
vote
1
answer
31
views
Controlling captions for subfigures
I want to move around the positions of subfigures as follows.
Move the Panel 3 figure below the Panel 2 figure;
Move the captions below the Panel 1 figure; and if possible
Align the subcaptions at ...
0
votes
1
answer
48
views
Error with packages \hyperref, \subfig and \subcaption
\documentclass{article}
\usepackage{blindtext}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\usepackage{siunitx}
\usepackage{caption}
\usepackage{...
1
vote
1
answer
30
views
Subfigure caption placement incorrect
No matter how many packages I remove, I can't seem to find out why the captions on my subfigures are being placed on top of the figures rather than below. I've stripped away everything in my document ...
1
vote
2
answers
28
views
Automatic subcaption listing
Imagine I have the following figure
\begin{figure}[H]
\begin{minipage}{0.45\linewidth}
\begin{subfigure}[b]{\textwidth}
\centering
\includegraphics[width=.7\linewidth]{example-image}
\...
0
votes
3
answers
47
views
How to make 1 figure with 4 subfigures containing matrices?
like in the title, but below is an image I want to restore in my LaTeX document.
This is what I tried:
\begin{figure}[h!]
\begin{subfigure}[b]{0.2\textwidth}
\begin{tabular}{|c|}
\hline
...
1
vote
2
answers
31
views
Add caption to figure in multicolumn
I need to add a caption to three images placed as follow:
I did it by adding the caption command as you can see in the following snippet, but it doesn't work:
\begin{figure*}[ht]
\begin{center}
$\...
0
votes
0
answers
36
views
Unusual Illegal unit of measure (pt inserted) in table involving tabular and subcaption
I have weird Illegal unit of measure (pt inserted) error that I cannot get rid off for some reason. The error occurs in tables that look like the one below (text details changed to xx). I haven't ...
0
votes
1
answer
34
views
Having problem with subfigures inside multicols environment
I am currently working on a document where a figure (with 2 sub-figures) has to be placed inside a 2-column environment like this-
.
I am using multicols package for creating the 2-column environment. ...
2
votes
3
answers
117
views
(Vertical) Alignment of caption when placing two tables beside each other
I followed the approach outlined in this answer to place two tables (and also figures and tables) beside each other.
Unfortunately if the height of one of the two floats is greater than the other one ...
1
vote
0
answers
18
views
Main figure label as prefix of subcaption
I have a figure with multiple large subfigures spanning multiple pages, following the syntax from this nicely written answer:
https://tex.stackexchange.com/a/278748
The figure and sub-figure captions ...
1
vote
1
answer
47
views
How can I make longtable in subtable?
How can I embed longtable in subtable?
If I use like this, longtable does not work.
\begin{subtable}{\linewidth}
\caption{aa}
\begin{longtable}[c]{@{}ccccccc@{}}
...
\end{longtable}
\end{subtable}
0
votes
1
answer
32
views
Subfigure - Centering not working
I'd like to include two images side by side, forcing them to stick to a height of 3cm. However, the following code achieves the side by side setting, but does not enforce the subfigures to be centered ...
0
votes
1
answer
31
views
How to align captions of the side-by-side subfigures by the bottom, but subfigures by the center?
I am trying to put three figures side-by-side. But they have different sizes. Here is the basic code
\documentclass[preprint]{elsarticle}
%\documentclass[<options>]{elsarticle}
\usepackage{...
0
votes
0
answers
24
views
Special arrangement of subfigures and captions
I need to arrange 2 subfigures with the corresponding captions with the special arrangement as follows. Thanks for your help!
1
vote
2
answers
35
views
2x2 unequal image placement, Subcaption. First two image are stacked horizontally. second two vertically, why?
I have 4 images of various sizes (attached herewith). I want to place them in a 2 x 2 grid. Their widths should be the same, roughly 0.5/textwidth. I have done the following:
'''
\documentclass[12pt,...
3
votes
1
answer
126
views
Display math in \savebox?
As per the title, I'm trying to utilize display math in a savebox to get the width of the display math:
\documentclass{minimal}
\newsavebox{\mybox}
\sbox{\mybox}{\[ 2 + 2 \]}
\begin{document}
\...
1
vote
1
answer
70
views
Latex/Kile - subfigure captions alignment/position and subfigure alignment/position
I'm new to Latex and I have problems with how to align captions and figures. I need all figures to be in line and all captions to be aligned left and right. Ive tried many things, read many things. ...
0
votes
1
answer
50
views
Moving subfloat captions vertically
How can I move the subcaptions of the subfloat vertically? My subfigures have a lot of white space and there appears a long white space between the subfigures and the subcaptions. So, I want to move ...
0
votes
0
answers
54
views
Caption inside table is not working
I am writing my thesis with a custom style provided by the institute. I had no problem until recently captions inside table stopped working.
It gets stranger; the latest version of my thesis stopped ...
1
vote
1
answer
20
views
first line of caption in minipage / subfigure not at same height although `[b]` argument is used
I modified the code of this question as follows:
\documentclass[11pt]{article}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[...
0
votes
0
answers
50
views
University dissertation package/cls table captions broken by subcaption and subfigure. How to fix?
I'm trying to write my dissertation, and I've run into an issue where the subcaption and subfig packages break the caption formatting for tables. For an example, the table number label shows up as,
&...
2
votes
1
answer
58
views
Place braces on subfigure intext reference (e.g. Fig. 1(a) instead of Fig. 1a )
I would like to reference a subfigure as "Fig. 3 (a)" using \ref{fig:figure3a} but instead I am getting "Fig. 3a". How would I add the braces to a subfigure reference?
Where the ...
2
votes
1
answer
45
views
\caption* command causes wrong reference in List of Figures for subfigures
I have created a custom \source command which places a second caption under a figure using the \caption* command (see Xavi's answer on this post). Also I have enabled the list option of the subcaption ...
0
votes
1
answer
95
views
sub sub figure frame or box in latex
I have two subfigures with common captions and the other two subfigures with common captions. I need something like the attached. where "abc" and "time(s)" are labels. Please help ...
1
vote
1
answer
31
views
How to caption multiple sub-tables contained in one table environment
So I have 4 tables side-by-side to each other, and I'd like to add a caption at the bottom to each one of them.
Whenever I try to add a caption it disrupts the alignment, and the tables go off to ...
0
votes
1
answer
82
views
PdfLaTex: Caption in Bold while Subcaption Not
When I'm using the template from Elsevier, I want to make the caption of the figure in bold while the subfigure does not (for instance "(a), (b), (c)" as the labels instead of "(a), (b),...
3
votes
3
answers
75
views
Figures side by side: captions and size problems
I'm quite new to Latex and I'm having some problems placing figures side by side. I want the first image to be shifted a bit on left side of the text as well as the second a little bit on the right, ...
0
votes
1
answer
196
views
Use subfigure environment of frontiers documentclass
I am trying to use the subfigure environment of the subcaption package in a paper for frontiers.
You may find the used template here.
The question of Problems with subcaption in frontiers ...
1
vote
4
answers
49
views
Spacing of align environment inside subfigure
I like to enclose two subfigures, which I use to display align environments side by side in a framebox. However, this leads to ugly padding at the top of the box.
A earlier post (Where does the space ...
1
vote
1
answer
37
views
How to use latex to achieve this effect, the number of subfig is shown in the figure
I want to achieve this kind of display effect, do you know how to achieve it?
1
vote
0
answers
24
views
How can I create a new environment that is the same as subfigures or subcaption
The first part of the question has an answer GRAPHIQUE ENVIRONMENT. I want to create the same environment as subfigures (called graphique for instance) to put photos side by side.
\documentclass{...
2
votes
0
answers
45
views
Alignment and numbering of equations interspersed with tables in the same float
I have a question regarding alignment and numbering of equations within a float, but with sub-tables between them.
The problem is that the second batch of equations start a new counter, instead of ...
4
votes
1
answer
44
views
position subcaption within `subfigure` at the top (inset)
I've asked a similar question but I did not realize that the question and solution relied on the caption being positioned at the bottom.
Consider the following example:
\documentclass{article}
\...
0
votes
0
answers
32
views
subcaption in standalone tikz/pgfplots
Consider the answer to the question asked here, in which referencing to the different plots of a groupplot is explained. As I usually create a standalone file for each of my figures, I would like to ...
0
votes
2
answers
66
views
How to set the label of each sub-figure in its correct position? [duplicate]
I want to insert the label of each sub-figure in its correct position.
Fig1:
Therefore, I want the label of the sub-figures to be the same as the fig.2, and the location of the caption to be the same ...