{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

6
votes
1answer
474 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
1answer
215 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
880 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| | | | | |______________| | ...
6
votes
1answer
912 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 ...
6
votes
1answer
370 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
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
1answer
5k 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
2answers
82 views

table and caption distance

I am quite new to Latex, and I was wondering, if there is way to change the distance between the caption and the table. If you compile this example you can understand what I mean. ...
6
votes
1answer
88 views

Captions for tables in Beamer

I am attempting to add a caption to a table in a Beamer presentation. The caption I would like to add is "this is my caption" but when I compile the caption reads "Table : this is my caption". What ...
6
votes
1answer
98 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} ...
6
votes
1answer
163 views

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

Now I have Table 1: Title I need Table 1. Title
6
votes
3answers
620 views

Minipage, multiline caption centering

No matter what I do, I can't seem to center the bottom line of these minipage captions. Along with the several variations in the code below, I have also tried ...
6
votes
3answers
414 views

Hang caption in lstlisting

If I use the following command \usepackage[skip=20pt,hang]{caption} when a caption is very long it hangs in figures and tables, however, if the caption is of a lstlisting environment it doesn't. ...
6
votes
1answer
563 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 ...
6
votes
1answer
371 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
1k views

captionsetup redefines my margin captions nicely, but I want other captions to be default style

I'm writing a document with small and supporting figures placed in wide margins and larger figures in the text. I use the captions package and redefine the captions with \captionsetup{ ...
6
votes
1answer
2k views

Algorithms package ignores caption package

I'm using the algorithms package in my document to get a floating environment for algorithms to live in. \usepackage{algorithm} I'm using the caption package to make the captions on my figures ...
6
votes
1answer
2k views

Change caption width together with subfloat

In the following code the package that give the problems is \usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up,width=0.85\textwidth]{caption} What I want to do is change ...
6
votes
2answers
147 views

Input Auto-Generated Figures Captions

I'm trying to include an Matlab-auto-generated figure-caption tex-file using \caption{\input{Spectrogram-2011-09-28-S003.title.tex}} but if fails with error ERROR: Argument of \@caption has an ...
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 ...
6
votes
1answer
97 views

Problem with macro using \newcount in \caption

I have a macro \foo that performs arithmetic on it's argument: \documentclass{article} \newcommand{\foo}[1]{ \newcount\tmpR \tmpR=#1 \advance\tmpR by -1 R{\number\tmpR} } ...
6
votes
2answers
1k 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} ...
6
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": ...
6
votes
1answer
779 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: ...
6
votes
1answer
297 views

Centered captions containing \vref may not always appear as expected

I've noticed that when centered captions contains \vref to some reference, the captions may sometimes not become entirely centered. I see this especially in my document where there are two figures on ...
6
votes
1answer
199 views

Outer join symbols

In a previous post entitled "Symbols for Outer Joins" a solution was given to produce outer join symbols. However, this solution generates an error when, e.g., $R \leftouterjoin S$ is used in a ...
6
votes
1answer
187 views

Strange vertical space before the caption of a longtable with KOMA-Script classes when xcolor is loaded

When using one of the main KOMA-Script classes — scrartcl, scrreprt, scrbook but not scrlttr2 —, the vertical position of the caption in a longtable environment changes when one loads or unloads the ...
6
votes
1answer
429 views

Disappearance of the table title/caption, when using colortbl

I'm formatting a manuscript according to the PNAS style, as prescribed in http://www.pnas.org/site/authors/LaTex.xhtml When I color my table using the package colortbl, the title/caption disappears ...
6
votes
1answer
181 views

Variable Caption spacing for `tikzpicture` and `tabular`

The \abovecaptionskip option gives different results with tikzpicture and tabular. MWE: \documentclass{report} \usepackage{tikz} % \begin{document} ...
6
votes
1answer
385 views

How to rotate a table with caption and have a section name in the same page

I need to rotate a table with caption, but I need to have a section name in top of the same page. Already tried with sidewaystable, but it reserves a entire page only for the table. Then I've tried ...
6
votes
1answer
834 views

Captioning nested subfigures with subcaption

The following creates a figure with three images arranged appropriately. If I remove the two \caption{} lines, it numbers the main subfigures as I'd like, and keeping the two \caption{} lines puts ...
6
votes
1answer
478 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 ...
6
votes
2answers
217 views

Storing captions in a file

I would like to have LaTeX read figure captions from a list stored in some file rather than writing their text directly in the \caption{} command. However I've not been able to figure out if this can ...
6
votes
1answer
71 views

Is it possible to let captions wrap a bit around includegraphics within figures? [duplicate]

Is it possible to place the caption a bit around includegraphics within the figure (to save some space?). As it may be misunderstood what I want, I try to explain it exemplary: Currently the minimal ...
6
votes
1answer
156 views

\autoref doesn't work correctly when used in tufte-book

i want to use the \autoref command (from the hyperref package) in the document-class tufte-book. mini-example: \documentclass{tufte-book} \usepackage{hyperref} \begin{document} ...
6
votes
1answer
492 views

Alignment of Margin caption with floatrow and caption

I want my captions in marginpar to be left aligned. I am using raggedright option in caption package along with floatrow package. The captions are left aligned only for long captions. MWE ...
6
votes
1answer
5k views

Formating captions in longtable tables

I'm typesetting my dissertation using Springer's svmono class. The class defines its own formatting of table and figure captions. I have a couple of multipage tables which I typesetted using longtable ...
6
votes
1answer
832 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 ...
6
votes
1answer
72 views

How to place figure/table without caption in ConTeXt?

When I am trying to \placefigure[here]{none}{\externalfigure.... I am getting figure with caption "none" instead of figure without any caption. How to \placefigure without a caption in ...
6
votes
1answer
317 views

How to keep multiple figure together

I have 6 graphs that I have to keep together while showing. I have to make them almost same width as text width, otherwise the graphs will not be properly seen. So I cannot add them side by side but I ...
6
votes
2answers
192 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 ...
6
votes
1answer
707 views

Adjusting Vertical Spacing between a listing and its Caption

I am very new to LaTeX. I am inserting a listing as follows: \lstinputlisting[float=hk, caption=My Caption comes here, captionpos=b, ...
6
votes
1answer
68 views

caption+autonum+{a certain structure}=freeze

PDFLaTeX'ing this results in a freeze: \documentclass[12pt]{book} \usepackage{caption} \usepackage{autonum} \begin{document} \begin{figure}[ht] \begin{align} x=y \end{align} \caption{Caption} ...
5
votes
4answers
2k views

How to change captions and dots?

I've received my master thesis from proofreader. I've received a lot of small things to fix but they're defined inside my document class which is report. How to change caption name from "Table" to ...
5
votes
1answer
5k 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... ...
5
votes
3answers
1k views

Caption without text below "Figure''

I have a problem with captions. I'm new to LaTeX and I don't know English names of "this". I want to have something like: Figure X.X: bla bla bla bla bla bla bla bla etc. ...
5
votes
2answers
1k views

Issue with capt-of package

I'm using the capt-of package to create a caption for my figures: \newcommand\figureFrame[4]{% \begin{center} \includegraphics[#1]{#2} \captionof{figure}{#3}\label{#4} ...
5
votes
2answers
3k views

A style prevents me from setting \belowcaptionskip, how do I change that?

I am writing a paper using the llncs style (Springer lecture notes for computer science). Using the default formatting, the distance between and the caption and the caption and the table is very big, ...
5
votes
2answers
132 views

How to get a picture with text to the right of it

what I want is to have a quote like this: I returned and saw under the sun, that the race is not to the swift, nor the battle to the strong, neither yet bread to the wise, nor yet riches to men of ...
5
votes
3answers
2k views

An error produced when using the caption package

My .tex file: \documentclass[a4paper,twoside,portrait,12pt,openright,final,pdflatex]{report} \usepackage[bindingoffset=8mm]{geometry} \usepackage[T1]{fontenc} \usepackage{arabtex} \usepackage{utf8} ...