{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

3
votes
2answers
35 views

How to \caption a longtable imported from a file by \input{file} and use a smaller font?

I'm generating a boring longtable from a database into a file. My goals are: Import the generated longtable into another document. The longtable data is dynamic and must be imported periodically. ...
1
vote
1answer
36 views

Bad caption imporing figure from pdf

I'm making some figures with Visio 2013 and exporting them as pdf files. I'm including them in LaTeX: \begin{figure}[h] \centering \includegraphics[width=1.00\textwidth]{./Figures/figure.pdf} ...
1
vote
4answers
40 views

Centered captionlabel above justified caption text

I'd like to have the captionlabel (e.g. Figure 1) centered on a single line with the actual caption justified below. Something like this As you can see, I've achieved what I want with the help of ...
1
vote
0answers
19 views

Six figures (3x2) on one page using subcaption package?

I want to have 6 figures on one page distributed on 3 rows and 2 columns. I've tried using \begin{subfigure} in the subcaption package without any luck. The figures are displayed correctly, but any ...
2
votes
1answer
35 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
1answer
35 views

Equivalent of one and half line spacing in terms pt

I have the following decleration: \documentclass[12pt,a4paper,oneside,noindent,nocenter,bold]{thesis} The required format for captions of figures is that there should be a skip equal to 1.5 line. ...
0
votes
2answers
29 views

Side by side images (Centering subfloats and changing font)

I have the following images produced by the following code: \begin{figure} [H] \def\tabularxcolumn#1{m{#1}} \begin{tabularx}{\linewidth}{@{}cXX@{}} % \begin{tabular}{cc} \subfloat[Node 3 - Therapy ...
2
votes
2answers
30 views

Captioning side by side figures

I need to get two figures side by side and I am using the following code: \begin{figure} [H] \centering \begin{subfigure}{0.49\textwidth} \centering \includegraphics[width = \textwidth]{1e4} ...
2
votes
2answers
36 views

Align itemize text with graphic and use caption

I would like to align the top of the text with a figure and add a caption with a label to it. But as soon as add caption=test,figure to the adjustbox the picture floats above the text. How do I ...
10
votes
3answers
38k 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? ...
0
votes
1answer
13 views

Cannot cross-reference figure after using \captionof [on hold]

I'm using \captionof instead of \caption because I had a problem with the figure environment. Whenever I wrote the code to place two figures and some text between them, the text was placed before the ...
3
votes
2answers
38 views

Caption away from the figure

I have made a block diagram using the \framebox command. A large white space exists between the caption and bottom of the figure. How can I reduce it? Code: \begin{figure*}[!t] ...
1
vote
1answer
46 views

Show table caption only on first page [duplicate]

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 ...
1
vote
0answers
59 views

Missing figure numbers

I have a separate file that can show figure number properly. However, I do not get a figure number in my another file with the same code for figure. In my main file, in lines 182, 197 and so on. My ...
1
vote
0answers
21 views

How to split a string to figure float with figure name, label and caption?

I am struggling with a shorthand macro that converts a string to a figure. At the end is a working, but unstable version what I am trying to do. The goal is to parse make a command (or macro) like ...
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
4k 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
25 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 ...
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
16 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
49 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
33 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
30 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
53 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
428 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 ...
6
votes
1answer
27 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
25 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
28 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
26 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
64 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
85 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
62 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
33 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
22 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
46 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
228 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
36 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
35 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
38 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
18 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
48 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
97 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 ...