{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

5
votes
1answer
514 views

Break box (a long caption) over pages

I want to have text of a certain width less than the page width, which goes across several pages. Normally you’d put text into a (\par)box to set its width but these boxes cannot be broken across ...
3
votes
1answer
330 views

rotatebox symbol in caption generates error

Following minimal example doesn't work and generates an error \documentclass{article} \usepackage{graphicx} \usepackage{amssymb} \begin{document} \begin{figure} FIGURE \caption{$\blacksquare$ ...
7
votes
1answer
34k views

Subfigures side by side with captions

I am using the following code to put my two figures side by side with different captions, \begin{figure*}[t!] \centering \begin{subfigure}[b]{0.5\textwidth} \centering ...
3
votes
1answer
189 views

Missing caption prefix in figures and tables when using XeLaTeX

I've recently switched from PDFLaTeX to XeLaTeX, and noticed that captions on my figures and tables don't have the usual "Рис." and "Таблица" prefix any more (Fig. and Table in Russian), only a number ...
2
votes
1answer
457 views

Make every first line of table look the same

I've been struggling recently with tables. And I've finally managed to get past it. However, I'm now trying to make every first line of my tables look the same (bold white on blue background color). ...
3
votes
1answer
200 views

using TikZ with multipage table

I am using tikz files to insert figures . I would like to add 3 figures one after the other with the same figure caption: I use this code: the problem is that the last figure is at the bottom of the ...
3
votes
1answer
85 views

Caption package error redux

I'm using the caption package, but it's not affecting the captions within my tables and figures. I've pasted my sample code below. How can it be fixed? \documentclass{article} ...
1
vote
1answer
385 views

Deleting colon while using \renewcommand for table names

I have to rename one of the many tables as Fig. But executing the below script resulted in ':' before the caption. \renewcommand{\tablename}{} \renewcommand{\thetable}{} \begin{table}[!h] ...
6
votes
1answer
259 views

Strange vertical space before the caption of a longtable with KOMA-Script classes when xcolor is loaded

When using one of the main KOMA-Script classes — scrartcl, scrreprt, scrbook but not scrlttr2 —, the vertical position of the caption in a longtable environment changes when one loads or unloads the ...
2
votes
2answers
636 views

Change caption number of an algorithm

I am wondering if I can manually set the caption number of an algorithm, or let the caption number of the algorithms in an article start from 2. The following is a MWE. ...
0
votes
0answers
40 views

Distinguish between list of of tables and table [duplicate]

How can I make the caption of the table different from that what shows up in the "List of Tables" For figures I used the non-float option with: \figcaption[short title for the index]{description for ...
1
vote
1answer
207 views

TikZ node causing problems inside a \caption [duplicate]

Following an example offered here, I want to insert colored, circled numbers referring to items in a figure (figure details left as an exercise to the reader) into my text. The numbers are defined ...
5
votes
1answer
268 views

subfigures in a custom float (subcaption & float packages)

I need figures and subfigures with a custom caption name. In order to achieve my goal I am trying to use float package to define new float type, and subfigure to create the subfigures. However, I get ...
10
votes
2answers
2k views

Figure subnumbering 1a

I'm wondering how to give subnumberings like "2a" and "2b" for separate floats. I know both the subfigure and subcaption packages do the subnumbering but they demand the subfigures be in a single ...
3
votes
1answer
72 views

I made a `box' float environment, and now I would like to put the caption inside the box

I made a box float using the following: \usepackage{float} \newfloat{Box}{t}{bx}[chapter] and \begin{Box}[htp] \label{box:test} \fcolorbox{black}{boxgray}{\parbox[c]{\textwidth}{The text goes ...
2
votes
2answers
600 views

Code listing spanning multiple pages with captions at top

Is it possible to span a lstlisting environment or lstlistinginput on multiple pages, such that the caption is repeated on each page (the listing counter stays the same), as well as being able to ...
4
votes
1answer
299 views

How to use verbatim in figure caption (\captionof)? [duplicate]

I want to use verbatim in a caption of a figure. I have tried the cprotect package but it seems to work only with \caption and not with \captionof. Is there a workaround? \documentclass{scrbook} ...
3
votes
1answer
8k views

Styling a lstlisting caption using caption package

I'd like to style a caption in a specific way, but I can't seem to figure out the proper settings to do so. First off, I'd like to change the label from "Listing" to "Algorithm" when I use ...
3
votes
2answers
388 views

Change caption name of an appendix

I want to change the caption name of a figure for an appendix. For example I have \caption{This is a supplemental figure.} and by default the caption appears as Figure 1: This is a supplemental ...
0
votes
0answers
53 views

Can I force a table caption to be a figure caption? [duplicate]

If I fill a table with figures, and give an caption, it is by default named Table XXX, but can I force it to be a Figure XXX caption? How? Thanks
5
votes
1answer
241 views

Subfigures with Captions Above AND Below

I'm using \usepackage{subfig} \captionsetup[subfigure]{labelformat=empty} Is this possible?
2
votes
1answer
103 views

Inserting citation inside ERT code in LyX

How do I cite a reference inside ERT code in LyX? Inside the ERT code I am unable to select Insert-->Citation as I usually do. The reason I need to do this is further to an answer to a previous ...
4
votes
2answers
2k views

subfigure with memoir

I made an article and insert several subfigures in that as follows: \begin{figure} \centering \begin{subfigure}[b]{0.3\textwidth} \includegraphics[width=\textwidth]{fig6_1} ...
2
votes
1answer
320 views

Table and its captions on different pages

I have a really long table that fits the whole page (in fact it's a really wide table that I have rotated by 90 degrees): \begin{table}[!pht] \caption{ ... some quite long description } ...
2
votes
1answer
259 views

Adding tikz figure in caption

I am writing one long document using lyx. I wanted to add small tikz code within a caption of a figure of my document. However when I tried to run it it is giving following error. Please help me ...
5
votes
1answer
258 views

Exceeding parbox with caption package

I am trying to customize the captions of my figures, this is what I achieved so far: Which is ok, but as you can see the parbox exceeds the width, and its right margin is not precisely aligned. How ...
7
votes
2answers
1k views

The caption package and letterspacing

Problem Statement I adjusted the caption format for my figures and tables using the caption package, such that the words "Figure" and "Table" are typeset using small caps. Now I want to obtain ...
2
votes
1answer
2k views

How to put algorithm and figure side by side in two column document?

I want to put two figures and an algorithm side by side in a two-column document, and the figures and the algorithm should span two columns. I have surveyed previously asked questions such as How to ...
6
votes
2answers
532 views

Different caption alignment on different longtable pages

I'm using longtabu(longtable) for splitting a table on 2 and more pages, and i want to show different captions on pages. This works fine, however i need the first caption to be aligned left, and the ...
6
votes
1answer
652 views

Disappearance of the table title/caption, when using colortbl

I'm formatting a manuscript according to the PNAS style, as prescribed in http://www.pnas.org/site/authors/LaTex.xhtml When I color my table using the package colortbl, the title/caption disappears ...
2
votes
1answer
469 views

Numbered figure with caption in footnote

The question about adding footnotes in floats or captions of these has been asked and debated often. What is about floats in footnotes? I can't seem to get a floating figure environment within a ...
1
vote
2answers
668 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} ...
2
votes
2answers
667 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
5k 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
1k 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
309 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
1k 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
262 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
491 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} ...
4
votes
1answer
561 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}} ...
5
votes
3answers
3k 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
538 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
289 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
625 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, ...
4
votes
2answers
4k 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
270 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
2k 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
94 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
97 views

Label on grammar enviroment

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 ...