{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
1answer
9k views

cannot use \caption under minipage

I am using following code to import two images next to each other. When \caption{} is used, LaTeX gives me error caption outside float. \begin{minipage}{.5\textwidth} \centering ...
7
votes
3answers
24k views

Caption on tabular environment

I have got codes like the following (generated by Kile). How can I add a caption. I guess I should have used the table environment. Is there any solution now? ...
7
votes
1answer
211 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
636 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
3k 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
385 views

Block quote in figure caption

I need to put a multi-line quote in a figure caption. I've put code together that does this correctly if I override several errors, but I'd like the document to compile without errors. The code: ...
7
votes
4answers
7k views

Table with foot note

I have a table and some of the number inside has some symbol like * and ** which should be explianed as footer ( at the end of the table not the page) I dont know how to do that and I dont want to ...
7
votes
1answer
12k views

option clash for package xcolor

I'm trying to set some color on my caption like this \usepackage[svgnames]{xcolor} \usepackage[labelfont={color=red,bf}]{caption} But it gives me this error "option clash for package xcolor". But ...
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
1answer
2k views

How to change “Listing 1. Caption” to “Figure 1. Caption”?

I have a listing like so: \lstset{language=Python,caption={Caption}} \begin{lstlisting} some Python code goes here \end{lstlisting} In the PDF this appears as Listing 1. Caption. How can I make it ...
7
votes
2answers
706 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
529 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
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
483 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
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
3answers
13k views

Beamer: change size of figure caption

I am creating a beamer presentation and I would like to change the size of the caption under the figures. I am using the Madrid theme. I tried the obvious way: \caption{\scriptsize{Text of the ...
7
votes
2answers
615 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% ...
7
votes
2answers
5k 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? ...
7
votes
1answer
1k 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: ...
7
votes
1answer
101 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
13k views

Resize table and caption

I usually apply a \scalebox to resize things, but I always stumble upon the fact that I cannot simply include a \caption{...} in the \scalebox. As an alternative to \scalebox, I found I may use ...
7
votes
1answer
433 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
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
1k 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 ...
7
votes
2answers
1k 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
116 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 ...
7
votes
1answer
470 views

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

Now I have Table 1: Title I need Table 1. Title
7
votes
1answer
108 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
337 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
678 views

Change caption of figure for references

I changed the caption of my figures running the following command (I'm using the babel package): \addto\captionsngerman{\renewcommand{\figurename}{Abb.}} If I use \autoref{$LABEL} to reference to ...
7
votes
1answer
1k views

How to layout four figures with floatrow, two of them vertically?

how can I get a layout like the one below in my document? _____________ _____________ _______________ |Big Picture1| |Big Picture2| |Small Picture1| | | | | |______________| | ...
7
votes
1answer
432 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
3k 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
378 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
134 views

Equal spacing for figures and listings

I want to include figures and listings in my document and I want them to have the same spacings to text and captions. \documentclass[a4paper,12pt,openany,parskip,oneside,ngerman,headsepline]{scrbook} ...
7
votes
1answer
145 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
2k 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
227 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
2k 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
874 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

Add a figure title and x-axis label to a figure matrix created using pdfpages

Background I previously asked: Can I convert a 16 page pdf into an 8x2 matrix in LaTeX? I ended up creating a 3x5 matrix of images from a 15 page pdf by compiling a document "foo.tex": ...
7
votes
2answers
3k 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
1answer
655 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 ...
7
votes
1answer
4k 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
2answers
309 views

Indent further paragraphs in the caption of a table

I have a little problem how to create a caption to my table. It looks ok as of now, but I would like to indent the heading of a new paragraph. Also right now, I cannot even create a new paragraph ...
7
votes
2answers
2k 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 ...
7
votes
1answer
5k views

How to align caption with table? [duplicate]

\documentclass[letterpaper,12pt]{article} \begin{document} \begin{table} \caption{Test test test test test} \begin{tabular}{c c c c} \hline\noalign{\smallskip} $V_{a}$ & $B$ & $r$ & ...
6
votes
2answers
7k 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
3answers
1k 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 ...