{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

8
votes
1answer
1k views

Algorithm2e caption above code

I can't seem to figure out how to place a caption at the beginning of an algorithm2e pseudo code. I know it's possible with the ruled environment, but I don't want those lines at the top and the ...
8
votes
1answer
1k views

How to get a dot instead of colon in table captions?

Now I have Table 1: Title I need Table 1. Title
8
votes
1answer
2k views

Figure title in List of Figures

I've got a figure which has several annotations on-image. The figure caption explains these: \caption{Image of my item. (1) Part of the item. (2) Another notable part of the item. (3) Yet another ...
8
votes
1answer
182 views

Hyphenation in listings captions doesn't work correctly

I have the problem that automatic hyphenation in listings caption doesn't work if automatic linebreaking is activated. It works if I set breaklines=false or captionpos=t, which is weird. Is there a ...
8
votes
1answer
3k views

Caption package not working with beamer

I am using beamer to make a presentation. But the default caption font size seems big to me. So I tried to make the font size smaller using caption package. I tried this: ...
8
votes
2answers
3k views

Top-aligned subfigure with bottom-aligned caption

This is a follow-up to an earlier question regarding left-aligning subfigure captions. Having achieved the left-alignment goal, I would now like the caption of the subfigure to be bottom-aligned, ...
8
votes
3answers
1k views

One caption in listoffigures for a ContinuedFloat

I am using the \ContinuedFloat command of the subfig package to print a series of figures in more than one page. I would like to have one caption in the List of Figures and "compress" the pages so ...
8
votes
1answer
791 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 ...
8
votes
2answers
187 views

Align position of a table exactly to another one

I have a problem. I just made a table which was very wide, so I decided to split it into two smaller ones. Turned out the 2nd half is a little bit smaller in width than the first one. Now I want these ...
8
votes
1answer
3k 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 ...
8
votes
1answer
519 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 ...
8
votes
1answer
284 views

Citations in captions as separate argument

Whenever I include a table of a figure in my research papers, I cite the source of the information in the caption itself. However, I don't want this citation to appear in the List of figures/tables. ...
8
votes
1answer
286 views

display the caption of a figure as if it was a subfigure

I know how to use the subfig package to fit many subfigures (each with its own caption) into a larger figure (with a general caption). I know how to use the sidecap package, the put a figure's ...
8
votes
1answer
461 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 ...
8
votes
2answers
85 views

Problem with subcaption spacing

When using the subcaption package to place tables1 side-by-side, the spacing between a table and its subtable caption is too small if the table caption is placed above the tables and the subtable ...
8
votes
1answer
136 views

subcaption: remove page number from lof

I use the caption and subcaption package as shown in the example below: \documentclass{article} \usepackage{caption} \usepackage{subcaption} \captionsetup[subfigure]{list=true} \begin{document} ...
8
votes
2answers
8k views

Centering figure captions in IEEEtran

I am working on a paper using the IEEEtran template in LyX. I have run into a problem: While the contents (in this case, a table) of the figure float are centered, the caption is aligned to the left ...
8
votes
1answer
325 views

Produce PDFs with only the figures/tables without captions and with only the captions without figures/tables

I'm submitting the final copy of a journal paper and got the following requirements: Camera-ready copies of all figures and tables in a single pdf/ps file (that is, produce a single ps/pdf file ...
8
votes
2answers
450 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 ...
8
votes
1answer
300 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 ...
8
votes
1answer
865 views

How to localize label using algorithm and algorithmic packages

I am writing a paper in Italian and I need to include pseudo code in my latex document so I am currently using the algorithm and algorithmic packages. At the top of every algorithm the label Algorithm ...
8
votes
2answers
8k 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 ...
7
votes
2answers
30k views

Error: \caption outside float

When I add the following table (table1 shown below) I don't get any error, but when adding table2 (shown below) I get the error i)\caption outside float. \caption ii) Undefined control sequence ...
7
votes
4answers
4k 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 & Время ...
7
votes
2answers
8k 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} ...
7
votes
2answers
460 views

KOMA script: How to reduce vertical space below caption

The vertical space below figure caption is large how to reduce it. \documentclass[a5paper]{scrbook} \usepackage[demo]{graphicx} \begin{document} \chapter{Sample chapter} \section{Sample section} ...
7
votes
2answers
514 views

How to label a figure?

I understand how to put a caption on a figure, I'd do something like, \begin{figure}[h] ...put figure here... \label{figure1}\caption{this is a figure} \end{figure} and the caption reads, ...
7
votes
2answers
3k 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} ...
7
votes
3answers
254 views

Only get filename and extension of listing, not whole path

I am trying to add the file name as caption. I was able to do this setting caption=\lstname but this shows the full path. I am now trying to get the name of the file and extension to show only. I ...
7
votes
1answer
1k 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, ...
7
votes
3answers
596 views

How does one create, caption, label and refer to a subfigure?

So its a fairly simple question to a problem people normally experience. I have a rough idea of what to do, but I am looking for the correct way of doing things. So in the solution I will include what ...
7
votes
1answer
35k 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 ...
7
votes
2answers
3k views

Horizontal and Dashed lines in caption

What I'm looking to do is caption a graph with something like "It can be seen from x (solid line) and y (dashed line)" Where "solid line" and "dashed line" are replaced by two solid and dashed ...
7
votes
1answer
263 views

Using siunitx in captions?

I am using pdflatex(texlive 2011) to compile a document. Unfortunately it does not compile. ! Undefined control sequence. \metre ->\ERROR l.69 ...feld \num{6}{\metre} mal \num{6}{\metre}} ...
7
votes
2answers
951 views

Caption on side by side matrices

I have two matrices side by side, like this: \[ \left[\begin{array}{cc} a & b \\ c & d \end{array}\right] \qquad \left[\begin{array}{cc} e & f \\ g & h ...
7
votes
2answers
4k views

subfigures with memoir

I switched to memoir and stopped including subfig and now all my subfigures interpret the caption as actual text, i.e., "[caption...]" shows up in the document with the square brackets. How do I have ...
7
votes
1answer
2k views

cite in caption of listings

I am trying to cite a paper in the caption of listings. I have the following code: \begin{lstlisting}[caption=Example of something (Adapted from \cite{abc})] example \end{lstlisting} But this is ...
7
votes
2answers
2k 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 ...
7
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 ...
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 ...
7
votes
1answer
638 views

How to specify the caption names in bilingual captions without babel or polyglossia?

I use Axel Sommerfeldt's bicaption package to setup bilingual captions. bicaption needs babel's \selectlanguage to set the different caption names for different languages. However, I cannot use the ...
7
votes
2answers
2k views

How to use a longtable with only one entry in the list of tables

I'm using longtable to spread my table over three pages. Unfortunately the caption is also added three times to the list of tables. Is is possible to have it displayed only once?
7
votes
2answers
5k 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 ...
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
4k 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!] ...
7
votes
1answer
626 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
2answers
2k views

Align captions of subfigures:

Hi I want to include the following two tikz figures in my document: \documentclass{article} \usepackage{tikz} \usepackage{subcaption} \begin{document} \begin{figure} ...
7
votes
1answer
2k 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] ...
7
votes
1answer
2k 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, ...
7
votes
2answers
670 views

Subfloat indexes misaligned when using setcaptionwidth

I have the following document: \documentclass{article} \usepackage{subfig} \usepackage{graphicx} \usepackage{geometry} \setcaptionwidth{12cm} \begin{document} \begin{figure}[t] \centering% ...