{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

4
votes
1answer
38 views

How to increase space between the bottom border of a boxed figure and its caption?

I am trying to generate a space (6pt) between the boxed figure and its caption. Since I am using tikz code \includegraphics did not work. Also I tried \setlength{\abovecaptionskip}{6pt}, ...
2
votes
1answer
34 views

How to write the caption of a english table in Persian when using xepersian package?

I am writing a report using the documentclass{report} and xepersian package. I have some tables in english but I want the caption to be in persian. Since I use the xepersian package, I have to put ...
2
votes
0answers
24 views

Caption of figure on multiple pages using PhDThesisPSnPDF class

I am writing my thesis using PhDThesisPSnPDF class. I need to make large caption of a figure to span over multiple pages. For most document classes package capt-of can be used: How do I make figure ...
6
votes
2answers
75 views

Space between table caption and caption text

At the moment, I have the following code in the preamble: \usepackage[justification=justified,singlelinecheck=false]{caption} \captionsetup{format=hang, labelsep=quad} This creates a nice space ...
6
votes
2answers
132 views

How can I take precise control over the size of caption text of images?

In the caption of the images of my text, the size of the text "Figure 1.1" (and so) is greater than the text itself. The result is How can I take precise control over this text? The code is ...
0
votes
0answers
44 views

Referencing an equation in the caption results in the error in the generated list of captions

In my thesis, I generate a list of figures and their captions in the beginning of the work. However, there appears an error in the generated list (in the beginning of the document) when a caption ...
3
votes
1answer
28 views

(color online) label in RevTeX

For colored figures, Physical Review journals require that the caption label takes the form "FIG. 1 (color online). Caption content" if the figure will not appear in color in print. Could someone ...
0
votes
1answer
17 views

Weird error with memoir sidecaption, subbottom and threepartable package

I have a weird error using threepartable, sidecaption, subbottom and memoir class ! You can't use `\prevdepth' in restricted horizontal mode. \TPTdoTablenotes ->\par \prevdepth ...
8
votes
2answers
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] ...
0
votes
1answer
20 views

Hyperref linking to first page when using \captionlistentry

On my document, I have defined a new trivfloat environment in order to make a list of equations. To add elements to this list I use \captionlistentry (in order to avoid the caption appearing under the ...
2
votes
1answer
14 views

Wrap caption in multipage lstlisting environment

I am following the accepted answer from this question to extend an lstlisting across multiple pages. It works great, however if my caption is too long the continued caption doesn't wrap, and this is ...
2
votes
2answers
755 views

Code listing spanning multiple pages with captions at top

Is it possible to span a lstlisting environment or lstlistinginput on multiple pages, such that the caption is repeated on each page (the listing counter stays the same), as well as being able to ...
3
votes
1answer
40 views

Figure: Sidecaption while text floats next to figure

I am restricted to a two-column and have a figure that I want to include in \textheight height with the caption on the other column. The figure spans exactly one column, but I don't know how to let ...
1
vote
1answer
36 views

Adding an equation to a graphical model created with tikz

I am using tikz. I have a graphical model and I want to add equations as explanations to the side. Just like in Thanks for your help! \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
398 views

Caption for align environment

I would like to add a caption under a set of equations that I have in the align environment (i.e., \begin{align} ... \end{align}). I tried \caption{...} inside the align environment, but it didn't ...
8
votes
2answers
103 views

Prevent pagebreak between minted and captionof

I know there are already many questions there covering that or at least similar topics. I've read this for example but can't get it figured out... At first here comes my MWE: ...
2
votes
0answers
30 views

Image will show up with \includegraphics but non with begin figure [duplicate]

if I use: \includegraphics{Graph} the image will show up, but not if I use \begin{figure} \includegraphics{Graph} \end{figure} Any idea why? Missing package? I need it because in the figure I ...
2
votes
0answers
24 views

multiple handcrafted labels for figure

The following MWE shows my attempt to create a list of references in a document, with links from text to reference and back. It works well in text, but badly in figures when I try make the reference ...
0
votes
1answer
24 views

Subfigure captions of EPS file formats do not align with images in two-column paper

I have trouble getting EPS images aligned work properly in latex. First, my figures were rotated by 90 degrees in the pdf output. So I rotated them by using "angle=90". But I am using a two-column ...
2
votes
1answer
9 views

Many indexes on the same figure

How can I put the indexes (a) and (b) on the left side of my figure, at different heights? \begin{figure}[] \begin{center} \includegraphics[width=1.0cm]{A} \end{center} \caption{...} \label{fig:1} ...
3
votes
1answer
16 views

How to index figures

I have the figures A and B. I would like them to be indexed as (a) and (b). \begin{figure}[] \begin{center} \includegraphics[width=1.0cm]{A} \includegraphics[width=1.0cm]{B} \end{center} ...
3
votes
2answers
318 views

Full width table with caption in refman doc

The refman document class has a big left margin for text. Only the headings are on the normal left margin. Perfect for what I'm doing. But I have a wide table (float) that must be centered on the ...
3
votes
1answer
46 views

How do you add captions in tikz nodes?

How do I add a caption to a tikz picture? This is a snippet of my latex: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \usepackage[paperwidth=40cm,paperheight=16cm]{geometry} ...
4
votes
2answers
70 views

Conditional dot

I did some changes to my LoF in order for the page number not to be printed with a dotted leader at the right margin but just with a short gap after the caption. Now I would like to have one dot ...
2
votes
1answer
47 views

Caption in Tikz without “Figure 1”

If I use this code, \documentclass{article} \usepackage{tikz} \usepackage{multicol,float} \usepackage{etoolbox}% provides \preto \usetikzlibrary{shapes,backgrounds} \tikzset{ every ...
0
votes
1answer
12 views

Figure caption has line break problems when using subfig

I'm using the subfig package and I'm getting words that are broken in captions. Can anyone explain why, or how to stop it? \documentclass[11pt,a4paper, draft]{report} \usepackage{gensymb} ...
1
vote
0answers
40 views

Caption settings before and after loading caption package

Why do captions look so different after the mere loading of the caption package? What are the default settings for a caption BEFORE loading the caption package? I would prefer to be able to load most ...
2
votes
2answers
49 views

Change longtable's font size without changing the caption

I'm trying to put quite a long table in my thesis. To save some space I want to reduce the row height, the column separator and use a smaller font size in the table. The problem with the following ...
1
vote
1answer
24 views

Twocolumn Revtex-4 figure caption is above the figure

Figure captions should be below figure (unlike table captions). But in Revtex4-1 the caption is above the figure. How can one fix this to make it appear below the figure? I'm bumping this should have ...
2
votes
1answer
117 views

Measuring/getting size of caption before it is typeset?

To solve a part of this question, I'd like to measure the size of a caption before it is typeset, and then use it to calculate the size of a matrix of nodes. The first problem I can see is that ...
1
vote
1answer
60 views

How to set figures and tables captions in APA style (without using APA6 class)

As one can see in the given link, APA style requires a very special format for captions in figures and tables. How can I realize this in standard article format? (I do not want to use the APA6 class ...
5
votes
1answer
404 views

How to adjust spacing between caption and table / figure in beamer?

I want to adjust spacing between caption and table/figure in beamer. However I am not able to overcome the warning Package caption Warning: \caption will not be redefined since it's already ...
1
vote
1answer
46 views

Caption and label on Minted code

I want to add a caption and label on a Minted source code so I can reference it, similarly to what you can do to figures. In Minted manual it says I can use the listing environment, which allows to ...
1
vote
1answer
56 views

change names in the list of contents

The command \addto\captionsfrench{\renewcommand{\abstractname}{Résumé}} didn't work for me, other problem in my program is when I use \addto\captionsfrench{\renewcommand{\contentsname}{Liste ...
2
votes
1answer
276 views

New float environment in tufte-book with alternate caption placement for full width figures

I am trying to define a new environment for photographic plates in a tufte-book.cls book. The environment should: Work just as the existing figure / table environments do for non-starred uses, and ...
0
votes
0answers
35 views

Show the figure together with the caption

I'm looking at the nature-template and wanted to see how I can "bring back" the \includegraphics command and show the original image. Right now, the template file ignores the \includegraphics command ...
0
votes
1answer
43 views

Can TikZ be used in a caption block?

I want to get the following effect: I wrote the code show below, but itt cannot be compiled. I don't know what is wrong with it, or how to get the effect of Figure 1. What should I do? ...
2
votes
1answer
35 views

Use \raisebox with \depth in caption

I want to use \raisebox in a caption. I know that \protect is often needed in these situation, but this (and other combinations I have tried) does not work: \documentclass{article} \begin{document} ...
35
votes
2answers
46k views

Table and figure side-by-side with independent captions

Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch ------------ ----------------- TABLE | a | b | ...
0
votes
1answer
73 views

Apply a figure caption inside of a longtable

I'm using the 'longtable' environment to display a number of figures. I'd like to include a caption at the bottom of the first page as a Figure caption, not as a table (so that it also shows up in ...
1
vote
1answer
117 views

caption above figure using knitr

This is a question originally asked on stackoverflow, but it seems to receive no attention and answers there. Since it's related to latex, I'm posting it also here hoping to receive some hints. I ...
0
votes
1answer
25 views

error note when trying to latex a list of figure captions

What does @xdblarg mean as an error note with respect to a list of figures?
4
votes
2answers
100 views

Automatic way to use the first sentence of the figure caption as the short caption

Is there any automatic way to use the first sentence of a caption as the short caption to be displayed in table of contents? Precisely I want to write: \caption{First Sentence. Second Sentence.} to be ...
1
vote
2answers
30 views

How to change the numbering style of subcaption only

This question is somehow related to Change counter style for caption. But here I want to use subcaptions as well. I want to create myStyle for captions. \DeclareCaptionFormat has three options. From ...
1
vote
1answer
124 views

Centering the caption of figure without warning

Original, After I add a package \usepackage[justification=centering]{caption}, it became it's exactly I wanted, however, an unexpected warning came out, it said: ...
2
votes
1answer
35 views

Centering two line caption in memoir

I'm struggling to center my two line captions. I'm using memoir and I want the second line to be the reference to where I got the figure from. I'm using the following code for the figure: ...
4
votes
1answer
24 views

Changepage Package [\adjustmargin] Does Not Work Correctly With \captionof When the Caption Package Is Loaded

The justification of the text is skewed when all of the following conditions are met: The \adjustmargin environment from the changepage package is used. The \captionof command is used. The caption ...
1
vote
1answer
40 views

Change counter style for caption

I want to make numbering in caption right-to-left. For example Change in the caption: شکل 01 to شکل 10. The reason I want something like this is I am working with right-to-left language and I can ...
5
votes
1answer
50 views

hyperref link jumps beneath table's top caption when floatrow is included

I use the following packages related to captioning, tables and hyperlinks: \usepackage{hyperref,caption} \usepackage[style=Plaintop]{floatrow} \usepackage[referable]{threeparttablex} I have a table ...
0
votes
0answers
40 views

Remove “Lst.” from list of listings

I've renewed the title of my list of listing and the caption of my code snippets with the following commands: \renewcommand{\lstlistingname}{Code} \renewcommand{\lstlistlistingname}{List Of Code} ...