2022 Developer Survey is open! Take survey.

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
0 votes
2 answers
19 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
  • 149
0 votes
1 answer
22 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
27 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
45 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
14 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
32 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
24 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
  • 151
0 votes
0 answers
19 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
16 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
25 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
  • 402
2 votes
1 answer
34 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
45 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
32 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
16 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
25 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
  • 3
0 votes
1 answer
20 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
44 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
60 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
57 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
34 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
  • 449
1 vote
2 answers
66 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
31 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
33 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
25 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
57 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,335
0 votes
0 answers
26 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
104 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
0 votes
1 answer
51 views

Caption above inserted PDF [closed]

I have inserted a three pages long table in my project. The table was added as a pdf document. Now I would like to insert a caption above the table with Table A= … I have tried to figure it out by ...
user avatar
0 votes
0 answers
39 views

Should font in figure match caption font or document font?

I am aware that the writing in a figure (for example text on axis, in block diagrams etc) should match the same font and font size as the rest of the document for consistency. However, IEEEtran.cls ...
user avatar
1 vote
1 answer
28 views

nudge caption left or right along with figure or table?

I periodically need/want to slightly 'nudge' the placement of a figure, or table, to slightly off-centre (xx em to the left, or xx em to the right). This is easy enough with \hspace{xxem} as shown in ...
user avatar
1 vote
1 answer
31 views

Controlling captions for subfigures

I want to move around the positions of subfigures as follows. Move the Panel 3 figure below the Panel 2 figure; Move the captions below the Panel 1 figure; and if possible Align the subcaptions at ...
user avatar
  • 107
4 votes
3 answers
156 views

What's the proper way to renew "\caption" command for short and long description?

I am trying to renew the latex \caption command where I want a \listoffigures with the short description and both short and long descriptions in the figure's caption. The output that I expect is as ...
user avatar
1 vote
1 answer
31 views

Subfigure caption placement incorrect

No matter how many packages I remove, I can't seem to find out why the captions on my subfigures are being placed on top of the figures rather than below. I've stripped away everything in my document ...
user avatar
  • 73
3 votes
2 answers
99 views

Cleveref and caption-based command - wrong references

I am trying to create a caption command that highlights the first sentence and also uses the first sentence as a short caption for the table of *. Let's call it kaption. This is done using the ...
user avatar
  • 253
6 votes
3 answers
268 views

How do I change the caption of the figure to "graph"?

Currently my code is \caption{Change in biomass in KCl group} and it displays "figure 1: Change in biomass in KCl group" however I would like to change it to "Graph 1: Change in biomass ...
user avatar
0 votes
1 answer
35 views

I can't control font size within caption

Here's my preamble \documentclass[12pt]{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \newcommand{\vs}{\vspace{.1in}} \newcommand{\ds}{\displaystyle} \newcommand{\figc}[1]...
user avatar
0 votes
1 answer
21 views

Decrease vertical space between empty figure and description environment

I am trying to implement a workaround for adding a caption and label to a description environment. For that I try to force an empty Figure above the description list, but I cannot reduce the vertical ...
user avatar
  • 3
1 vote
1 answer
17 views

How to remove the word Listing from the caption of the code and write it below the code?

How to remove the word "Listing" from my TeX file? Consider the following code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath}...
user avatar
  • 933
1 vote
2 answers
29 views

Automatic subcaption listing

Imagine I have the following figure \begin{figure}[H] \begin{minipage}{0.45\linewidth} \begin{subfigure}[b]{\textwidth} \centering \includegraphics[width=.7\linewidth]{example-image} \...
user avatar
  • 135
1 vote
1 answer
73 views

change Figure 1.1 for Figure 1-1 [duplicate]

Default setting of the Latex shows: Figure 1.1. Caption.... I want to change the format to Fig 1-1(without dot here) Caption How can I change it similarily for tabel A related question :How to ...
user avatar
  • 147
1 vote
1 answer
30 views

How do floats affect the flow of a paragraph?

I've been working on my own custom template but I ran into a behavior I don't understand. Why are some paragraphs indented with a tab? I think it has something to do with floats breaking the flow of a ...
user avatar
1 vote
1 answer
29 views

Align captions below images with subfloat

The captions below subfloat figures are not aligned to the corresponding images. Is there any solution to that? \documentclass{article} \usepackage{graphicx} \usepackage{lipsum} \usepackage{subfig} \...
user avatar
1 vote
2 answers
31 views

Add caption to figure in multicolumn

I need to add a caption to three images placed as follow: I did it by adding the caption command as you can see in the following snippet, but it doesn't work: \begin{figure*}[ht] \begin{center} $\...
user avatar
  • 115
0 votes
0 answers
29 views

How to bring caption to the "front layer" of image in LaTex?

I have a Python plot saved as a PDF-file that I have imported to LaTex. Since the image has a thick white "border" (the plot itself doesn't "fill up" the whole image), it looks ...
user avatar
0 votes
1 answer
26 views

removing the figure caption to table caption?

For some reason the code provided by Zarko(below) isn't working on my computer: How to draw a vertical line in a table? So temporarily I've decided to use his picture in his solution and included that ...
user avatar
  • 543

1
2 3 4 5
70