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

4
votes
1answer
536 views

Aligning caption of subfigure with math environmenth to the bottom

I was trying to align the subcaption letter of a subfigure that contains a math environment using temporal boxes, to align it vertically to the biggest one. However, when I do it the subcaption letter ...
5
votes
3answers
497 views

Table of subfloats

I'm trying to sort figures (using subfloat) in a table, with labels for each subfigure. My point is, using only subfloat, that the subfigures are referred in the text as figure a, b, ... and so on. ...
2
votes
1answer
902 views

Referencing externalized pgfplots with subfig and cleverref

I use pgfplots to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use \tikzexternalize. Moreover, I also use the subfig package to group several pictures ...
1
vote
0answers
355 views

Subcaption with margin to the left only [closed]

I have a subfigure and I need to move its subcaption more to the middle of the subfigure. So I want to use something like \subfigcapmargin, but only with the margin on the left side, not on the right ...
11
votes
2answers
1k 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) ...
14
votes
1answer
4k 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 ...
3
votes
1answer
756 views

Changing subfig \subfref format

I'd like to know how to hack subfig in order to change the format of \subref. The current format, when subfig is initialized with listofformat=parens yields output like 4.5(b) . I'd like to add a ...
2
votes
2answers
686 views

LaTeX Source Code Listing Horizontally In Figure With Subfloats

I'm trying to embed a couple of listings \begin{lstlisting} >>> from sympy import Integral, latex >>> from sympy.abc import x >>> latex(x**2) x^{2} \end{lstlisting} ...
5
votes
1answer
3k views

Reference part of a figure (with or without cleveref)

I have a figure with multiple parts (a, b, c, etc.) and in the text I would like to have a reference to the figure with the letter of the part (i.e. fig 1(b) ). Is there a way to pass this to \cref{} ...
5
votes
2answers
4k views

How to rotate a group of figures (subfigure)

3 figures side by side... I want to put them horizontally, so that you need to rotate the book by 90° to read the figures and captions. Now, I want to rotate this: \begin{figure}[] \subfigure{ ...
4
votes
2answers
484 views

Split box in two

I need to create a figure with two small figures; I want it to be a box that is split into two, with a syntax tree located in each side. The MWE below shows what I'm trying and failing with: ...
11
votes
1answer
10k 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} % ...
1
vote
1answer
400 views

Errors with figure caption since using siunitx

I am a bit of a newbie with LaTeX. Everything was working well (mostly) but I am running into all sorts of weird errors since I added the siunitx package. The error log first showed errors with ...
8
votes
3answers
174 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 ...
17
votes
3answers
5k 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
4
votes
2answers
3k views

How can I put lstlisting block into subfloat block?

I'm trying to compile my document but it's exploding. I've narrowed it down to this section: \begin{figure}[h] \caption{These are my awesome code snippets} \subfloat[This code runs every cycle.]{ ...
5
votes
1answer
658 views

Creating a second caption for a figure that won't appear in the figure's list index and is aligned with the first

I decided to write my completion of course work for my computer's science degree using LaTeX, contrary to university's popular choice, MS Word. I had a great time venturing though this tool and I ...
5
votes
1answer
30k views

LaTeX Error: File subfigure.sty not found

I'm getting this error when compiling: ! LaTeX Error: File `subfigure.sty' not found. Here is part of the relevant code: \documentclass[11pt]{article} \usepackage{graphicx} ...
7
votes
3answers
704 views

How does one create, caption, label and refer to a subfigure?

So its a fairly simple question to a problem people normally experience. I have a rough idea of what to do, but I am looking for the correct way of doing things. So in the solution I will include what ...
3
votes
1answer
203 views

hyperref causes a gap between the figure and subcaption with memoir

I'm experiencing a strange problem with memoir subfigure captions together with hyperref. Below is a working example: \documentclass{memoir} \usepackage{hyperref} \newsubfloat{figure} ...
7
votes
1answer
2k views

TeXLive 2011 and subfig

I am a long user of TeXLive on Windows. I recently moved to TL2011 from TL2010 without any problems with the iso file from CTAN. A couple of days ago I updated the TL2011 with the latest updates on ...
5
votes
2answers
11k views

Subfig no space between figures and double brackets

I followed the instructions here to make subfigures http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Subfloats However there were no space between the figure and I got double brackets ...
9
votes
2answers
5k views

Line breaks in subfig

I'm trying to put some text in a subfloat using the subfig package. (It's supposed to be part of the figure, not the caption.) I can't figure out how to add a line break. When I try this code: ...
3
votes
1answer
1k views

Putting equations next to each other when there's room (i.e. math mode in subfigure)

I have a group of multiline formulas (with \begin{split}) of varying heights and widths in a float and there's a lot of unused horizontal space. I'd like the equations to go next to each other when ...
6
votes
1answer
2k views

Parenthesis while using subfig and autoref

I would like to use subfig while using the autoref package. I have added the line \usepackage[listofformat=subparens,subrefformat=parens,labelformat=parens]{subfig} ...
5
votes
1answer
956 views

How to \ref to subcaption numbers (a, b) when using memoirs subcaptions?

How can I get references to subcaption numbers when using memoir? In this example: \documentclass{memoir} \newsubfloat{figure} \begin{document} \chapter{Lorem} \section{ipsum} \begin{figure}[b] ...
2
votes
2answers
1k views

TikZ and subfigures in math nodes

I have a tikzpicture with a matrix of math nodes. It by itself compiles fine. If I put it in a figure environment, it still compiles fine. However, if i put it in a subfigure environment, it returns ...
14
votes
3answers
6k 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 ...
2
votes
1answer
7k views

\subfloat command from subcaption package doesn't produce bottom margin if used in table

I'm trying to typeset a table of images. If image inserted into cell with \subfloat (subcaption package included), resulting box will be w/o bottom margin, but top, left and right margins will be ok. ...
3
votes
3answers
9k views

Figure and table side-by-side in subfloats

A very similar question has been asked before: Table and Figure side-by-side with independent captions I'm trying to accomplish this, but while using the subfig package. The image below depicts ...
7
votes
3answers
2k views

How do I control how tikzpictures are grouped within figures?

I want to be able to control how tikzpictures are grouped within a figure. I've got several tikzpicture within a figure set to \centering. Is there a way to control how close the tikzpictures are ...
7
votes
1answer
10k views

Beamer + subfigure numbering

When using beamer with the subfigure package, the subfigure labels (a), (b) etc. are not reset at the beginning of a new figure. Example: \documentclass{beamer} \usepackage{subfigure} ...
4
votes
1answer
186 views

saving computed number registers for access outside body of “let” operation

Section 14.15 of the PGF manual (pp 150-) describes the let operation. On pg 152 (first example) it is applied to saving coordinate (tuple values) to point registers p1 and p2 using the coordinate ...
2
votes
2answers
813 views

Centering ellipses inside a rectangular node

The following TikZ picture consists of a rectangle containing two ellipses. I'm constructing this by putting a TikZ picture environment inside the node of an including TikZ picture environment. I've ...
1
vote
1answer
4k views

subfloats vspace between its subcaption

How can I decrease the vspace between a subfloat and its caption? I have already tried this: \documentclass[fleqn,10pt,twoside,a4paper]{report} \usepackage[small,sc,bf,nooneline,skip=5pt]{caption} % ...
5
votes
2answers
4k views

How can I put three pictures with sub-captions in two rows using subfig package?

I would like to put three pictures with sub-captions in two rows using the subfig package. I want to center the single picture in the second row. I use the following code : ...
1
vote
1answer
6k views

Move the position of figure subcaption of subfloat command

As the following code shows, it will label an 'a' and 'b' under each picture. How can I put the label at the left-top corner of each figure? \documentclass{article} \usepackage{graphicx} ...
0
votes
1answer
1k views

Place a grid of pictures (2x2) with captions

I have 4 photos that I would like to place in in grid on my pages and add a caption to each photo. Does anyone know how to do this?
4
votes
1answer
721 views

Error using russian letters for appendix counter with hyperref and subfig

I'm preparing a text in russian with pdflatex. According to standard appendices must be numbered with russian uppercase letters. But I've found that if subfloats used in appedix, the hyperref ...
82
votes
4answers
9k 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 ...
3
votes
1answer
910 views

Caption in subfloat shifted to the right

I'm seeing strange behavior when using subfloat. I have 6 figures that I want to display as 2 by 3 (2 lines, 3 columns). The caption (a, b, c etc.) is shifted to the right which means figure b) is ...
2
votes
2answers
829 views

Error when compiling with Tex4ht

I'm trying to compile a part of my thesis with tex4ht (to use LibreOffice grammar checker). It was working well few weeks ago but now it fails with the error: ! Undefined control sequence. ...
1
vote
1answer
6k views

Subfigures placed horizontally

I want to place two or more figures on top of the two-column page next to each other (horizontally). However, for some reason I can't do this. This is the code that I use, it puts the second figure in ...
2
votes
1answer
955 views

Center subfloat above extended subcaption in subfig package

In the subfig package, the command \captionsetup[subfigure]{width=<length>} extends the width of a subcaption. Now how can the subfloats be centered above their enlarged subcaptions? The ...
2
votes
1answer
2k views

Setting subcaption width for specific subcaptions

In the subfig packge, the command \captionsetup[subfigure]{width=<length>} can set the width of all subcaptions within a figure. How can the width of just a single subcaption in a figure be ...
2
votes
1answer
4k views

Alignment and scaling of nested subfigures

Update: Read this first I originally asked this question to find out how I would show a large image with magnified portions of the same image next to it. I was doing this by manually cropping copies ...
4
votes
1answer
526 views

Empty caption of subfigure in memoir slightly misaligned

Consider the following minimal example meant to illustrate a single figure with a subfigure using the memoir documentclass: \documentclass{memoir} \newsubfloat{figure}% Allow for subfloats ...
5
votes
1answer
1k views

Code listing in subfigure

I am trying to use the subfigure package of LaTeX to display a code listing. Here was my first attempt: \begin{figure} \subfigure[Standard approach]{ {\footnotesize \begin{verbatim} var caps = new ...
3
votes
1answer
302 views

Chemcompounds package and subfloat comportement ?

I would like to use chemcompounds package which allows you to keep track of the chemical compounds you go citing on, and give them a number order if nothing is specified. I would like to use it within ...
5
votes
1answer
4k views

subfigures with revtex?

I'm writing an article using the revtex4 document class, but it appears to be incompatible with subfig (which also seems to be loading caption). How can I title some subfigures in my revtex4 document? ...