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
6 votes
1 answer
115 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,124
3 votes
1 answer
36 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
50 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
75 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
0 votes
0 answers
36 views

Can't write captions with indices [closed]

I have the following problem with my code. Every time I try to use indices in any caption of a tabular or an image I get this error: "! Font U/bbold/m/n/10.95=bbold11 at 10.95pt not loadable: ...
user avatar
1 vote
1 answer
36 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,321
3 votes
1 answer
62 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
29 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
9 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
45 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
  • 303
3 votes
2 answers
59 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
57 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
  • 323
0 votes
2 answers
42 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
13 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
  • 371
0 votes
1 answer
28 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
30 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
41 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
  • 103
0 votes
2 answers
24 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
26 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
30 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
47 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
22 views

Image on full slide with captions in beamer

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
  • 747
0 votes
1 answer
37 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
0 votes
0 answers
22 views

autoref figure labels in tufte-book

This seems to be an issue with tufte-book figure labeling but I'm not sure whether it's something I can work around. \documentclass{tufte-book} \usepackage{listings}\lstloadlanguages{C} \usepackage{...
user avatar
0 votes
1 answer
18 views

Figures Assigned Rogue Numbers When Adding \caption

I've been trying to caption the figures in my paper, like 'Figure 1', 'Figure 2', etc. Instead, something like 'Figure 1.1' is prepended to the caption. Could anyone please explain? Upd: here's an ...
user avatar
  • 1
0 votes
1 answer
24 views

Redefine \label and \ref commands so that they also work without having to be next to a \caption or \captionof

I've been trying to use \label and \ref neither after a \caption nor \captionof, like so: Figure \Roman{chapter}.\arabic{figure}: The caption % A manually created caption \label{fig:the_ref_name} % ...
user avatar
0 votes
1 answer
29 views

How can I remove extra white space of a caption when listing wrap inside a figure?

I want to wrap listing inside a figure. But when I do that there is plent white space in between its caption. How can I remove extra white space of Figure's caption when listing wrap inside a figure? ...
user avatar
  • 418
2 votes
1 answer
37 views

Why are my captions sometimes italicized and sometimes not when using the same structure of code?

I want to make all my captions the same i.e normal font and unitalicized just like the first diagram. I don't know why they are different whilst using pretty much the same code. \begin{center} \...
user avatar
0 votes
0 answers
46 views

List of Figures not compiling due to fragile commands

I have my dissertation written in LaTeX and contains about 40 figures, some of the captions contain short and long format of acronym package, and 2 of them contain cites. Recently I added another one ...
user avatar
  • 1
0 votes
1 answer
35 views

Side caption in place of one subfigure

I currently have the following code displaying 5 subfigures: \documentclass{article} \usepackage{subcaption} \usepackage{caption} \usepackage{graphicx} \begin{document} \begin{figure*}[t] \...
user avatar
  • 463
0 votes
1 answer
27 views

Figure caption with long description, but description not in list of figures

I try to have longer descriptions for my figures after the caption. So far, I found a solution to do that. However, the longer description is also displayed in the list of figures, which I don't want. ...
user avatar
0 votes
1 answer
27 views

Centering Caption on Table

so I know this has been asked many times before, but none of the solutions seem to be working for me. So I have a table and a caption on said table. But the caption is aligned to something on the left....
user avatar
  • 13
0 votes
1 answer
22 views

Cropping figures cuts the upper caption

I tried to crop the blank space above and below the image with \includegraphics[trim=left bottom right top, clip]. It worked very well at the bottom, however at the top it cuts the title (caption). ...
user avatar
  • 1
2 votes
1 answer
85 views

Align figure and caption

I am novice on LaTeX, and I tried to align figure and caption. But This happens. What should I do? Especially caption Graph1 is looking bad so I want to align with the square figure. I am finding ...
user avatar
  • 125
0 votes
0 answers
61 views

Package caption Warning: Unknown document class (or package), standard defaults will be used

I have used the following packages in my IEEEtran document class, but I am getting the above warning: Package caption Warning: Unknown document class (or package), standard defaults will be used. See ...
user avatar
  • 61
1 vote
1 answer
62 views

How to put some commands into longtable by \AtBeginEnvironment?

In my case, I am 100% sure that the second and other captions like "continuation of table N" is the same for all of the tables. So I have reason to put this in all the longtable's: \...
user avatar
0 votes
0 answers
34 views

Strange behaviour with tikz, apacite, and citation in caption of a figure [duplicate]

I have the following main file \documentclass{article} \usepackage{standalone} \usepackage{tikz} \usepackage{apacite} \bibliographystyle{apacite} \begin{document} \begin{figure} \input{...
user avatar
  • 1
3 votes
1 answer
59 views

Caption package is adding vertical spacing to my document

\documentclass{article} \usepackage[table]{xcolor} \definecolor{background}{rgb}{1,0.62502,0} \usepackage{caption} \usepackage{lipsum} \usepackage{hyperref} \hypersetup{ colorlinks = true, ...
user avatar
  • 736
2 votes
1 answer
44 views

Error by loading subcaption using the LNCS class

I've used the subcaption package without any problem. Now I am drawing the tikz picture using the documentclass LNCS. If I use the subcaption package, \documentclass[runningheads]{llncs} \usepackage[...
user avatar
  • 221
0 votes
0 answers
12 views

How can I mix arabic two counter styles in caption formatting? [duplicate]

I am hoping to mix two counter styles ( arabic numerals and lower case letters) for the caption formatting as shown in the subsequent exemple:
user avatar
0 votes
1 answer
40 views

Why can't I remove the [] in the "\caption[]{afsda\footnote{123}}"?

I search for a way to insert footnote in a caption and I do it: \documentclass{article} \usepackage{threeparttable} \usepackage{graphicx} \begin{document} \begin{figure}[h] \begin{minipage}{0....
user avatar
  • 633
1 vote
2 answers
71 views

Change color of label based on what Environment I'm currently in

Here's my current preamble.tex \documentclass{report} % basics \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{sidenotes} \usepackage{textcomp} \usepackage{url} \usepackage{hyperref} ...
user avatar
1 vote
1 answer
33 views

Automatically use list of figure entry in caption

Using the optional argument for \caption it is possible to change the entry placed into a list of figures. The style I use in my thesis always has a "header" or "title" for a ...
user avatar
0 votes
0 answers
50 views

Adding a caption to python code snippet

A similar question was asked here, but the solution given in the comments didn't work for me. I have a code snippet in the following format and I would like to add a caption to it. How can I do this? ...
user avatar
  • 105
0 votes
1 answer
26 views

listof Command Malfunctioning - float Package

Consider the following code for the creation of two new floats in an article: \documentclass{article} \usepackage{graphicx,float} % The First Float Type \floatstyle{boxed} \newfloat{BoxImage}{htpb}{...
user avatar
0 votes
1 answer
61 views

How to fix Undefined control sequence \caption@setlabelseparator with TexLive 2022?

I am trying to use again the answer from this question of mine from 2019 (Misplaced \noalign. \captionsetup ->\noalign when using \captionsetup inside memoir \legend command) with Tex Live 2022, ...
user avatar
  • 4,365
0 votes
0 answers
27 views

Split really long caption in two columns

I have a 2 columns document and I have an Image which goes on one column (the left one). The image fits inside the column but the caption is too long, so it doesn't respect the page borders, it ...
user avatar
  • 1
2 votes
2 answers
125 views

Problem: Table Caption Is On Two Lines

I would like the Table numbering and the caption to be on one line. Can someone show me what I need to adjust? Everything else is where I want it, and I prefer not to add a lot of new code. \begin{...
user avatar

1
2 3 4 5
70