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
1 answer
15 views

Problem with captions and titles in Serbian cyrilic

Using \usepackage{cmsrb} \usepackage[OT2,T1]{fontenc} %better to use T1, but OT1 will also work \usepackage[serbian]{babel} before \begin{document} and \fontencoding{OT2}\selectfont as first line ...
  • 1
1 vote
1 answer
40 views

Paragraphs no longer indent after caption

[Rewritten the original post. For the later update see below.] It seems that my paragraphs stop indenting due to the use of \captionof{figure} in the code below. Any suggestions for a workaround or ...
1 vote
2 answers
61 views

How to apply captions to non-floating Listings

One way to add captions to code listings is as follows: \documentclass{article} \usepackage{fancyvrb} \usepackage{fvextra} \usepackage{xcolor} \usepackage{caption} \usepackage{float} \newfloat{...
  • 1,524
0 votes
0 answers
34 views

How to overwrite ref to remove rogue paranthesis?

Reference to a figure adds a parenthesis at the end, how can I remove it or overwrite with a command? When I then reference see figure \ref{fig:examplefigure}) it becomes see figure 1) I have a figure ...
  • 423
1 vote
1 answer
28 views

How to include nested captions for listings

I Want to recreate the nested Listing captions like in the image below, I tried doing this: \documentclass{article} \usepackage{listings} \usepackage{subcaption} \begin{document} \lstlistoflistings ...
0 votes
1 answer
30 views

Figure with short description added to caption

I have big figures with long captions. My captions are formatted (using the captions package) and look fine, but I would like to customize it a bit more to also have my short description added in blue ...
  • 35
0 votes
1 answer
40 views

Small vertical space between bottom caption and the end of the page margin (KOMA)

I am writing my thesis and I learned to love LaTeX even though Im a real beginner. After all, I almost finished with the work, but I came across the following issue: I recognized that all the figures ...
  • 1
0 votes
0 answers
17 views

Captions throws error when used with fancyvrb/fvextra

Suppose I have a file verbatim.py with the following contents: def f(x): s = "908df0sdfdsfsd78g89f7g98fd7gh98fdhfd7h98df7h98dfh99h8dfa897hf9d7h98fd7hf98dh" return x def f(x): s = ...
  • 1,524
3 votes
4 answers
169 views

Table too long for one page and column content not vertically aligned

First, I tried to create a table by normal standards: \begin{table}[H] \centering \begin{tabular}{p{14cm}|c} \textit{Query} & Grupo \\ \hline SELECT SUM(lo\...
2 votes
4 answers
106 views

Alignment issue with captions six figures next to each other

How can I improve the alignment of the caption and the general aesthetics of the following TikZ figure? \documentclass[border=3pt,tikz]{report} \usepackage{tikz} \usepackage{float} \usepackage{caption}...
0 votes
1 answer
42 views

How to change caption setup for appendix?

I am writing a paper with an appendix (for master thesis) and for the paper I want the captions to be aligned to the left. But for the appendix, the captions should be centered. For the paper, I used ...
0 votes
2 answers
31 views

Multiple horizontally aligned subfigures

I am having a little bit of trouble trying to display multiple figures aligned horizontally in a same row, I am using the following LaTeX commands, and I obtain the following misplaced figure: \...
0 votes
1 answer
27 views

caption name is too long and makes the espace between citation and number look bad

How do I fix the caption of Abbildung so that it is not separated from the number? and that in the first one, why is the text not exactly under the figure 4.4? thanks. \begin{figure}[htbp] \centering ...
2 votes
1 answer
41 views

KOMA-Script's addmargin environment in combination with caption command

I want to use KOMA-Script's addmargin environment (oneside document only) to sometimes write stuff using the full width of my document, which is divided into 2/3rd text area and 1/3rd margin. This ...
2 votes
1 answer
39 views

inline theorems and theorems within captions

I'm trying write a paper where I have a sequence of autonumbered pieces of inline quotes. I defined a \newcommand to do this and all worked well until the point that I tried to save the current number ...
3 votes
1 answer
54 views

`caption` bug (?) where `\captionsetup[figure]` within a figure has no effect

I am trying to change a caption format with the caption package within a float environment (in this case figure). However, \captionsetup[figure]{} is not working within the \begin{figure} ... \end{...
  • 1,936
0 votes
1 answer
27 views

Figure with three captions and I only want one of them to appear in the list of figures

I have a figure that occupies three pages. It is made up of subfigures. The caption of the three figures must be the same. This is an example: Note that each figure appears in a different page. As ...
  • 619
0 votes
2 answers
37 views

Change caption of Figure

Caption of the following figure is coming Figure 1: abc \begin{figure}[!h] \centering \includegraphics[width=12cm]{Fig.jpg} \caption{abcd} \label{fig} \end{figure} I want to change caption as Figure ...
  • 39
2 votes
2 answers
43 views

No indication of the subfigures in the list of figures

I changed my document from subfig to subcaption, since I rode, it results in problems together with hyperref (it doesn't show any problems - yet, that's what wonders me). I'd like to change the ...
  • 21
0 votes
1 answer
33 views

How do I get rid of the extra 'Figure [x]' caption under my figure?

I have two projects on Overleaf, a dissertation and a paper extracted from the dissertation. The former has a figure which is perfect, with a caption above that says 'Figure 2.2', the figure in the ...
0 votes
1 answer
26 views

Adding Labels and Referencing Modified Listing Environments

I want to label and reference the modified listing environments namely Matlab Code and Matlab Output. However, when I add the \label command and try to reference the labelled modified listing ...
  • 566
0 votes
2 answers
63 views

Continue table on next page

Want to continue a table to the next page. Following is the code of the table \documentclass[acmsmall]{acmart} \acmJournal{CSUR} \usepackage{longtable} \usepackage{arydshln} \usepackage{multirow} \...
0 votes
1 answer
14 views

Using 'captionsetup' to rename table and keep the new name in TOC, instead of changing it back to 'table'

I tried to rename two tables locally to 'overview' with the captionsetup option of the caption package and finally want them to appear with this new name in the list of tables (LOT). However the name ...
  • 1
0 votes
0 answers
37 views

Creating NewTblrTheme changes behaviour of entries in List of Tables

Despite its really powerful options the tabularray package doesn't follow the settings of the caption package when creating tables. Captions are set using default options, not the ones set in \...
  • 1,047
1 vote
0 answers
37 views

Package caption Error: The nonfloat package is incompatible to the(caption) so try \usepackage{caption}[=v1] instead. \begin{document}

When I run textstudio I get the following error message (Package caption Error: The nonfloat package is incompatible to the(caption) so try \usepackage{caption}[=v1] instead. \begin{document}) , the ...
2 votes
1 answer
55 views

What's the difference between "\caption" and "\label" in a "figure" environment?

Take this as an example \begin{figure}[htbp] \centering \includegraphics[keepaspectratio, width=0.8\linewidth]{transformer_img.pdf} \caption{Transformer} \label{fig:transformer} \end{...
0 votes
2 answers
41 views

callouts package is inserting spaces around figures

I want to annotate subfigures I have designed in other software by including in the top left corner letter identifiers such as (a) etc. I am using the callouts package in my main document as I am ...
  • 1,936
1 vote
2 answers
48 views

Row- and Column-specific labels for subfigures

I am trying to build something akin to the below, where each column and each row has one title/label. How can I achieve it? Maybe with the use of subcaption, but I cannot find the solution. I am ...
  • 23
0 votes
1 answer
48 views

How to caption a graph in LaTeX?

I am using LaTeX for writing a lab report for my Physics class and I have added a graph to my report as a figure using the following lines: \begin{figure}[H] \centering \includegraphics[scale=0.7]{Lab ...
2 votes
0 answers
36 views

How to use pdfcomment within a caption?

I would like to leave comments in a PDF file, for which purpose the pdfcomment package seems to be a useful option. However, when I tried to use \pdfmarkupcomment within a caption, my comment has not ...
  • 542
3 votes
1 answer
69 views

How to achieve line above right-aligned caption in floating figure in ConTeXt?

I would like to achieve, what in Adobe InDesign is called a paragraph rule over a figure's caption, i.e a line on top of the caption, while keeping the caption itself right-aligned (actually aligned ...
  • 745
1 vote
2 answers
40 views

How to make several tables or images next to each other and exceeding margins

I'm new to LaTeX and I'm trying to learn the basics to survive. I've found it very hard to understand how to position several images in the same line while at the same time make them go beyond their ...
0 votes
0 answers
20 views

Adding captions to matlab code and output environments and coloring of comments

I have the following matlab.stycode: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{matlab} \RequirePackage{verbatim} \RequirePackage{fancyvrb} \RequirePackage{alltt} \RequirePackage{upquote} \...
  • 566
1 vote
1 answer
21 views

Hiding tab number in a caption (tabular environment)

Is there a way to hide the Tab number before the caption? (in the following example I'm referring to "Table 2.1:" This is my code: \begin{document} {\setstretch{1.0} \begin{table} \...
  • 121
2 votes
1 answer
40 views

Wrapping pictures around captions

Is it possible to obtain something like where the boxes are subfigures? Ideally, the size of the figure on the bottom-right corner would fit to the length of the caption, but I would be happy by ...
  • 255
1 vote
1 answer
54 views

problem formatting longtable caption to match normal table

This is driving me mad, so hopefully someone can put me out of my misery. I can't seem to match the caption formatting of a 'normal' table with that of the longtable. The issue i have is using the ...
1 vote
1 answer
38 views

How to control caption position within subfigure?

Consider the following code \begin{figure}[h!] \centering \begin{minipage}{\linewidth} \centering \begin{subfigure}[b]{.4\textwidth} \centering \includegraphics[width=\...
  • 255
0 votes
1 answer
35 views

Figures and Captions

In Overleaf: after I inserted a figure into my latex document, I also inserted a caption, but the caption doesn't show on the PDF version. Here's the code I entered; am I missing something to ...
3 votes
3 answers
144 views

How can I align two grouped tabulars so they are all aligned at the top with subcaptions?

I would like my tables to be aligned like this. While having the grouping and caption of this I only know of subfloat and it has been a bit annoying. \documentclass{article} \usepackage{subcaption} \...
  • 135
0 votes
0 answers
39 views

How to make outwards facing tables with captions at the sides in a twoside document?

I am writing a twoside document using pdfLaTeX with texlive-full:2022.1 in Overleaf. I have two tables, each on a single page. I want to use SCTable from the sidecap package to have the captions at ...
1 vote
1 answer
31 views

Need to add caption for picture. It just doesnt work with that obvious way. LaTex

\headerbox {Anomaly Detection}{name=problem,column=0,below=boxname1}{ \textbf{Anomaly detection} is a subset of data processing and also the study of sorting and classifying normal data from ...
  • 13
0 votes
0 answers
30 views

Chemscheme package, problem lines above and below scheme, caption above instead of below

I am trying to use the package chemscheme. I have already used it in other reports working great however this time it is doing something I don't want. There are lines above/below the scheme and the ...
3 votes
1 answer
57 views

Incompatibility hyperref enumitem

With an inline enumeration in the caption, autoref does not pick up the correct kind (figure) but uses item instead. Is there a workaround? test.aux file: \newlabel{figure:foo}{{1}{1}{}{Item.2}{}} ...
0 votes
0 answers
9 views

\listoffigures displaying the word Caption instead of the caption

I had a problem where references started numbering from the citations in figure captions. This was resolved by this answer Wrong cited reference numbering in a figure caption When following the steps ...
0 votes
1 answer
53 views

Underfull \hbox (badness 10000) in captions

I have quite a big document and got an Underfull \hbox (badness 10000) warning at each and every caption I have in a figure, subfigure or table. I didn't find any notes about similar problems and I ...
  • 169
0 votes
0 answers
17 views

Want to write caption in arbitrary location in a tikz image in figure environment with cross-referencing to individual images under \nextgrouplot[...]

I am using groups plots how can I refer make sub-refs(subreference) to them when in figure environment. and I want to add a caption in the blank space any ideas ? I have added the working code as well....
0 votes
0 answers
22 views

Main caption by the side of subfigures with subcaptions at the bottom

I have 2 subfigures where I need to have the subcaptions underneath each subfigure while the main caption remains on the right hand side. The code I tried is as follows: \begin{figure}[H] \begin{...
2 votes
2 answers
113 views

How to adjust the position of subcaption and remove the letter numbering

I've created a figure containing some subfigures, and now I want to set their captions on the top (only in this individual figure) and remove the letter numbering, like (a) and (b). How can I do this? ...
  • 53
0 votes
1 answer
31 views

Subfigure captions not centering and getting referenced with double parentheses

I'm using my University's template to typeset my document and it's messing up some things about the subfigure captions in my document. This is a MWE .tex file that demonstrates my issue: \...
1 vote
1 answer
72 views

Mystery math bug in caption

Don't know how I detailed I must get. I'm in the environment \documentclass[10pt,a4paper]{llncs} with a truckload of (probably superfluous) usepackage commands \usepackage{ngerman} \usepackage[utf8]{...

1
2 3 4 5
73