Questions tagged [subcaption]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

error float.sty line99

Well, here is my problem. My friends can compile this document. I can't, and I don't know why. The error is: File: "C:\Program Files\MikTex\tex\latex\float\float.sty Type: Error Line: Line99 ...
2
votes
1answer
6k 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 set?...
2
votes
2answers
1k views

Will subcaption and threeparttable live happily ever after? Trouble combining the two

I'm trying to take this MWE table and put it into a subcaption's subtable environment, or, alternatively, use subcaption's subcaption command - see subcaption's manual - to achieve the same end: to ...
1
vote
2answers
16k views

File `subcaption.sty' not found. in texstudio

I'm using texstudio on linux for writing paper. the version is: TeXstudio 2.3 (SVN ??) Using Qt Version 4.8.4, compiled with Qt 4.8.0 Copyright (c) (original TexMaker) 2004-2010 by ...
10
votes
1answer
16k views

**“No counter 'subfigure@save defined.”** -subfig error [closed]

I have used subfig package to compile the following code. The code was running fine in linux machine (That too without loading the 'subfig' package). Now in Windows machine, I am having error message: ...
7
votes
1answer
827 views

subcaption in LOF with hyperref

MWE: \documentclass{article} \usepackage{subcaption} \usepackage{hyperref} \begin{document} \listoffigures \begin{figure} \begin{subfigure}[b]{.5\linewidth} \centering\large A \caption{A subfigure}\...
7
votes
2answers
13k views

Is it possible to use subcaption inside a minipage?

I have tried formulations of using subcaption inside minipage--subcaption and subcaptionbox. I have also look at some threads but couldn't find anything doing what I needed. Please note that this ...
6
votes
3answers
838 views

Vertical alignment of subfigures of different horizontal length

I have four different tikzpictures merged in one single figure by means of the subcaption package and the \subfigure environment. However, the figures have different horizontal lengths, so I don't get ...
6
votes
2answers
942 views

Placing of subfigures with different widths

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

how to suppress page number for subfigures in LOF?

I am using tocloft and subcaption package, and I would like to suppreess page numbers and dot line for subfigures in LOF. I know, if one uses tocloft and subfigure package, this can be done with the ...
6
votes
1answer
1k views

Aligning subcaptions with tikz pictures vertically

A simple follow-up question to this one How to place and scale TikZ pictures in subfigure? I shamelessly copied the same code that was presented in the answer there because it fits my needs exactly as ...
5
votes
1answer
13k views

Alignment and placing of subtables

I have a table float with four subtables and having trouble with alignment and placing. Here's the code: \begin{table} \begin{subtable}{0.45\textwidth} \centering \begin{tabular}[t]{cccc} \toprule ...
5
votes
1answer
1k views

How to automatically align subfloat captions to xlabel of PGFplots?

Subfloat captions are not usually aligned with their corresponding xlable in PGFplots. One way is to manually move the captions horizontally to align them. For example, (copied from here) \...
5
votes
2answers
5k views

Two tables side by side with independent and global captions

I want to put two tables side by side in my document, with (a) and (b) subcaptions for them, and also a global caption "Table 1. Blahblahblah" (spanning to one of the columns only). At the moment I am ...
5
votes
1answer
1k views

Subfigures with Captions Above AND Below

I'm using \usepackage{subfig} \captionsetup[subfigure]{labelformat=empty} Is this possible?
5
votes
3answers
7k views

Package caption Warning: Unsupported document class

When I include subfigures with subcaptions in an IEEE conference (IGARSS conference) and import them with \usepackage{subcaption} in the previous tex file, I get the following warning: Package ...
4
votes
1answer
104 views

A particular customize with green line and letters for subfloat

For my book, the MWE that it is adding below, is the cropping of a part of the code when I insert only two figures: \documentclass[12pt]{book} \usepackage{newtxtext} %%\usepackage{classico}%%%%%%%%% ...
4
votes
1answer
38 views

How to customise subcaptions with `\documentclass{scrartcl}` that work inside no-float environments?

DISCLAIMER: Yesterday, I posted this question about subcaptions numbering. The question received an excellent answer that works perfect for \documentclass{article}, but that fails whenever using \...
4
votes
1answer
250 views

memoir: subcaptions outside float

For figures outside of caption memoir define for example \newfixedcaption{\figcaption}{figure} Is there a way to similarly define fixed subcaption? That it can be used in the following MWE: \...
4
votes
1answer
141 views

How to swap subcaptions of zoomboxes?

I greatly appreciate the zoomboxes given in this question: How to create magnified subfigures and corresponding boxes for portions of a large image. As the comments thread is already long enough I ...
4
votes
1answer
665 views

Htlatex and subcaption - can htlatex be extended?

To start with MWE: \documentclass{article} \def\pgfsysdriver{pgfsys-tex4ht.def} \usepackage{tikz} \usepackage{subcaption} \begin{document} \begin{figure} \subcaptionbox{Small} { \tikz \draw (0cm,...
4
votes
2answers
810 views

Problem with subcaptions in subtables

I am trying to implement a table with several subtables, but working with subcaption does not work neither when I try tabularx. This subtables have different number of columns. with the following code ...
4
votes
1answer
4k views

3 subfigures in a row, different sizes. How to manually adjust the spaces in beween?

I want three subfigures to be shown next to each other so that the subcaptions of all three subfigures are equally 'wide'. I'm experiencing 2 problems. Since my middle subfigure is a lot smaller, ...
3
votes
1answer
81 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
2answers
1k views

Prevent wrapping of subtable captions in lyx

Could someone provide me with an elegant solution to prevent wrapping of a table caption in lyx? It must wrap at the end of the line, not at the end of the table. %% LyX 1.6.7 created this file. ...
3
votes
3answers
293 views

tufte-latex and subcaption

I try to use tufte-latex with subcaptions, which seems generally problematic. A workaround mentioned of compatibility mode for the caption package however, works only partially: \documentclass[...
3
votes
1answer
123 views

acronym + subcaption: problems with acronyms in captions

I am trying to use the acronym package together with subcaption. However, even in figures where I am not using subcaptions, the acronyms don't work correctly. MWE: \documentclass[11pt]{report} \...
3
votes
2answers
580 views

subfigures break figure numbering with sidecaptions from sidenotes package

I am setting my captions into the margin with the sidenotes package. I also use the subfigure environment from the subcaptions quite a lot to annotate subplots and refer to them. I now noticed that ...
3
votes
1answer
8k views

Error when trying to use the subcaption package

When I try to use the subcaption package (\usepackage{subcaption}), I get some errors. However, using the subfigure package (\usepackage{subfigure}), the compilation is successful with no errors. I ...
3
votes
1answer
142 views

Add \centering to all subfigures in subcaption using \g@addto@macro

I'm trying to center subcaption subfigures as outlined this answer. However, compilation fails with ! Argument of \subcaption@minipage has an extra }. <inserted text> \par l....
3
votes
1answer
599 views

How to remove captionless-figures from the List of Figures (LoF)?

In my document, I have several figures spread throughout and some of them consist of subfigures without captions. If I want to print a List of Figures (LOF), then these "captionless" subfigures appear ...
2
votes
2answers
722 views

caption on the left of lines of Subfigures

I would like to characterise rows of subfigure: I have 2 lines, each with 3 subfigures. Each line is characterised by a different value for the parameter R. I would like to have a caption on the left ...
2
votes
2answers
98 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}}{% \...
2
votes
2answers
130 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 ...
2
votes
1answer
3k views

get caption/subcaption every plot using groupplot pgf tikz

Hello I want to have Under each plot (subgroup plot) its caption or label, so I can also reference it in my document. Here in my example I used (a), (b), (c) I can keep them but they are not well ...
2
votes
0answers
168 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 ...
2
votes
1answer
1k 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
912 views

Figure and two subfigures side by side using caption/subcaption

I've looked at many questions asked here but I don't find quite what I want. Here's roughly the desired output : i.e : On one line a Figure and side by side a Figure made of two subfigures. I don't ...
2
votes
1answer
73 views

Algorithmicx - caption alignment of 2-column sub-algorithms of different height

I have 2 sub-algorithms that need to be placed side-by-side (2 columns) using the algpseduocode layout from the algorithmicx package. Since I need to refer to each of them individually in the ...
2
votes
2answers
117 views

Trying to use sub-figures in a column on a tikzposter

I'm trying to use sub-figures in a figure, within a block, that's in a column, on a tikzposter and instead of placing the figure and caption within the block they appear outside of it, in the middle ...
2
votes
1answer
540 views

Error while including subcaption package [duplicate]

I am new user to latex and trying to write my thesis in latex. I have received a template in latex that uses following packages. When I try to include \usepackage{subcaption} to include subfigures in ...
2
votes
1answer
1k views

Multiple Figure Numbering and Multiple Captions for Figures

I'm hoping that somebody can point me in the right direction on these two questions regarding figure number and captions. Question 1 I am writing a catalogue that when finished will have many ...
2
votes
1answer
527 views

How to change subcaption numbering?

I'm currently using this code \documentclass{article} \usepackage{caption} \usepackage{subcaption} \usepackage{graphicx} \renewcommand{\thefigure}{\Roman{figure}} \captionsetup[figure]{labelsep=...
2
votes
2answers
447 views

Customize referencing of subcaptions in “memoir”?

When I use \subcaption{... \label{myfig}} in memoir, and then reference it, the result is something like "Figure 1(a)". But I would like to customize the reference by removing the parentheses, thus ...
1
vote
0answers
23 views

Acmsmall and referencing subfloats [duplicate]

This question is following almost directly this one : acmsmall and subfigures I managed to insert subfigures using minipage but I'm now wondering how I can refer to these subfigures. My MWE: \...
1
vote
1answer
3k views

subcaption - caption beside figure

I am trying to use the subcaption package (not subfig) to generate the labels of the subfigures beside the figure. I have found many similar questions, but all answers (like this one) use subfigand ...
1
vote
1answer
695 views

Combine a grid of images into a single figure WITHOUT subfigures and labels, captions, etc

MWE: \begin{figure*} \subfloat[\label{fig:test1}] {\includegraphics[width=.45\linewidth]{one}}\hfill \subfloat[unwanted caption\label{fig:test2}] {\includegraphics[width=.45\linewidth]{two}}\...
1
vote
1answer
848 views

Subfigure package caption positioning

I would like to use subfigure package, since it allows to define the subfigure environment size in terms of columnwidth, etc. However, I need to follow some formatting as: Figure title on top and ...
1
vote
1answer
2k views

cannot figure out how to produce some tikz pictures next to each other

Ideally I would like to have the tikzpictures be in one line centered horizontally with its caption each preserving its node size and line strength and vertically aligned to a common bottom line. I am ...
0
votes
0answers
38 views

floatrow/subfigure - fit 7 figures in one page - caption as a subfigure [duplicate]

I am trying to put in one page a set of 7 subigures. What I would like to achieve is the following The 7th image should be placed on the first column on the left hand side of the document (yellow box)...