{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)

72
votes
4answers
5k views

How to create magnified subfigures and corresponding boxes for portions of a large image

Updated Below I hope the title gets at what I'm trying to do. I have a large image for a thesis on an image processing topic, and I want show the large image, with zoomed in boxes (typically with the ...
63
votes
3answers
21k 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 ...
29
votes
4answers
14k views

Two figures side by side [duplicate]

How can I put two figures side-by-side? Not two sub-figures, but two actual figures with separate "Fig.: bla bla" captions. A figure is supposed to spread over the entire text width, but I have two ...
27
votes
2answers
10k views

What is the difference between \subfigure and \subfloat?

I've been just reading through this Latex wikibook and I spotted they advocate use of \subfloat in figures. I've always used \subfigure. What is the difference?
20
votes
2answers
18k views

Splitting subfigures across multiple pages — but programmatically!

I am using the subfig package to make many subfloats in a figure environment. It works well, as long as you realize that it tracks the whitespaces within the float environment. It also has an option ...
19
votes
2answers
4k 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" ...
15
votes
1answer
212 views

Strange behaviour of \sbox

This question consists of two related parts. I already solved the original problem but still don't understand where it came from or why the solution works. I use the subcaption package so I can place ...
14
votes
2answers
5k views

Caption of figure in marginpar and caption of wrapfigure in margin

I'm writing my master thesis and have run into trouble with the layout of captions in relation to the margins. I have two main questions: How can I make the caption text of an figure placed in a ...
14
votes
4answers
17k views

Reduction of Space between two Sub-figures

I want to reduce the space between two subfigures and use that space to make those subfigures large. How to do that? My code is as follows: \begin{figure}[htp] \centering ...
14
votes
3answers
3k views

Special arrangement of subfigures

I need an image with five subfigures arranged this way. I have tried to use subfig and floatrow, but I haven't been able to place the figures as I need them
14
votes
3answers
48k views

how to put subfigures in several rows

basically i need something like rowspan option in html table. I want that an figure 3 and figure 4 occupy three rows, I need a layout something like this: |figure 1 | figure 2 ...
13
votes
2answers
458 views

How to draw 3 figures and have them side by side while they're connected

I would like to have 3 figures side by side, as in one of my previous posts. However, this time isn't the same. I would like to link my figures as below: My problem is not only how to put my ...
13
votes
3answers
4k views

Vertically align subfloats at the top while having subcaptions vertically aligned below the subfloats

I have a float with two subfloats: I want the circles to be vertically aligned from their top such as in the following figure. But I don't want the subcaptions to be placed above the subfloats but ...
13
votes
1answer
3k views

How to align TikZ figures in subfigs

I use subfig to show an array of tikz figures. Unfortunately these figures are sometimes of different height, so they don't show up properly aligned: I'd like to see all nodes on the same line. I'm ...
13
votes
1answer
942 views

One figure having two columns of subfigures: the left column has one image and the right one has two images

I am trying to create a subfigure in LaTeX similar to this image: I want to have a figure which has two columns. The left column contains one image and the right columns has two images. In fact, ...
12
votes
1answer
3k views

Change format of reference to a subfigure

In my current document, I'm working with many subfigures. Normally, I like to refer to them using a style like Figure 1 b) where the space should be a halfspace, hence \, in the code. That's nice not ...
12
votes
1answer
389 views

Are there any subfloat package that works with tufte-latex?

I'm trying a lot of subfloat-like packages with tufte-latex and all of them seem to interact badly with tufte-latex in the matter of labels, refs and captions. To captions I could find solutions ...
11
votes
2answers
16k views

Subfigure: error “Missing number, treated as zero”

\begin{figure} \center \begin{subfigure}[b] \includegraphics[width=60mm]{a} \label{fig:a} \end{subfigure} % \begin{subfigure}[b] ...
11
votes
5answers
1k views

Wrong reference number for subfloat

I am trying to reference a subfigure in my text but it is numbered incorrectly. Here is a minimal working example: \documentclass{scrartcl} \usepackage[demo]{graphicx} \usepackage{subfig} ...
11
votes
2answers
9k views

Reference multiple subfloated figures using \ref{X,Y,Z} to give Fig. 1a,1b,1c in text

I want to reference labels in the sentence, as above in the code: like this - \ref{X,Y,Z} to give "Fig. 1a,1b,1c" or "Fig. 1a-c" in text. \documentclass{article} \usepackage{subfig} ...
11
votes
3answers
14k views

Subfigures in beamer documents

I'm using beamer package to produce slides. I put many figures on a slide by using the subfigure package. The problem is that for captions, the subfigure are labeled "a", "b".. "m", "n" and so on, for ...
11
votes
2answers
3k views

How to build and combine sophisticated layouts in figures

How can I get a layout like the one below in my document?                 With this question, I am looking for: An ...
11
votes
4answers
6k views

Adding parentheses around subfig references

Say I have a figure with two subfloats inserted using the subfig package. When I reference them with \ref{myLabel} I get this Figure 3.5a and 3.5b. But what I want is this: Figure 3.5(a) ...
11
votes
2answers
875 views

How can I put the empty subfloat subcaptions to the right?

I'm putting two figures above each other with \subfloat from the subfig package. Their captions are empty as I just want to describe the figures with the main caption, but I still want the (a) and (b) ...
11
votes
1answer
490 views

Typographic conventions for free space between subfigures?

I'm trying to define a "standard template" for drawing figures for my Ph. D. thesis. I would design large figures to fill the whole textwidth. Sometimes, however I have smaller figure, so that 2 ...
11
votes
1answer
6k views

Include table as a subfigure

Is it possible to include "table code" as a sub-figure (instead of an image) using the package subfig? If so, how?
10
votes
2answers
329 views

Why is picture and matrix not drawn at the same height

I'm trying to put a adjacency matrix beneath a graph using subfloat. The graph is drawn with tikz. No matter what I do, the matrix is put below the graph as shown here: The code is here: ...
10
votes
1answer
6k views

How to justify subfig subfloats?

I have three subfloats and I want them to be aligned over the full \textwidth, no matter what the sizes are (smaller than a third of the page of course). I have the following setup: \begin{figure} % ...
10
votes
2answers
1k views

Subcaption with Beamer

I am trying to use subcaption with beamer, but I get a series of error messages concerning subcaption.sty when I attempt to do so. This doesn't happen in the article document class. Here is a MWE ...
10
votes
1answer
514 views

How to change the display of subfigures in List of Figures?

I'm using the subcaption package and I would like to change the display in the List of Figures of the subfigures. Right now, it displays as : 2.1 Caption 1 . . . . . . . . . . . . . . . . . . . . . ...
9
votes
3answers
197 views

Is the following layout possible with the subfigure package?

Is it possible to achieve the following layout with the subfigure package (and any other package/command I don't know about): ############# ############## # # # # # pic1 # # ...
9
votes
2answers
698 views

How to put an algorithm and a tikz drawing (objects of different type) side-by-side in the same float environment?

I am trying to put an algorithm and a tikz' drawing side-by-side inside a figure environment. I am aware of this question but I would like to have a single caption for them. For instance, in the text, ...
9
votes
1answer
7k views

ContinuedFloat, and Subfloat

In my thesis I have a lot of figures with a common caption and multiple subfigures (a,b,c..etc). I wanted to split them between the pages because I don't want to fit them all in one page, therefore I ...
9
votes
2answers
2k views

Is it possible to use hyperref, subfigure, and memoir together?

I asked a question about how to use subfigure with memoir. I got some great tips, but now pdflatex is making all subfigure hyper-refs point to the first couple subfigures. It also gives me this ...
9
votes
2answers
9k views

Figures: What is the difference between using subfig or subfigure [duplicate]

I tend to use \subfloats[]{} in my figures when I want to list multiple labelled figures of similar content in one bigger picture. However, I see that some people use \subfigure. What is the ...
9
votes
2answers
426 views

Subfigure labelling for a single figure

I have a single figure containing two plots. The two plots are already labelled within the figure using (a), (b). So far I have been referencing the figures using the cleveref package as ...
9
votes
1answer
3k views

Setup for sub-captions for two sub-figures one below the other

I am using the caption and subcaption packages to create sub-figures in a document. I have two cases of sub-figures: Two sub-figures side-by-side. For this, the captioning is excellent. Two ...
8
votes
1answer
1k views

How to vertically align two pgfplots in subfigures?

I want to have two subfigures in a figure. Each subfigure contains a simple pgfplot. Here is what I have: \documentclass[12pt]{article} \usepackage{subcaption} \usepackage{pgfplots} ...
8
votes
5answers
1k views

Seamless background of subfigure bodies, but not captions

I have 3 sub-figures: \begin{figure} \subfloat[Apple]{ \includegraphics{apple} } \subfloat[Orange]{ \includegraphics{orange} } \subfloat[Cherry]{ ...
8
votes
3answers
168 views

figure next to a barplot

Okay, I tried a lot of things and can't really find it anywhere. Is there a simple example code for how to put a picture next to a graph? I tried to play around with hspace and vspace as well as an ...
8
votes
2answers
2k 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 ...
8
votes
2answers
19k views

Insert multiple figures in Latex

I need to insert 10 figures (in two columns- side by side) in LaTeX that will have one global caption, but also I need to name each figure (1a, 1b, 1c, ... ect.). So they will look like: 1a ...
8
votes
2answers
566 views

Memoir: Subbottom over several pages?

In the Memoir class, I use the subbottom command to create subfigures, labeled, e.g., 1(a), 1(b), 1(c) etc. And this works very nicely. However, if I include more figures in subbottoms than what can ...
8
votes
1answer
3k views

Is it possible to make a reference to a subfigure to appear Figure 2(a) with cleveref?

I am new here, and also new to LaTeX, so apologies if I have included too much or too little! I have been using the subfig package, and just today added in cleveref. The subfig package labels my ...
8
votes
2answers
4k views

Subfig label positioning

Can anyone tell me how to change the horizontal position of subfigure labels? I have: \captionsetup[subfigure]{labelformat=simple,position=top} Is there something like: {position=topleft} to ...
8
votes
2answers
874 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 ...
8
votes
1answer
257 views

display the caption of a figure as if it was a subfigure

I know how to use the subfig package to fit many subfigures (each with its own caption) into a larger figure (with a general caption). I know how to use the sidecap package, the put a figure's ...
8
votes
1answer
185 views

How to align these two tikz figures better?

I'm quite new to latex and I'm trying to get two tikz figures side by side. I've honestly just looked up "tikz figures side by side" and taken code and re-adjusted it to give the figures I want, so ...
8
votes
1answer
879 views

Subtable with multiple tabulars inside does not vertically align properly

The minimal example below yields weird alignment behavior for me (shown in the attached image). I tried a couple of approaches: using minipages instead of subtables didn't work, using xtabs instead of ...
8
votes
2answers
7k views

How to place subfigure caption on the side?

Is there some way to tell subfig package to place subfigure captions to the left or to the right of subfigures? There is sidecap package which does it for the main captions, but it does not affect ...