{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
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
292 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
6k 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 ...
7
votes
1answer
1k 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
749 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
982 views

Captions for tables included via pdfpages

I have a large number of multipage longtables as independent pdfs. I am including these pdfs in my main document using the pdfpages package. My code for including the PDFs currently looks like this: ...
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
379 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
7k 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
1answer
18k views

centering caption of a figure

I want to put the caption of my figure in the center but I can't do that. when I put my figure in the center the caption is also in the center but when the caption is too long and there is a return to ...
6
votes
1answer
13k views

How to reduce space between image and its caption?

I m importing one image in latex document. But caption has bigger font than my normal text on page. \documentclass{article} \usepackage{graphicx} \begin{document} Some text... ...
6
votes
3answers
2k 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 ...
6
votes
3answers
510 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
3answers
180 views

How to insert a picture without the name “figure”

I am trying to put a figure with a subtitle but without the name "figure". For example: 'This is a triangle' and not put the name "Figure": 'Figure: This is a triangle' I tried: 1. ...
6
votes
1answer
201 views

TikZ's extended line penetrates the figure caption

Here is an example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}\centering \begin{tikzpicture}[extended line/.style={shorten >=-#1,shorten <=-#1}] \draw [very ...
6
votes
2answers
603 views

How can I turn off table and figure captions?

I am using my figures and tables both in report documents, where I want them to have caption text, an in presentations made with Beamer, where I want them to not have a caption text. I am using the ...
6
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 ...
6
votes
4answers
910 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
1k 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
3answers
2k views

'longtable' caption without incrementing 'table'?

For reasons both complex and confusing, I would like to caption a longtable without incrementing the table counter in the process. I want to have two consecutive longtable environments to be ...
6
votes
1answer
23k 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 ...
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
740 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
235 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
155 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

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

Space after float with [h]

this is my first time here, and I have this question: I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space ...
6
votes
2answers
1k 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
150 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
3k 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
473 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 ...
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
1answer
7k 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
2answers
238 views

Different Caption-Setup for top and bottom figures?

is there a way to control the caption format used for figures, depending on where the figure has been placed? In particular, i would like to have different formatting of figure captions for figures ...
6
votes
1answer
118 views

Redefine figure counter with scrbook

I am using the scrbook (KOMA Script) class, as this MWE shows: \documentclass[11pt,a5paper,twoside,BCOR=8mm,DIV=12,headings=normal,open=right]{scrbook} \usepackage[ngerman]{babel} ...
6
votes
1answer
124 views

How to get caption of figure/table using table reference?

How can I get the caption of figures and tables using their references? Something along the lines of \refcaption{tab:mytable} would print This is a pretty table., which is the caption of the table ...
6
votes
1answer
71 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} ...
6
votes
1answer
1k views

Change “FIGURE 1:” color, but not caption color

I would like to change the color of the "FIGURE 1:" portion of my caption to blue (including the number & colon), but I want the remainder of the caption to be black. I have tried the following in ...
6
votes
2answers
3k views

Figure and table side by side with common caption

I'm not a LaTeX expert, and I want to align a table and a figure side by side, with a common caption; the table and the figure should be aligned to the bottom, too. I tried this: \begin{figure} ...
6
votes
1answer
260 views

putting the caption of a table on its right

I have a table environment, which has a tabular environment inside, and I would like to put the caption on its right (the table is narrow enough for that), and not below it. How would that be ...
6
votes
1answer
539 views

Legend referencing in caption *and* externalization

I am trying to make a reference to a plot inside a figure's caption while using the externalize library. The issue of plot reference using externalization has already been raised in this question. I ...
6
votes
1answer
438 views

Count number of lines in a caption

I have a problem formatting my captions for figures/tables. What should happen is the following: I need one line above the image and two lines above and below the caption. To make it look good, I ...
6
votes
2answers
5k views

How to change font size of longtable-lines without changing font size of caption?

I'd like to change the font size of all contents of a longtable to footnotesize. However the rest of the document and also the caption (!) shall be (stay) in normal size. (pdflatex is used) How can I ...
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.