{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

3
votes
2answers
974 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. ...
8
votes
2answers
9k 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 ...
8
votes
1answer
826 views

Replicate Figure w/out Inserting New Entry in List of Figures

I would like to replicate a figure in Chapter 3 within Chapter 6 such that the figure is displayed and optionally, it has the caption and Figure number of the figure in Chapter 3. If that is not ...
16
votes
3answers
8k views

How to include verbatim in a figure caption?

I would like to include verbatim in a caption of a figure. I only want part of it to be verbatim, not the entire caption. The simple approach does not work because verbatim is not allowed in arguments ...
8
votes
1answer
7k views

Multiline figure caption centering

How to center a figure caption that's too long for a single line? Or at least, make the text in other lines line-up with text after "Slika 1:". It currently looks like this
170
votes
2answers
320k views

Force figure placement in text

I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code: \begin{figure}[ht] ...
2
votes
2answers
134 views

Conditionals within captions

I have defined a conditional using the ifthen package as: \newcommand{\Switch}[1] { \ifthenelse{\equal{#1}{1}}{Test1}{Test2} } Running this command works without problem. However, if I try to place ...
1
vote
1answer
761 views

ltablex + \caption[]{…} = error or bug?

I'm writing my thesis with the document class scrbook from koma-script and want to use the package ltablex (= longtable + tabularx) for setting long tables with automatic page break calculation. Now, ...
3
votes
3answers
4k views

Prevent wrapping of subfloat captions

Because the images in my \subfloats are smaller than their captions, captions are wrapped to the next line. How can I prevent it? Update I was wrong assuming subfig is a popular package so, here ...
1
vote
1answer
705 views

Using contcapt in the sidewaysfigure environment

In a two sidewaysfigure environments across two pages contcapt in the second page has an incremented caption number. Oddly, the subfigure letter on the second page is correct ex. (it will start with ...
4
votes
3answers
2k views

Extra command in subfig package

I would like an extra command to be run in the captions using the \subfloat command from the subfig package. With normal captions, I just redefine \captionfont, but this doesn't work for captions of ...
4
votes
4answers
7k views

Table caption Width

We have table caption background image. We put this as image. But we need the table caption and images exactly same width as table body.
28
votes
2answers
4k views

Label and caption without float

I’d like to have an environment that works much like a float, except that it doesn’t float. That is, in fact, I’d like to be able to define an environment that has a label and a caption. I ...
8
votes
2answers
4k views

\footnotetext on different page from \footnotemark

I was forced to use \footnotetext and \footnotemark on because I needed a footnote in a couple of captions. Of the three times this is done in the article: one works fine, the second appears on the ...
4
votes
1answer
366 views

Trouble using \formatdate inside \caption

I am having trouble formatting a date inside a caption using the datetime package. I'm told "Incomplete \iffalse; all text was ignored after line 6. \documentclass{article} \usepackage{datetime} ...
39
votes
2answers
48k views

Table and figure side-by-side with independent captions

Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch ------------ ----------------- TABLE | a | b | ...
3
votes
1answer
799 views

Missing “Figure” title for captions of side-by-side graphics

Background Trying to reference the label of figures that are side-by-side. Problem Referencing figures by their label works, except when the figure is in a mini-page. That's when the word "Figure" ...
5
votes
1answer
687 views

Redefining the label used in captions

You can redefine your caption labels with e.g. \renewcommand{\figurename}{Fig.}. Is there a way to do it just for certain figures/tables? I have an appendix and I would like to make figures/tables as ...
13
votes
1answer
9k views

Table captions are always placed below

I have a problem with table captions in LaTeX. They appear always below the tables instead of above as required by my editor. I've read lots of documentation and everybody says that if you place the ...
3
votes
2answers
584 views

How can I force an image and its caption to be on the same page?

I am using the caption package, now I have one problem: In one case an image is placed at the bottom of one page, while its caption is placed on the top of the following page. In this case I would ...
7
votes
1answer
10k views

How to Label and Caption a Tikzpicture inside a tabular environment

What is the correct way to label and captionize a tkizpicture inside a tabular environment? (Since figures are not allowed inside a tabular) Excerpt from my .tex: \begin{tabular}{l r} & ...
15
votes
2answers
6k views

Floating an algorithm?

I'm typesetting an algorithm using the algorithmx package as follows: \begin{algorithm} \caption{\textsc{Whatever}} \begin{algorithmic}[1] ... \end{algorithm} However, I would like it to ...
6
votes
3answers
1k views

“Listing #” below listings without a caption

When not specifying a caption for a lstlisting nothing is shown below the listing while "Listing #: mycaption" is displayed as soon as I specify a caption. However, I'd like "Listing #" to be ...
8
votes
2answers
958 views

Hyperlink's bad navigation of sub-figures on click

I am using hyperref package to have hyperlinks automatically generated for figures, equations, table of contents, etc... My problem is if I have a big figure consisting of sub-figures and then have a ...
3
votes
1answer
740 views

How to display caption at the bottom of a figure

I am not able to show the caption at the bottom of figure. I always get in the middle. I would appreciate your help. Below is the code. \documentclass[fleqn,12pt,a4paper]{article} ...
49
votes
4answers
36k views

Two figures side by side

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 ...
16
votes
2answers
6k 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 ...
6
votes
1answer
6k views

subfig caption spacing

How do I reduce the vertical space between a caption of a subfigure and the image of that subfigure? I tried: \subfigure[\vspace{-0.2in} caption words] doesn't seem to do anything.
6
votes
1answer
947 views

Fixing wrapfig caption alignment?

I'm using wrapfig for the first time, and having a problem with its alignment of captions. As far as I can figure, what seems to happen is: if a caption is short enough that it fits it a single line ...
3
votes
2answers
486 views

How do I make custom float environments use the same numbering for captions.

I use a custom float environment that is basically used as a table environment that provides extra formatting. I would like this environment to use the same numbering as the regular table floats. Is ...
2
votes
2answers
2k views

Problem with caption and hyperref

When I compile the following example: \documentclass[11pt,a4paper,oneside]{book} \usepackage{caption} \captionsetup{margin=10pt,font=small,labelfont=bf} \usepackage[pdftex]{hyperref} \begin{document} ...
13
votes
3answers
14k views

LaTeX (beamer) — Is there a way to suppress the caption label of “Figure X:” or “Table X:”?

I am making a beamer presentation of someone else's research paper (so I don't have the original tex code). I am using pdfs of tables in the presentation but wanted to cut out all of the original ...
12
votes
1answer
4k views

Caption is bold. Can I have part of it not bold?

What is the simplest way to have part of a bold caption (including some inline math) non-bold?
76
votes
5answers
30k views

Why should a table caption be placed above the table?

In the papers I read the caption in figure floats is placed below the figure and in table floats the caption is placed above the table. I recognize that this is a common style that a lot of people ...
15
votes
1answer
28k views

How can I left-align a caption?

I am using this for captions: \usepackage[font=small,format=plain,labelfont=bf,up,textfont=normal,up]{caption} But they all come out centred - I want them aligned with the left margin - how can I ...
8
votes
1answer
6k views

Legend in caption

It may be a bit difficult sometimes to deal with the legend of a figure in a LaTeX document. Depending on the context, you may have to place the legend over the existing curves because of a lack of ...
4
votes
1answer
739 views

Very plain captions that can be placed in TikZ nodes?

I would like to define a very plain caption format that simply typesets the caption label and text as if it were normal inline text. Of course I would like to keep the the functionality of \caption ...
21
votes
2answers
3k views

Margin Figures/Captions

I have two figure/caption related questions. Firstly, in many textbooks, it is customary to put thin figures (along with their captions) entirely in the outer margin of the page. What is the most ...
4
votes
1answer
2k views

Subfloat labels don't display properly

The screenshot has the bottom part of a figure with two subfigures. As you can see, the labels have a very narrow width. I don't understand why. \begin{figure}[htp] \centering ...
5
votes
1answer
860 views

In amsart, how I can get caption spacing in tables to be like that in figures?

In the document class amsart, I get different vertical spacing around the caption in tables and figures. For instance, compare the difference: \documentclass{amsart} \begin{document} ...
5
votes
1answer
290 views

Listings and continuation captions [duplicate]

In my document (KOMA script article) I use the listings package for code listings and the caption package for additional control over captions. My problem is that some listings flow over multiple ...
11
votes
3answers
4k views

Line up captions on side by side figures

I want to place two (or more) figures with side by side. The figures are independent, so need separate captions, with no overall caption for the two. I know how to do this with minipages within a ...
4
votes
1answer
3k views

How to use \abovetopsep (to add space between a table's caption and tabular part)?

I read in the documentation of the booktabs package that \abovetopsep can be used to add some space between a table and its caption (instead of the lower-level \vspace{}). However, the exact placement ...
7
votes
2answers
4k views

How do I format subfigures captions using memoir?

I switched to using the memoir class and stopped including subfigures. All of my subfigures now interpret the caption as actual text, i.e. as [caption...], which shows up in the document with the ...
63
votes
3answers
62k views

Change the font of figure captions

I would like to italicize my figure captions and make them smaller. How can I do that?
12
votes
3answers
709 views

Label in caption

For certain styles it appears that the \label statement must be included in \caption to preserve good referencing. Why is that?
21
votes
1answer
34k views

Listings caption [duplicate]

I'm using the listings package with this \begin command: \begin{lstlisting}[caption=blabla, label=amb] This yields a nice code listing with a caption like "Listing 1.1 blabla". Is there a way to ...
21
votes
2answers
21k views

What is the correct way to caption a `tikzpicture`?

I have some trees drawn with tikz and I'd like to have some text associated with them. I can use \caption within figure, but not tikzpicture. UPDATE: Thanks for your advice. figure seems to put my ...