{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

7
votes
3answers
3k views

How to redefine the caption command with optional arguments

I'm writing a thesis that has double spacing on by default throughout the document. However, captions on figures need to be singlepaced. I can do that like this \normalsize \singlespace \caption{ ...
7
votes
1answer
88 views

How to change the order of words in a caption?

I'd like to change the order of word in the captions of figures and tables. Instead of Figure 1 , I'd like to use 1. ábra. How can I do this? Thank you in advance
7
votes
1answer
369 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, ...
7
votes
1answer
357 views

How to use caption and label in grammar environment?

I can't manage to add a caption and a label to my grammar environment: \documentclass{article} \usepackage{syntax} \grammarindent 80pt \begin{document} \begin{grammar} <condition> ::= "$" ...
7
votes
2answers
999 views

minted's listing environment with hyperref and caption package together

I use the minted package for code highlight. I use its listing environment. I also use the hyperref package to provide links all through my document: figures, tables, listings, etc. If I import the ...
7
votes
1answer
81 views

Make caption look right in greek

i'm having trouble trying to make a caption look right. I want to write in Greek the "figure" name, that is, "Σχήμα". The problem is after I put \addto{\captionsenglish}{ ...
7
votes
1answer
269 views

Caption positioned at the side of the figure

I would like to have the caption of the Figure on the side of the figure. Plus I want to control caption width. Also, caption and Figure should be aligned all the way to the left and right of the ...
7
votes
1answer
2k views

LaTeX Centering newline in subfloat caption

I have these images with their title beneath: I want to add some information below, like this: The good news is, I'm able to do it. The last screenshot is from my pdf previewer. ...
7
votes
1answer
384 views

Controlling the subcaption space in memoir

Memoir provides these two declarations to control the vertical space surrounding a subcaption: \tightsubcaptions \loosesubcaptions I was wondering if there is a way to control this spacing more ...
7
votes
1answer
2k views

How can I change figure caption label?

I am using revtex4-1 for a Physical Review Letter. Typically when a figure is made, the caption starts out FIG. 1. <text>. I am creating a supplementary file and I would like it to say FIG. S1. ...
7
votes
1answer
337 views

Aberrant footnote numbering behavior with footnoted captions

I don't have an explanation for the behavior shown by the following two MWEs. Clearly, the footnote number is altered by the length of text in the caption. Please advise me as to why this strange ...
7
votes
1answer
104 views

\protect on \rule in \caption does not work

I would like to put a \rulecommand inside a caption. Classical solution is supposed to be \protect{} but that's not working. I still get Error: Argument of \@caption has an extra }. Why? Here is a ...
7
votes
1answer
1k views

pdfTeX warning (ext4): destination with the same identifier (name{figure.1}) has been already used, duplicate ignored

I've tried to make bilingual caption with package "ccaption" and compiled it with pdfLaTeX. It works fine but with a warning: pdfTeX warning (ext4): destination with the same identifier ...
7
votes
1answer
155 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
1answer
1k views

Small default distance between the caption and the table

By default (in the article class), a table caption (without letters with depth) is very close to a table with two or more rows. Only if the table has one row then the caption and the table will be at ...
7
votes
1answer
585 views

How not to show a label under a graph using subfloat — restart numbering of labels

I have this code: \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[caption=false]{subfig} \graphicspath{{/folder/images/}} \title{} ...
7
votes
2answers
2k views

changing the position of a caption

I have a code for putting a figure: \begin{figure} \includegraphics{some_narrow_and_tall_image.pdf} \caption{caption of the figure which can be pretty long} \end{figure} The page format is ...
7
votes
2answers
368 views

combining listings and tufte-book, listings caption on tufte's margin

I am not very familiar with all latex details, but I'd like to use the listings package in a tufte-book document. However, the listings package places its captions above or below the listing and I ...
7
votes
2answers
8k views

Missing number, treated as zero

A follow-up question to this one Aligning subcaptions with tikz pictures vertically This is the code I am using, worked to a pretty minimal scenario: \documentclass{article} \usepackage{float, ...
7
votes
1answer
3k 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 ...
7
votes
1answer
121 views

Remove footnote marks from \listoftables

I'm using footnote marks in my table captions like this: \caption{This is title\protect\footnotemark with a foot note} and then I just use a \footnotetext{Closer explanation...} . This works just ...
7
votes
2answers
1k views

How do I make figure captions span multiple pages?

How do I make figure captions span multiple pages? I have a very long caption for a figure and would like it to carry on to the next page. EDIT: I would like this to work in both one sided and two ...
6
votes
4answers
3k views

Table caption align top-right

How I can align caption for table like this? Current code: \begin{table}[h] \caption{} \centering \begin{tabular}{|l|r|r|l|} \hline № & X & Y & Время ...
6
votes
2answers
372 views

Two labels in one caption possible?

In a lot of journals it is common to have single digit figure numbers and denote parts in the figures as (a), (b), and so on. I wanted to use a similar style. After reading the documentation to the ...
6
votes
3answers
391 views

Invisible listing captions

Short version: how can I make a listing's caption show up in the List of Listings but not in the body of the document where the listing is? I'm writing a university report, and many of my subsections ...
6
votes
2answers
2k views

How can I put a matrix in a figure caption?

I would like to put a matrix in a figure caption. The following example demonstrates the idea: \documentclass{amsart} \usepackage{graphics, epsfig, psfrag} \begin{document} \begin{figure} ...
6
votes
1answer
566 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, ...
6
votes
4answers
733 views

Background color for the caption of a listing

I'm considering this piece of code \lstinputlisting[ language=C, breaklines=true, basicstyle=\scriptsize\ttfamily, numbers=none, ...
6
votes
2answers
6k views

How to put two images next to each other with a) and b) labels?

I want to put two images next to each other and in order to do that I have written these code: \begin{figure}[h] \begin{minipage}{16pc} \includegraphics[width=16pc]{P_1.eps} \caption{\label{fig4} ...
6
votes
2answers
837 views

Indenting the first line of figure captions

I want to create a small indentation in the first line of figure captions, similar to the way LaTeX indents the first line of paragraphs. The caption package does not seem to support this. Is it ...
6
votes
1answer
481 views

using [] in the caption of the subfigure

The subfigure caption uses []. Because of that, I am unable to use [] in its caption. \subfigure[ This [] is important] How do I use the brackets in the caption of the subfigure?
6
votes
1answer
6k views

The space between the table and its caption is very small

I have a table written like this: \begin{table} \centering \begin{tabular}{|l||c|c|} \hline&Column 1&Column 2\\ \hline\hline cell1 & cell2 & cell3 \\ ...
6
votes
1answer
2k views

Table caption very skinny

I have a table like this: \begin{table} \centering \begin{center} \begin{tabular}{c|c|c|c} Data set & Image size & Hole size (pix) & Total time\\ \hline Mailbox & 459 $\times$ 489 ...
6
votes
2answers
614 views

Different float types side-by-side

I'm familiar with using minipages inside a float to effectively place two floats side-by-side, but is there a way to do this with different float types? Eg a Figure and a Scheme (chemscheme)?
6
votes
2answers
117 views

How to make the table caption look smaller

I am new to the world of LaTeX and I am trying make my correlation table look nice. My LaTeX code is below: \documentclass{article} \usepackage{geometry} ...
6
votes
1answer
135 views

Caption number increases by two for every inclusion

I am trying to typeset my captions in margin using marginpar and captionof. Here is what I get by the MWE. Note the wrong caption numbers. The first caption is included using macro \fixedmarginpar ...
6
votes
1answer
1k views

caption package doesn't recognize font=doublespacing?

The journal I'm targetting requires "doublespaced" figure captions, and posts like these http://www.latex-community.org/forum/viewtopic.php?f=45&t=4187 made me try out the caption package. I ...
6
votes
1answer
3k views

scrreprt – How to adjust distance between caption and table?

I am new to LaTeX, tentatively using it to prepare a complicated industrial document (laboratory test report). I had selected the report class. After numerous experiments, I have just found that just ...
6
votes
3answers
2k views

Longtable caption numbering

I am trying to prevent a table from showing up in the list of tables. I used long table to create the table. This is the first table in my document. I know \caption*{} command should do the trick but ...
6
votes
2answers
961 views

How to put the url centered under the caption of a figure?

I would like to put a source under the caption of my figure. The only thing that is not working is when I put the URL, the caption and the URL don't stay in the middle. Also \url{...} didn't work by ...
6
votes
2answers
995 views

How to give any figure a caption based on its horizontal size?

I have figures in both portrait and landscape and of various sizes. I'm trying to find a leeway to give any figure a caption based on its horizontal size. In my thesis.cls file, I've already set a ...
6
votes
3answers
109 views

Table heading too low if on the top of the page

Consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage{booktabs} \begin{document} \lipsum[1] \clearpage \begin{table}[htbp]% \centering% \caption{Test ...
6
votes
1answer
880 views

How to make figure caption boldface

When I create a figure caption, LaTeX automatically creates the Figure1: part and then the caption. How to make the Figure1 part boldface? My figure TeX codes is this: \begin{figure}[ht!] ...
6
votes
1answer
893 views

How to get caption above listing with minted?

I'm using the minted package. How can I get the caption to show before the code in the document? \documentclass[a4paper]{scrartcl} \usepackage{minted} \begin{document} \begin{listing}[H] ...
6
votes
1answer
1k views

How to change caption color for a color theme in beamerposter?

I am facing a problem. In my poster, I use a color theme, for that reason in figure caption comes with green color, that is quite invisible. Is it possible to change the color? \documentclass[final, ...
6
votes
1answer
2k views

IEEEtran, subfig clash?

The following code which uses the IEEEtran class, and subfig produces compile errors like, "argument of caption has an extra }", or "TeX capacity exceeded" etc. But the moment I comment out the ...
6
votes
2answers
4k views

tikz legend in caption

I have adapted a piece of code that I found on the Q&A forum multiple legends in pgfplots as follows in order to include the legend of a drawing directly into the caption: EDIT 1 ...
6
votes
2answers
4k views

List of figures with sources

What is the best way to place the source of images in my document? I have some images and they are shown in the \listoffigures like expected, but how can/should I point out where they come from? ...
6
votes
1answer
5k 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} & ...
6
votes
1answer
48 views

Force color of listoffigures

Imagine the following example: \documentclass{scrbook} \usepackage{xcolor} \begin{document} \begin{figure} \caption{\textcolor{green}{Green} and \textcolor{red}{red}} \end{figure} ...