{subfloats} is about small "sub"-figures and "sub"-tables within a single (floating) figure or table environment. For questions specifically about formatting a subfloat's caption, consider to use {subcaption}.

learn more… | top users | synonyms (2)

2
votes
2answers
54 views

Multi-line alignment : two pictures on the first line, third picture on the second line in a square fashion

I have three picture to show, in three different aspect ratios, and I'd like to align them so that the two first have the same height on the first line and the third has the width of the two first, so ...
10
votes
2answers
4k views

Put subfigure labels inside figures using subfig package

I'd like to put subfigure labels (a), (b), etc., at the top left corner of subfigures like the following figure: I know there are some workarounds like this post (with stackengine) or this post ...
1
vote
1answer
44 views

Add titles for rows and columns in a subfloat

I have this 6x3 subfloats and I want to add vertical titles to each row of them and horizontal titles to each column.If anyone could please advise how this can be done. I also want to fit this figure ...
1
vote
1answer
26 views

Align Headers of subfloats correctly

I'm using the following code but the columns headers are not aligned in the center of the columns, so if anyone could please advise: \documentclass{report} \usepackage{mwe} \newlength{\tempheight} ...
3
votes
1answer
27 views

why subfigure doesn't occupy the full textwidth

I have 5 subfigures with width set to be 0.2 \textwidth, I want them to be in one row, but I have to set their width smaller than 0.2 to do that. Does anyone know the reason? Thank you!
2
votes
1answer
22 views

How can I customise the code for side-by-side subfigures so they can be adjusted up or down?

How can you move a subfigure up and down arbitrarily when using the code written here ? \documentclass{article} \usepackage{caption,subcaption} \usepackage{graphicx} \begin{document} ...
3
votes
2answers
35 views

How to create new subfloats?

Using \newfloat, new float environments can be created and as exemplified in this post, I created a new float called suppfig but I want to add subfigures in it. When I simply add subfigures inside it ...
2
votes
2answers
53 views

subfig vs exercise: LaTeX Error: Not in outer par mode

I'm able to use the subfig package in my documents, but not within an exercise environment: \documentclass{scrreprt} \usepackage{exercise} \usepackage[demo]{graphicx} \usepackage{subfig} ...
2
votes
0answers
30 views

Wrong caption using subfloat command

I am using the following: \documentclass[11pt,letterpaper,landscape]{article} \usepackage[utf8]{inputenc} \usepackage{epstopdf} \usepackage{amsmath,amsfonts,amssymb} \usepackage{mathtools} ...
1
vote
1answer
38 views

\subfloat adds padding on the left

I'm trying to put two page-width tables one on top of the other as follows: \begin{table*}[p] \centering \subfloat[caption1]{\resizebox{\linewidth}{!}{tab1}} \\ ...
2
votes
1answer
32 views

Subfloats don't have the same size

I have a 3x1 subfloats as shown below and the problem is that there is a slight difference in there size dimensions, and I'm asking how this can be fixed so that they have the same size? If anyone ...
0
votes
1answer
157 views

Tikz drawings side by side

I am trying to draw two figures (three, in fact, but even two is not working) side by side using TikZ. I added two TikZ drawings in matrix.tex using \newcommand and tried to add them in the main ...
2
votes
1answer
42 views

Top alignment of subfigure [duplicate]

For some reason I'm not able to have a top alignment of figures using subfigure and the environmental option [t]. I have search the internet for solutions and found them pretty complex for such a ...
0
votes
1answer
117 views

Can I add 3D objects as subfigures (using movie15)

I have faced one stiff problem that when I try to add four 3D plots (2 rows x 2 columns) in my beamer by using subfigure approach, I fail! This is my minimal example: \begin{frame} \begin{figure}[t] ...
1
vote
1answer
26 views

place colorbar in subfloat array

I have created a subfloat array that is showing different heatmaps that I generated using matlab. This works very well until I want to include a colorbar I generated with tikz. I know that my ...
3
votes
1answer
40 views

Horizontal space between subcaptions

I have the next graphic As you can see, the subcaption (b) is not centered from the corresponding subfigure like (a). If I increase the value for [.51\linewidth] unwanted things happen. I'm using ...
1
vote
1answer
48 views

Uneven spacing between subfigures on 2 different lines?

I'm trying to get 8 subfigures to stack on 2 lines so they match up vertically on the page. However, the top line seems evenly spaced across the page and the bottom line is evenly spaced but the gap ...
1
vote
1answer
16 views

Add Titles to only Rows using subfloat

Following the answer found in this question , I've tried to use the below code to add titles to only the rows, but what happens is that the title appears in a line then the picture in the line under ...
2
votes
1answer
47 views

Can I define a variable to scale with it several figures?

I have several pictures in my document, using the subfigure environment, the code is the following: \begin{subfigure}[b]{0.22\textwidth} \includegraphics[width=\textwidth]{pictures/...} ...
1
vote
1answer
14 views

Problem with subfig, ref and renewcommand

I have a problem with using the subfigure package and the corresponding references. I'm wirting my thesis and I want the Figure to be named like this \numberwithin{figure}{part} ...
1
vote
1answer
37 views

Add titles and remove numbering in subfloat

I have this 6x3 subfloats and I want to add vertical titles to each row of them and horizontal titles to each column. I also want to remove these (a) (b) (c) ... labels so that it's only the caption ...
0
votes
0answers
31 views

/textwidth error “missing number treated as zero”

I am having trouble with the subfigure command, \textwidth comes up with the error missing number treated as zero \documentclass[journal]{IEEEtran} ...
6
votes
1answer
47 views

Centering subfloat caption with subfig package

A footnote on page 12 of the subfig documentation says in part: Note that the ‘width’ may be larger than the width of the sub-float body, or equivalently, the ‘width’ may be negative to provide ...
3
votes
2answers
31 views

Subfigs captions beside images

I have this LaTeX code: \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure} \centering ...
8
votes
3answers
1k views

One caption in listoffigures for a ContinuedFloat

I am using the \ContinuedFloat command of the subfig package to print a series of figures in more than one page. I would like to have one caption in the List of Figures and "compress" the pages so ...
0
votes
0answers
33 views

How to generate these “subframes” in tex?

Below is a picture in a double-column paper. Essentially I want to generate a picture like this, putting my four figures into it. So here is my quick question, how to generate the "frame" structures ...
0
votes
0answers
20 views

Size subfigure in an input file

I'm writing a large report with several contributors and my plan was to decompose it in several tex files so we can work at the same time and include all of them in the end. This is what I'm doing ...
3
votes
1answer
33 views

Vertical alignment in subfigure

I have a problem with the vertical alignment of 3 elements in a subfigure: the 3 items are: a graph made by "tikzpicture", a table made by "tabular" and a normal static image. Here is the code: ...
1
vote
1answer
84 views

Multi-page subfigures using the subfigure package

I'm trying to create figure that contains many subfigures and I want it to span multiple pages. I'm using the subfigure package to create my figure: \usepackage{subfigure} \begin{figure}[!hbp] ...
81
votes
3answers
27k views

subcaption vs. subfig: Best package for referencing a subfigure

On this question, a comment by Martin H says: that one should forget about the subfigure and subfig packages and use subcaption. As subfig replaces subfigure, no argument there. I am currently using ...
24
votes
2answers
20k views

subfigure and subfig packages deprecated

I was using the subfigure package to align multiple small images in a document. However, WikiBooks states that "the subfigure and subfig packages are deprecated and shouldn't be used any more" ...
3
votes
1answer
55 views

Pdflatex on file with large amount of pictures

I have a tex file that's generated by an automated bioinformatics pipeline as a report. Usually, this is roughly 50-150 pages, but that's based on 1-3 samples. It contains many quality control graphs. ...
2
votes
1answer
78 views

Help with subfigure

Hi I would like to use \subfigure in order to have the a figure with 6 subfigures ordered as follows: where (a1) (a2) ... (c1) (c2) should be the figure name not the caption! (I forgot the ...
3
votes
1answer
25 views

Getting an error related to \prevdepth when using \caption on a figure with subfloats

I am writing a manuscript and I am using the subfloat package to include in a figure several figures, if I don't include a caption it compiles nicely, but when including the caption I get the error ! ...
2
votes
0answers
50 views

Merge two EPS Files into one

I want to use sub-figures in my paper. I have used subfig package in LaTeX and fig1a, fig1b as my sub-figures. However, the journal compiles the files itself and only accepts one file for each figure, ...
1
vote
1answer
43 views

Distributing images correctly

I'm writing this text, and I have some images which I would like to put in the text. I am using \usepackage{subfig} \usepackage{float} in my preamble, so I can force the figures to stay where I ...
1
vote
1answer
31 views

Why are subfigures stacked when I want them side-by-side?

I want two images side by side and I'm currently using the following code: \begin{figure}[!h] \centering \begin{subfigure}[t]{.45\textwidth} \centering ...
1
vote
1answer
32 views

I want to change the order of numbering for captions in subfigure

By default the rows are numbered and then it moves to next column like 1,2 3,4 but I want to number it as 1,3 2,4 viz., |Figure 1 | Figure 3 | |Figure 2 | Figure 4 | How to do it?
1
vote
1answer
61 views

How to add subfigures in a poster?

I am making a scientific poster in Latex. The code is working fine if I am working with single figures but as soon as I am adding subfigures (figures side by side), I am getting several errors at ...
2
votes
2answers
124 views

How to insert a main caption beside subfigures?

I have 3 subfigures that I insert at width=0.5\textwidth, which leaves some empty space. I would like to insert the main caption in this space. How can I do this? I am using subcaption package for ...
2
votes
1answer
56 views

Incompatibility issues within classicthesis

I'm using classicthesis.sty to write my master's thesis. In this style the tocloft is set up with the subfig package, which is now deprecated, so i'm using instead the subcaption package, the problem ...
1
vote
1answer
20 views

get the page horizontal and put 3x3 images

First, I used following: \usepackage{rotating} \usepackage{subfigure} .... \begin{sidewaysfigure} \subfigure[Title A]{\includegraphics[width=7cm]{figures/plot1a.png}} \subfigure[Title ...
1
vote
0answers
36 views

multiple graph in one figure

I cannot figure out which code am I typing wrong, I'd like to insert multiple graphs in one figure, each graph captioned a) b) c) etc.. Here is my document: \documentclass{article} ...
1
vote
1answer
36 views

How not to show caption of figure but only of subfigure in list of figures

I have a similar problem to How to change the display of subfigures in List of Figures?. I'm using the subcaption package. I dont need to show the caption of all figures but for some figures which ...
4
votes
2answers
124 views

Does subfigure package have a limit of subfigures within a figure?

I'm inserting plenty of subfigures within a figure, when I reach the letter "z" in the subfiures captions it won't compile any more, can please anybody confirm this? (Can't post a MWE as I don't ...
7
votes
2answers
7k views

Arranging multiple plots in a grid inside a figure/subfloat

I have a grid of pie charts which go into subfloats. The number is odd, and I would like to have them on a 3x2 grid, where the cell in the bottom left is empty. I have simulated this by putting an ...
2
votes
1answer
27 views

Grouping together two nested figures

I have two Figures made of 4 subfigures (2x2). They both look like this: \begin{figure}[htb!] \centering \begin{subfigure}[b]{0.24\textwidth} \centering ...
3
votes
2answers
3k views

“Environment subfigure undefined” on journal submission

I have a LaTeX file with packages \usepackage{amsmath,amssymb} \usepackage{graphicx} \usepackage[colorlinks=true,citecolor=black,linkcolor=black,urlcolor=blue]{hyperref} ...
5
votes
2answers
61 views

Placing of subfigures with different widths

MWE: \documentclass{scrbook} \usepackage[showframe]{geometry} \usepackage[draft]{graphicx} \usepackage{blindtext} \usepackage{subcaption} \begin{document} \begin{figure} ...
8
votes
2answers
91 views

Problem with subcaption spacing

When using the subcaption package to place tables1 side-by-side, the spacing between a table and its subtable caption is too small if the table caption is placed above the tables and the subtable ...