Questions tagged [captions]

{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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
22 views

Missing Listing number in caption

My problem is that I don't have automatic listing numbers in the caption. (I thought they would be included by default and can't seem to find a way to include them) \begin{lstlisting}[caption={test}, ...
user avatar
  • 11
1 vote
1 answer
32 views

Add PDF bookmarks to list of figures, list of tables, and figure and table captions

I want to bookmark my LaTeX-created .pdf file in two ways: in the \listoffigures and \listoftables and at the figures and tables themselves. I started trying to apply Bookmarks under List of Figures, ...
user avatar
0 votes
1 answer
38 views

Automatic Line Break in Headings

I would like to have an automatic line break in the title of a table or figure if the title is too long so that the title has a justified alignment and the two line are exactly the same length. If ...
user avatar
5 votes
1 answer
100 views

How can I use `enumerate` inside a caption of a figure?

I have tried to applied following solution How can I prevent new-line after all items in enumeration? inside a caption of a figure, but I am having an error as follows: ! Missing number, treated as ...
user avatar
  • 738
3 votes
1 answer
68 views

Wrong figure caption and number, attempt to implement APA 7 style

I'm trying to adjust the figure formatting style to the APA 7 style. So far I'm doing well, but now I got an issue. When cross-referencing a figure in the text, it appears as "Figure 1a" ...
user avatar
0 votes
0 answers
34 views

How to force numeration in tables and figs

Hello Friends I would like to force the enumeration in figs and tables: I need Figura 1 y tabla 1. I am using report class but my tables and figs took the chapter enumeration too: Tabla II:1. and is ...
user avatar
1 vote
1 answer
24 views

Remove the dot from the figure caption and in the text [closed]

For Figures, I'm getting the following for the caption: Figure 1.: Caption In the text, I get the following: See Figure 1. for blah blah blah I'm fine with the colon in the caption, but I want to ...
user avatar
0 votes
0 answers
29 views

Can I force \captionsetup to position caption above the table?

My institution's thesis writing requires table captions to be located on the top of all tables. Although that is declared in the .cls file of the template provided by university within the first ...
user avatar
2 votes
1 answer
53 views

enlarge the spacing after subcaption (subcaption package)

When I use the subcaption package, there is but a very small amount of whitespace between the subcaption title and the image below it. I can add a big space with '\bigskip', but I want to know whether ...
user avatar
  • 427
0 votes
0 answers
24 views

Stacking tables

Is it possible to stack two tabulars within a table? For example, get something like with a single caption. I tried using \quad, as the case of figure, but with no success. Any ideas? Also, using \...
user avatar
  • 199
6 votes
1 answer
197 views

Error while compiling previously working code

I'm trying to compile the exact same code suggested in the answer to How to Label and Caption TikzpictureS inside a tabular environment: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} ...
user avatar
  • 159
1 vote
0 answers
30 views

How to caption an image as a table in LaTeX? [closed]

I want to caption an image as a table in LaTeX. \begin{figure}[H] \centering \includegraphics[width=\columnwidth]{./figures/spec1.png} \caption{mycaption} \label{fig:img5} \end{figure} ...
user avatar
0 votes
1 answer
23 views

package 'caption' not adjusting captions from the 'listing' environment in 'minted'

It appears that package caption is not able to adjust the captions in listings from minted. In the example below, the captions for figure and table environments are affected by \captionsetup but ...
user avatar
  • 1,424
0 votes
0 answers
11 views

titletoc editing List Of Figures issues with caption

The template I am using requires the titletoc package. The issues I have with the current list of figures are that: There is an indent between the Figure number and a long caption such that the first ...
user avatar
  • 1
0 votes
0 answers
15 views

Write figure caption in one line using \mbox and split figure caption two line in the list of figure

I want to write figure caption. The figure caption is long and split into two line, where second line is consist of one letter. Now I want to make it one line. This is original code: \documentclass{...
user avatar
0 votes
1 answer
25 views

How to add the second caption by bicaption in a extra lIstoffigures

I have problems that my second figure caption in English is not showing up the List of Figures by using the package bicaption. It pops up under the the other entry in the same listoffigure (German one)...
user avatar
  • 3
0 votes
1 answer
26 views

How to set vertical space in table and figure as picture follows?

How to set vertical space as picture above? I only can set for all caption and I can't set for only "figure" caption and "table" caption. \documentclass[a4paper,oneside,11pt]{book} ...
user avatar
0 votes
0 answers
21 views

How to change caption name in some chapter?

I have an example code: \documentclass[a4paper,oneside,11pt]{book} \usepackage{graphicx} \begin{document} \chapter{ONE} \begin{figure}[h!] \centering \includegraphics[width=3cm]...
user avatar
0 votes
1 answer
31 views

Caption for a model in the align environment

I'd like to caption my model with "model 4.1: A beautiful equation". I could manage to write "model 1: A beautiful equation" with the following code i found in the forum Caption ...
user avatar
  • 11
0 votes
0 answers
19 views

How to keep long captions in the list of figures section in thesis?

I have long captions in my figures. And I am using this packages: \documentclass[12pt,twoside]{report} \usepackage[ top = 2.75cm, bottom = 2.50cm, left = 3.00cm, right = 2.50cm]{geometry} \...
user avatar
1 vote
2 answers
38 views

xltabular colors the table caption when using rowcolors

I'm creating a table using rowscolor from xcolor package, but the caption is treated as a row and it's colored. How to avoid this behavior ? \documentclass{article} \usepackage[table]{xcolor} \...
user avatar
0 votes
0 answers
22 views

How to make the second line of the figure caption start below the word "figure"?

How to make the second line of the figure caption start below the word "figure"? so is my caption. I don't want this indentation that occurs for the subtitle. I would like the second line to ...
user avatar
0 votes
1 answer
24 views

Changing the format of the label to refer tables in the same section

I am trying to refer to different tables that are at the end of the table but the reference comes up the same: \documentclass{article} %----------------------------------------------------------------...
user avatar
0 votes
1 answer
41 views

Captionbeside flushright

I would like to use the captionbeside environment from KOMAscript to display the caption on the right besides some content. I want it aligned to the right of the document though, not immediately right ...
user avatar
  • 147
0 votes
0 answers
16 views

List of figures has a huge space at the end of one page

I have a long list of figures (more than 5 pages), but on the second page of list of figures, there is a lot of white space at the end. It does not happen at any other pages. I have tried shortening ...
user avatar
0 votes
0 answers
18 views

Figure caption running into text

I am using the extbook class based on the book class to write an a5paper-sized book. At some figures, the caption of the figure runs into the main text or is oddly close to it (see examples). I have ...
user avatar
  • 253
7 votes
1 answer
221 views

Changes to textcase and LaTeX kernel in the June 2022 release affecting uppercased captions

With the June 2022 release of LaTeX, the case-changing commands formerly controlled by the textcase package have been absorbed into the kernel, as described in ltnews35, page 4. A result of this ...
user avatar
  • 2,136
3 votes
1 answer
49 views

Fully customized figure template - align figures and text (captions) at will

I would like to manipulate subfigures and captions exactly as I want. The result I want to obtain is visible just below: I want to display Image 1 at 0.8\textwidth (the width/height ratio will always ...
user avatar
  • 33
1 vote
1 answer
105 views

Fitting caption width to table width using nicematrix package

I'm very much a LaTeX beginner and searching for possibilities to include footnotes below tables, I came across the nicematrix package. This package combines basically everthing I need to generate ...
user avatar
  • 13
4 votes
1 answer
79 views

Remove period between Appendix letter and figure number in Appendix captions

In the report class, figure captions appear as Figure A.1. I'm trying to get LaTeX to output Figure A1 instead (i.e., remove the period between the letter and the number).
user avatar
1 vote
1 answer
37 views

own defined caption style works differently with same set by \captionsetup

Q1: I think the following two examples should have the same typeset because the style content by \DeclareCaptionStyle is the same as the set by \captionsetup. But the real typeset (please see the ...
user avatar
  • 2,435
3 votes
1 answer
69 views

Remove subfigures from list of figures when using tabularray package

I am using the code below to create a figure with multiple subfigures which looks like this: However, when I make the list of figures it also includes entries for the subfigures, which I don't want. ...
user avatar
  • 63
1 vote
1 answer
32 views

Change order of subcaption labels

I have a three part figure which, using the code below, gives this output: However, I would like to change the labelling of the subfigures to swap (b) and (c). How can I do this? \documentclass{...
user avatar
  • 63
0 votes
0 answers
10 views

Cannot use Figure in Standalone [duplicate]

I am trying to create a standalone pdf with the following source code: \documentclass{standalone} \usepackage{tikz} \usepackage{graphicx} \usepackage{xcolor} \usetikzlibrary{calc} \usetikzlibrary{...
user avatar
1 vote
0 answers
52 views

The "caption" package adds a white space below the floats - How to remove it?

I noticed that with the caption package loaded, the vertical space separating an h-float with the text is not the same above and below the figure. Here are the (approximate) measurements I made: With ...
user avatar
  • 325
3 votes
2 answers
70 views

Why is there a small gap between the left margin and the picture?

I have a problem with the usage of the package caption with the package sidecap: When I load the package caption with the package sidecap, the package caption shifts pictures in SCfigures a little bit ...
user avatar
2 votes
2 answers
88 views

Why does \floatsetup[table]{capposition=top} not work here?

Why does \floatsetup[table]{capposition=top} not work here? \documentclass[journal]{IEEEtran} \usepackage{floatrow} \floatsetup[table]{capposition=top} % Table float box with bottom caption, box ...
user avatar
  • 443
0 votes
2 answers
44 views

gaps between horizontal lines in table

Hello I would like to replicate this table I already made something that looks like this: There are a few things that bother me My caption is longer than horizontal lines gaps between the first row ...
user avatar
  • 35
0 votes
0 answers
39 views

Insert a Figure with a caption

Halo I want to insert a figure with a caption below with this code: \documentclass[12pt,A4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amsmath} \...
user avatar
0 votes
0 answers
15 views

Why does using type=table in the subcaption package prevent counter from being reset?

Consider the following example \documentclass{article} \usepackage{subcaption} \begin{document} \begin{figure} \begin{subfigure}{\linewidth} \caption{Cat} \end{subfigure} \caption{Fox} \end{...
user avatar
  • 381
0 votes
1 answer
30 views

Change the symbol after #number in figure/table caption

This is slightly similar to the question about renaming the figure caption (answered here), but now I want to change the symbol appearing right after the number, e.g.: Figure 1: ... into Figure 1. .......
user avatar
  • 293
1 vote
1 answer
34 views

Algorithm caption left alignment

I am struggling with moving the caption's location to the left. Is there a way to fix the alignment of the caption in the algorithm? Below are some of the packages that I used and the code. Thanks. \...
user avatar
0 votes
1 answer
47 views

Deleting extra vertical space when figure caption is not given

I wonder how I can get rid of the space created by deleting the table title (highlighted in red)? I used the example from: https://latex.org/forum/viewtopic.php?t=1279 \documentclass{article} \...
user avatar
  • 105
0 votes
2 answers
27 views

Remove "algorithm X :" in an algorithme2 caption

I tried to use caption* : \documentclass{beamer} \usepackage[lined,boxed,commentsnumbered, ruled,vlined,linesnumbered, french, onelanguage]{algorithm2e} \usepackage{caption} \begin{document} \begin{...
user avatar
  • 151
0 votes
1 answer
28 views

How to create a picture composed of 4 sub-sub-figures with 4 sub-sub-captions and 2 sub-captions?

I want to create a page in overleaf contains 4 sub-sub-figures, each figure has a sub-sub-caption ? each two sub-sub-figures have its own sub-caption, as illustrated in the bellow picture:
user avatar
  • 260
2 votes
0 answers
34 views

Conflict with hyperref's draft option, cleveref's \cref and... \textbf in \caption

The following MCE compiles like a charm. \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \hypersetup{draft} \begin{document} \begin{figure} \caption{% foo% % \textbf{...
user avatar
0 votes
1 answer
50 views

Table captions default to foreign language

I am typing up a latex report for a Vietnamese client. In order to spell their name correctly, I need to import the relevant language package \usepackage[vietnamese]{babel} The only issue is, when I ...
user avatar
0 votes
1 answer
28 views

Image on full slide with captions in beamer [duplicate]

I followed this answer to put a picture on the full slide: https://tex.stackexchange.com/a/333121/27523 { \setbeamertemplate{navigation symbols}{} \begin{frame}[plain] \makebox[\linewidth]{\...
user avatar
  • 759
0 votes
1 answer
44 views

Changing/Adding the Caption label

I wanted to have a new caption label "Plate 1", "Plate 2".... and so on. In addition, the same document should have figure and table captions also. That means I need "Plate 1&...
user avatar
1 vote
1 answer
27 views

Creation of a new command so that you do not have to write a certain caption by hand

I have a problem. My figures should have a caption like <Caption> - Own representation, based on [1]. As you can see I am writing Own representation, based on [<literature>]. Is there an ...
user avatar
  • 199

1
2 3 4 5
70