{captions} is about captions for figures, tables and other, custom-defined floats or non-floating illustrations which are formatted to look identical to these floats. A popular package is caption.

learn more… | top users | synonyms

1
vote
2answers
1k views

Use \label and cross-references in xymatrix

Whenever I am trying to use \caption, \label and cross-references in xymatrix, it is not working. An MWE : \documentclass{book} \usepackage[a4paper,margin=.45in]{geometry} \usepackage{xypic} \...
4
votes
2answers
1k views

Image caption within \newfloat

I am using the float package to create my own floats. Now I also want to add an image with its own caption inside, but the caption belongs to the outer float. Is it possible to create something like ...
3
votes
2answers
11k views

Two images inside minipage (side by side) with one common caption that says “Figure 1 & 2:”

I have two images inside a minipage, so I can have them side by side. When I make a caption for the images it only comes up as "figure 3: text", but I would like to have it showing "Figure 3 & 4: ...
2
votes
2answers
4k views

Table captions continued

I am writing an article which has a long table with many rows. I would like to divide this table for multiple pages but I can not change the captions of these tables like "Table 1: Blablabla" and for ...
3
votes
1answer
507 views

Continuous numbering of custom float with caption package

I defined a custom environment that allows me to define mathematical problem statements and puts them in a box. Since I have quite a few of them in my report, I decided to properly caption them, which ...
5
votes
2answers
4k views

How to avoid printing the algorithm number in algorithm captions?

I am using the algorithm2e package to write algorithms. However, when i write three algorithms one after another, the algorithms are automatically numbered 1,2 and 3 in the caption. I am using ...
4
votes
2answers
318 views

Custom name & justification, single line spread and “within chapter” numbering of figure captions [closed]

I now know how to add images with captions but still need help how to tweak the captions. \begin{figure}[h] \begin{center} \includegraphics[width=100mm]{01.jpg} \caption*{\textbf{Bild 2.1:} Curtiss ...
2
votes
1answer
851 views

Figure caption runs off page

How can I get latex to place my figure sufficiently at the top of my page to allow for my caption to nicely fit at the bottom? \documentclass{amsart} \usepackage{graphicx} \begin{document} \begin{...
4
votes
1answer
776 views

listings caption gray box meaning of code

Some time ago I copied this code from Stackexchange to have a nice gray box at the top of my imported source code which I displayed with listings: \DeclareCaptionFont{white}{\color{white}} \...
6
votes
3answers
4k views

Using LyX, how do you put a table and a figure side by side and caption them Table XX and Figure XX?

I have found solutions for them to be done in normal TeX, but how do I do this in LyX? What I wish to obtain is something like that shown in Table and Figure side-by-side with Table caption above, ...
0
votes
0answers
18 views

Different number in image caption and in ref to figure [duplicate]

I have figure with image like this: \begin{figure}[h!] \centering \label{fig:controlsOpacity} \includegraphics[width=120mm]{img/image_01.png} \caption{some text} \end{figure} then I am referencing ...
6
votes
1answer
733 views

Multiple listings styles

In using the listings package, how can I have a distinct \lstlistingname value for each type of listing. Lets say my document has C++, R and Pseudo listings, and I would like the \lstlistingname ...
0
votes
1answer
626 views

Is it possible to add hidden text to a caption that only appears in the table of figures? [duplicate]

I want to add additional information about some figures that should only show up in the list of figures. Is this possible?
7
votes
1answer
972 views

Caption placement for new float in tufte-book class

I am using the tufte-book document class and I am trying to create a new float environment for example boxes that will include captions in the right margin similar to table/figure captions. However, ...
5
votes
2answers
9k views

changing spacing of caption

I'm creating a figure using LyX. I would like the spacing of the caption below the figure to be 1.3. Is there an easy way to accomplish this? Setting the spacing to 1.3 for the entire document using ...
5
votes
1answer
297 views

Drawing a grid on each image inside the array of images

Please see what I have written,when I need individual grid on each of picture inside my figure-array. In contrast to previews question Drawing a grid on array of images. Question now is why I can't ...
3
votes
2answers
4k views

ieeetran caption question

In the ieeetran how to, they are using caption with their examples; however, latex tells me not to use caption. So if I use subfloat, all my figures are labeled as such (a), (b) and don't have a main ...
1
vote
0answers
109 views

Remove the period at the end of the subcaption using \subbottom with memoir [closed]

I am using the memoir package (with hyperref package in case that makes a difference) and I am using \subbottom to place subfigures within a figure environment. I simply want the subcaptions to read (...
2
votes
1answer
136 views

Label on grammar environment

I want to have a caption and label on my grammar environment, and have implemented the solution here: How to use caption and label in grammar environment? got my grammar displayed with a caption and a ...
3
votes
2answers
1k views

Captions: Write directly below “Figure”

a typical caption below an image looks like: Fig 1.1: Whatever the content might be ______ it is described here. My problem is that I'd like to write below "Fig 1.1" at the position of ______. ...
4
votes
1answer
361 views

wrapping a rotated table

I have a rather wide table that doesn't fit to page width, so I rotated it. The fit is nice, but my idea was to have text wrapped around this rotated table. So far I found two choices that are ...
1
vote
1answer
155 views

How can I put the table caption on the top in pdfLaTeX? [duplicate]

I have this code \begin{table}[H] \caption{My Caption } \centering \begin{tabular}{*{6}{|p{3cm}}} \hline\hline But caption comes at bottom. I can't use this \begin{table}[Ht] as it ...
13
votes
1answer
11k views

How to write multiple line caption with figure

How to split a long figure caption to multiple line? Using '\' doesn't work. \begin{figure}[H] \includegraphics[width=1\textwidth]{x.jpg} \caption{line 1..... line 2...... line 3 ....} \label{...
5
votes
2answers
275 views

Assign numbering of theorems to figures

How can I assign numbering of theorems to numbering of figures? I have a certain figure and instead of it being called Figure 2.1: Figure for Theorem 2.2, it would be much batter to have it simply ...
2
votes
1answer
2k views

Restyling the caption in an algorithm created with algorithm2e

In the caption of an algorithm created with algorithm2e, \documentclass{article} \usepackage[ruled]{algorithm2e} \begin{document} \begin{algorithm}[H] \caption{Caption.} pseudocode \end{...
3
votes
1answer
2k views

Break figure description over two pages

I use figures with a caption and a description below. Sometimes the figures are large and also the descriptions. If I keep the images to a not very low scale (to make them understable) the ...
1
vote
1answer
101 views

Two issues: Causing Sumatra not to jump to document beginning after compiling an writing under caption title

I'm having two problems with my MiKTeX, TeXnicCenter and SumatraPDF configuration The first issue is about sumatra. I like the fact that sumatra does not need to be closed upon re-compilation of my ...
8
votes
1answer
4k views

Centering a subcaption

I have three figures that I want to place next to each other. That is fine. In addition, however, each subfigure has a caption on its own and the crucial thing with these is that I have to have two ...
7
votes
3answers
3k views

Caption issue when placing figure side by side

I placed 2 figures side by side using the minipage method from this post, and the figures look perfectly fine. However, the caption of the right figure stick out into the margin, why is that and how ...
7
votes
1answer
4k views

Referring to function name in an algorithm

I have a LaTeX code which looks similar to the following example. \documentclass{article} \usepackage{amsmath,algorithm,algpseudocode} \begin{document} \begin{algorithm} \caption{My Algo.} \label{alg:...
1
vote
0answers
39 views

Why does \begin{figure} center my image vertically? [duplicate]

If I insert image into my document as such: \includegraphics{spss24fore.png} The image is aligned at top of the page, but when I use: \begin{figure} \includegraphics{spss24fore.png} \...
4
votes
1answer
187 views

1.a numbering of subfigures within a figure without a caption

I am using the subcaption package and write a caption for each of my subfigures. In order to get a reference to "Fig. 1a", I also have to write a "big caption" below all subfigures. But I don't want ...
1
vote
0answers
63 views

Table caption above, figure caption below [duplicate]

In a LaTeX article, I would like to place table captions above the tables and figure captions below. Is this possible?
9
votes
2answers
8k views

Get a table and figure on the same page with captions & labels

Here's what I'm looking for: I need a table and a figure to stay on the same page, while keeping captions & labels fully functional. Both the table and the figure need their own caption and their ...
20
votes
2answers
21k views

Too wide figure caption

I included a figure using the figure environment with a rather long caption. The width of the caption is the same as the page width, which doesn't look so nice. Is there any way to reduce the width of ...
18
votes
2answers
23k views

Multi-page Figure with subcaption package

I have a figure with subfigures defined using the subcaption package (*not the deprecated subfig or subfigure). I need the parent figure to span two pages with two subfigs on each page. I have ...
3
votes
1answer
557 views

Why does ltablex skip a number in captions?

The below example presents two tables with an tabularx environment (taken from package ltablex) and a caption. After each tabularx-table, the table counter skips one, as if both the caption and the ...
3
votes
1answer
365 views

Russian language within figure captions in unicode-aware systems [duplicate]

When I try to compile the following document caption package seem to convert caption text to \cyr.. sequences and fontspec don't understand them. Is it possible do somehow get around that without ...
0
votes
1answer
336 views

How can different numbering style be used for nested subfigures?

I want to display a figure demonstrating 3 cases. The case1 and case2 are shown using single images each. But case 3 needs 3 images. I have used nested subfigure as follows: However the captions go as ...
1
vote
1answer
268 views

How to properly space multirow subfloats

I have 3 subfloats, but they will not all fit on one line, so I have two in the top row and one on the bottom row. My first problem is the floats are all different sizes and they are not being spaced ...
2
votes
1answer
106 views

Custom caption text

How do you set the caption name to say foo instead of figure? I have tried using a custom environment but am encountering several issues.
4
votes
1answer
615 views

Wrap caption around image and wrap text around this construction

Package wrapfigure aligns capture under the image and caption is big. Making a full size picture does not make to much sense due to a very little amount of details so I would like to wrap image and ...
2
votes
1answer
635 views

Moving the table caption

I want to move a wrapped table and caption, I'm trying to use vspace but it doesn't move the caption. Any ideas? \documentclass[12pt]{article} \usepackage{wrapfig} \usepackage{floatrow} \floatsetup[...
2
votes
1answer
303 views

How to modify caption of a wrapped figure?

I have the following code : \begin{wrapfigure}{r}{0.3 \textwidth} \includegraphics[scale=0.9]{tulipmatlab.png} \caption{Synthesis tools} \end{wrapfigure} Which gives an output of : ...
7
votes
1answer
2k views

How to use color in `caption` package?

I am using caption package to customize captions in my thesis. My current code is: \usepackage[width=0.6\textwidth ,font={small, sf,it},labelfont=bf, labelsep=endash, format=plain,labelsep=period]{...
6
votes
2answers
5k views

How to get line-breaking / multirow to work in the caption of my beginner's table?

How to get line-breaking / multirow to work in the caption of my beginner's table? \caption{this is my first table's captive caption} I'd like the caption to look sth like this: this is my ...
5
votes
1answer
728 views

caption interfering with glossaries first/subsequent use mechanism

This is a follow-up question on Glossaries in List of Figures overflow, where it was asked how the first usage scheme of the glossaries package can be used with a glossary term in a figure caption. I ...
14
votes
1answer
581 views

Spacing, subfigures and right captions (Creating a bar menu)

I am trying to create a bar menu for a student place I am part of. Now since we are studying CS, mathematics and or physics of course he have to use latex to create our barmenus or drinking lists. An ...
6
votes
1answer
605 views

Wider caption for listing using multicol

I am using the multicol and listings packages. I would like to have the caption spread across the entire listing for multi-column listings. Here is a MWE of what I am attempting, however the output ...
1
vote
3answers
205 views

How to format a set of paragraphs with captions to the left of the first line

I am trying to write a document with a list of paragraphs that have an introductory caption displayed to the left of the first line of each paragraph, such that the captions appear as a left column ...