{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

2
votes
2answers
8k views

Add source to figure caption

How can I add a source to a figure? I need to add \ref, \cite or just free text. Something like that: \begin{figure} [ht] \centering \includegraphics[width=0.95\textwidth]{res/figure.pdf} ...
2
votes
2answers
23 views

new caption type in captionof

\captionof command from caption package allows caption for various floats. However we cannot use it to typeset an algorithm caption like: \captionof{Algorithm}{<Caption text>}. I tried the ...
5
votes
1answer
3k views

Knitr and rmarkdown will not add figure captions to the output

I am writing a report on Rmarkdown and knitr using RStudio, and cannot find a way to get figure captions on my document. My code for the chunk where I try to plot is like: ```{r ...
0
votes
0answers
21 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 ...
2
votes
1answer
25 views

A conflict between `caption` & `longtable` packages raises the `overfull \hbox` warning!

Note: This is not a duplicate, as I've already searched most of the suggested duplicates in search of an answer, but it proved to be of no avail! Therefore, please help! Problem: Overfull \hbox ...
1
vote
3answers
35 views

Right align a caption with an image

So, I am doing an outline where, as you go down the subdivisions, the left margin pushes progressively to the right, yet all the text stays flush on the right hand side. For aesthetic reasons, I keep ...
0
votes
0answers
7 views

Caption package messing with Endnotes package [duplicate]

I'm facing a weird problem with caption and endnotes packages. I have some figures and their caption contains endnotes. However, at each call of \endnote, the endnote counter is incremented by 2 ...
1
vote
1answer
15 views

Sideways figures captions on previous page

My thesis guidelines specify that a full page figure must have it's caption on a preceding page, also on it's own page. For rotated figures I would like to be able to rotate these captions as well. ...
3
votes
3answers
1k views

Create caption without float *and* without caption package?

In the appendix of my thesis, there is a large number of tables and longtables which does not need to float, as they shall appear one after the other just how they fit on the pages (and it is no ...
1
vote
1answer
2k views

No caption number for figures and tables

I whant to make some of my figures just without a number. Instead of Fig. 1: Caption. I want simply Caption. I tried to do \caption*, but it doesnt work for me. Even after caption package upgrade. ...
1
vote
0answers
48 views

Add caption and list of listings to own listings environment

With listings and caption packages I can set up caption for lstlisting with \captionsetup[lstlisting]{...} create list of lstlistings \lstlistoflistings I can also define my own environment ...
0
votes
1answer
31 views

Sans-serif references in captions

I use a serif font for my document (koma-script document class scrbook) but a sans-serif font for captions. If I reference, e.g. an equation, within my caption, this number is printed in serif, not ...
2
votes
2answers
25 views

Left justified comment in table caption without caption package

I need to left justify long table captions, without overwriting all the special formatting (font etc.) of the style file I am required to use. I tried to use \usepackage{caption} ...
0
votes
2answers
50 views

align caption of figure in list of figure

I have a figure in LaTeX with a caption that doesn't fit into one line, e.g. \begin{figure} \includegraphics{} \caption{This is a very long caption that does not fit into one line} \end{figure} ...
2
votes
2answers
426 views

Adding a caption to a graphic inside a longtable

I have the following longtable : \begin{longtable}{|p{10cm}|} \hline some text \includegraphics[width=10cm,keepaspectratio]{\basedir some.png} some text\\ \hline ...
5
votes
1answer
22 views

Algorithm2e: What is the recommended method to change the caption of ONE algorithm?

I want to read the caption of one of my algorithms typeset by algorithm2e to read Listing instead of the default algorithm. What is the recommended/best way to achieve this? I actually have a ...
1
vote
1answer
23 views

Vertically centering figures with caption remaining bottom aligned [duplicate]

When I use subfig package to have two images in one figure the marker (a) stays bottom aligned with (b) but the image is not centred vertically (Figure 1). When I use minipage command to have two ...
1
vote
1answer
27 views

Missing $ inserted in python code

I use python3 (with code not from me) to insert data from a database (bsddb3) from the program GRAMPS into a LaTeX document (TeX Live 2014) and I receive the following error messages: ! Missing $ ...
1
vote
0answers
25 views

how can remove part of figure caption from list of figure in latex?

I have this caption of figure: \caption{these are my figure. (a):aaaaa. (b): bbbbbb.} that appear in below of figure in text. All part of this caption appear in list of figure. I want only appear this ...
1
vote
1answer
60 views

How does LaTeX calculate the width of a caption? What is it based on?

A pretty straighforward question... I thought of it while using the caption package, where you can set the width parameter for a caption. I am wondering if there is a better (smarter) way-perhaps the ...
2
votes
1answer
83 views

Measuring/getting size of caption before it is typeset?

To solve a part of Scaling (and annotating) images in a rotated matrix of tikz nodes, scaled to page size?, I'd like to measure the size of a caption before it is typeset, and then use is to calculate ...
2
votes
1answer
60 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
0answers
27 views

insertion picture in latex problem [duplicate]

I'm using latex editor to insert a picture. When I view the output in pdf file the "Diagram.jpg" appear above the picture. How I can remove it? the code written for insertion is: \begin{figure}[h] ...
1
vote
0answers
20 views

Figure environment not compiling onto pdf

I'm trying to get the following image to show up in my document: \begin{figure}[h] \includegraphics[width=\linewidth]{experimentalapparatus} \caption{Experimental Apparatus. Copied from Dr. Wes ...
2
votes
1answer
29 views

Table caption above, figure caption below in ConTeXt

My definition looks like this: \setupcaptions[location=top] \setupcaptions[way=bysection,prefixsegments=section,headstyle=\bf] And placement of tables ...
1
vote
1answer
16 views

Figure caption side by side of the last subfigure

I have a figure consisting of 4 subfigures and a quite long caption. What I would like to do is to have the first three subfigures in the first row and the last one in the second row while the ...
6
votes
1answer
44 views

List figures with \listoffigures but don't show the figures themselves

For a journal submission, I need a list of figure captions at the end of my manuscript but they explicitly asks not to include the figures themselves in the document. I have added \listoffigures at ...
2
votes
1answer
217 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 ...
3
votes
2answers
39 views

How do I make part of my table caption in italic font?

I am very new to Latex and I am trying to make a very simple table with a species name in the title (caption). I want all of my title to be normal font except for the species name, which should be ...
6
votes
2answers
35 views

Hyperref compatability with automatically bolded first sentence of float caption float

I am able to automatically make the first sentence of a float caption bold by following the approach given at Automatically bold first sentence of a floats caption. However, when I use the hyperref ...
2
votes
0answers
34 views

Add a caption under an image

I'm trying to get "Figure 1" as a caption under my picture but it isn't displaying for some reason, can somebody spot my error? I've removed text/formulas that wouldnt affect this part of the code, ...
3
votes
2answers
36 views

Space before colon in beamer captions

As you can see below, LaTeX is formatting my captions like this: Figure : caption, while I would like them to be Figure: caption, without a space before colon. Here's a MWE: \documentclass{beamer} ...
0
votes
1answer
19 views

Custom citation in list of tables

The problem i have right now is that, i need to use different citation in list of figures and text as latex thinks the citation i have in list of figures comes first and numbers it like that. Hence i ...
0
votes
1answer
17 views

Two figures side by side - caption

I have two figures side by side in my work and I need to add captions to them. However when I add captions they are not in line with the figures. Is anyone able to help me? Thank you very much. This ...
0
votes
1answer
46 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
96 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 ...
2
votes
1answer
21 views

How to add a tablenote for a caption [duplicate]

How is it possible to make a table note for the table caption? Something like \begin{table} ... \caption{...\tnote{1}.} ... \begin{tablenotes} \item [1] : blabla. \end{tablenotes} \end{table} ...
0
votes
0answers
14 views

Table of figures: Caption error [duplicate]

In my LaTeX document I have some figures with a big description in the caption so I don't want all the caption to appear in the Table of Figures but instead a short version of it. For that I used ...
4
votes
1answer
37 views

Two-column text within a caption environment

I have a particularly wide figure with a particularly long caption that I've lovingly put in a landscape page in a memoir document with pdflscape. As the figure is relatively thin and wide, and the ...
3
votes
2answers
26 views

Two captions, one figure, one line

I have a figure that contains two images side by side. I want the first to be Figure 1 and the second image to be Figure 2. I'd like to have the caption written beneath both of them. ...
4
votes
1answer
17 views

Indentation in caption after the first line

I have long captions for my tables and figures and I want my captions to be indented 3 characters after the first line. For example Table 1.1. bla bla bla ...bla bla bla ...bla bla bla . above ...
1
vote
1answer
22 views

One-column figure in a two-column document : top and bottom alignment with text

I have a tall image in a figure float in a two-column document that I want alone in a single column. I would like the top of the image and the bottom of the figure caption to be both vertically ...
1
vote
1answer
25 views

Setting margins below and above figures does not have any effect in beamer

For the sake of using captions I'd like to put my graphics into a \begin{figure} ... environment. Doing that a white space is added before and after the picture, table or whatever. This answer is ...
3
votes
1answer
64 views

How to use underscore in a variable

I have a variable x which takes different names including underscore, for instance 1_10. Later, I want to use that variable as the title of a picture: \caption{\x} However I can't do that because ...
2
votes
2answers
153 views

frenchb/babel has no effect [closed]

As the title indicates, loading the frenchb/babel with \usepackage[frenchb]{babel} does not properly format my document for french typography and special characters ('é' is replaced with 'é', etc...) ...
0
votes
0answers
22 views

How to resize caption with a plot when the caption comes first?

I am writing my thesis. I have to put my captions above my figures. I have to use figures because the template we use automatically creates a table of contents for us. I use pgfplots to graph my data. ...
19
votes
5answers
12k views

Rotate picture with caption

How can I rotate both a picture and its title in TeX? Parameter in \includegraphics allows to rotate only a picture.
1
vote
1answer
40 views

Show table caption only on first page

I have a \longtable that splits over two pages and currently shows the label and caption at the top of each page. Can I change this so that the caption and label to only appear on the first page and ...
4
votes
2answers
53 views

Put a caption under a drawn picture

I have the following code that produce a 3x3 grid with an arrow in it. Some of the grid cells have a # in them. \begin{picture}(185,90) \put(0,0){\framebox(30,30)} \put(30,0){\framebox(30,30)} ...
0
votes
1answer
62 views

Caption above figure

How can I set the caption to be above the figure ? It has something to do with package floatrow. If I comment the line which is loading it, all is OK. I dont accept solutions as "disable floatrow ...