Skip to main content

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
0 answers
22 views

Is there a way to automatically set the label to caption of a figure / table? [duplicate]

I use a lot of figures and tables in each document a write for my studies. After a while it gets pretty cumbersome to always write both the caption and the label seperately. Since most of my captions ...
Zedssad's user avatar
  • 123
0 votes
1 answer
17 views

Aligning legend with figure width memoir class

I'm using the memoir class. Let's say I have a figure like this. \begin{figure}[htbp!] \centering \caption{Super-cool Figure} \label{fig:super_cool} \includegraphics[width = 0.7\...
simon97's user avatar
0 votes
1 answer
44 views

Caption of a figure aligned to right-hand margin with `minipage`

I would place the caption immediately to the right of each figure. With the use of \begin{minipage}[c]{0.67\textwidth} I was able to obtain a caption to the right of the figure, but I have a ...
Bml's user avatar
  • 149
2 votes
2 answers
118 views

Underfull \hbox with image

When I create a minipage to insert an operating mode in front of an image, I obtain a warning with an Underfull \hbox (badness 1748) in paragraph at lines 75--75 I can't understand what is causing ...
Nicolas's user avatar
  • 1,297
0 votes
1 answer
62 views

Black captions are CMYK, not RGB

I am writing a book, and my publisher wants the caption text to be entirely black. From the looks of it, it seems black to the naked eye, but apparently it's in CMYK whereas it should be RGB(0, 0, 0). ...
Henrik Hillestad Løvold's user avatar
3 votes
2 answers
93 views

Caption in tabularx environment

can someone explain me, why the gap between the caption and the table is so huge? \documentclass[a4paper,12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{...
tro_latex's user avatar
0 votes
0 answers
22 views

Make every element of the List Of Figures (LOF) the same size

I am writing a report and for formatting reasons I will need to have different sizes for the captions of my figures. For example, here we can see that 2.3 is smaller than the other, I would like them ...
Sam's user avatar
  • 1
0 votes
0 answers
20 views

unexpected behavior of glossary-extra, acronyms are counted starting from lof/lot

I'm experiencing a weird (I presume) behavior for the package glossary-extra. Basically, as you can see in the MWE below, I have some glossary items as well as acronyms. I've also added some code, as ...
Matteo's user avatar
  • 323
2 votes
2 answers
63 views

tblr-extras, how to put caption below table

With tblr-extras you can use caption package for set up caption style. It works fin, if caption is above table. For example: \documentclass{article} \usepackage{lipsum} \usepackage[font={footnotesize,...
Zarko's user avatar
  • 300k
4 votes
4 answers
160 views

Text in captions not indented after a line break when using ragged2e (caption, tabularx)

I have a problem with the packages ragged2e, caption and tabularx. Maybe someone can help me? tabularx is used to create tables that should be horizontally centred, display centred table cells and ...
Seban's user avatar
  • 53
3 votes
1 answer
37 views

Double caption on Listing (one on top and one below but I just want the one below)

I have tried to include SQL code in my text. Unfortunately I am not very familiar with it and have cobbled together the code from various forums. Now, as the title says, I have two captions for the ...
FloB's user avatar
  • 75
0 votes
1 answer
34 views

Why is Tocloft shifting my ToC-title?

In my report I increased the margins with the geometry package. Afterwards i implemented Tocloft into my document to create dots between Chapter/section-title and pagenumber. This works fine. But by ...
PeterDonut's user avatar
2 votes
1 answer
30 views

Index in caption (of figure) and multiple index (splitindex) and tex4ebook yield to problem

The following MWE shows the error in the resulting epub: In the figure captions the index entry within the figure caption is not correctly set in the epub. \documentclass{report} \usepackage[T1]{...
Thomkrates's user avatar
1 vote
1 answer
68 views

NeurIPS2024 style file: loading caption/subcaption package destroys the set spacing

I'm working with the NeurIPS 2024 style files. My paper loads the subcaption package for subfigure environment, and I noticed that this (and also the caption package) destroys the default (set by ...
pbb's user avatar
  • 113
4 votes
2 answers
98 views

\verse in a \caption

the following example gives a hail of error messages, also neither the verse nor the reference are correctly formatted as part of a caption. Simply \protecting the verse does not help. %%==============...
Engelbert Buxbaum's user avatar
1 vote
0 answers
11 views

A figure I placed using subfloat has a mismatching number in the text when compared to the caption of the figure [duplicate]

I have a document with a figure comprising two images. I placed the image using subfloat. The hyperlink to the image gives me a spurious figure number. So, the figure is labelled Figure 5 by the ...
Alex Poyser's user avatar
2 votes
2 answers
53 views

Subfigure customization

I have the following code to display multiple images: \begin{figure}[H] \centering \begin{subfigure}[h]{0.35\textwidth} \centering \includegraphics[width=\textwidth]{real_time1....
Roy Turk's user avatar
1 vote
1 answer
27 views

Add smaller captions or make them separated in parts

Excuse if the title is confusing, I'm working on my first LateX document and I am wondering how or if it would be possible to add separate captions to these karnaugh maps to avoid confusion. Currently ...
Elias Björk's user avatar
1 vote
1 answer
32 views

How can I force subtables' caption start from (a)?

I am writing my thesis on top of following template where subtables detected as a new table and incremented from 1.1 rather than laballed as (a) and (b). I have no idea what prevents that. \...
alper's user avatar
  • 1,515
1 vote
1 answer
61 views

tabularray: Use `caption` package to format table caption while typesetting tables without caption or LOT entry

I am writing a longer document divided into \frontmatter and \mainmatter using the scrbook class. While both a table caption and a LOT entry should be generated for tables provided in the mainmatter, ...
albert's user avatar
  • 1,017
1 vote
1 answer
25 views

Strange interaction between subfigure and algorithm within minipage

Consider the following code, whose purpose is to place a subfigure and algorithm side by side within a floating figure. \documentclass{article} \usepackage{algorithm} \usepackage{subcaption} \begin{...
jII's user avatar
  • 507
0 votes
0 answers
36 views

How to overlay figure caption on a image in overleaf latex?

I am using Overleaf latex. I have an input image that I cannot change/reorganize. I need to use this image to create a figure. The image itself is full page high. The left bottom of the space has ...
skm's user avatar
  • 960
4 votes
1 answer
47 views

Why do `ftcap` and `caption` produce different vertical spacing?

I usually load the caption package to fix the spacing between tables and their captions in the article class. Since I don't use any other features of the caption package, I decided to try using the ...
inavda's user avatar
  • 251
0 votes
0 answers
26 views

How can you control the vertical space before and after an equation (on its own line) in a figure caption?

I want to insert an equation (on its own line) in a figure caption. The default spacing before and after the equation in the caption looks too big to me. How can I adjust the spacing before and after ...
Naysh's user avatar
  • 187
0 votes
1 answer
29 views

Question on caption/float spacing

I have asked two previous questions on vertical spacing (First Question: Question on overlapping parbox; Second Question: Question on overlapping tabular), and I have a final related question. As it ...
zgrizz's user avatar
  • 149
0 votes
0 answers
15 views

Extra space in figure referencing with class file for Wiley NJD Journals

based on this template, using Overleaf, I can't figure out how to remove the space after I reference a figure. No matter what I try, it will compile to " sample text to reference a figure (Fig. 1 ...
Baaridi's user avatar
1 vote
2 answers
34 views

Two indentatinons in one image for two different captions

So my collage require that my work should have one upper cation for an Image and another one at the bottom just for the source of the image. That being said , it also requires that the first caption ...
Juba's user avatar
  • 11
0 votes
0 answers
24 views

error in table of figures and wrong character

Since two weeks I switched from pdflatex to xetex. In doing so, I encounter two problems: (1) an error message : Undefined control sequence. ...exthebrew{בֵּיצָה}, \textit{b=e\d s=a}} (2) In the list ...
Cook's user avatar
  • 31
0 votes
0 answers
12 views

Referencing overriden by list of figures

I have an issue with my report reference numbering. My List of Figures numbering seems to have overwritten my document reference numbering. The references in my list of figures start at 1, which means ...
Katy's user avatar
  • 1
1 vote
1 answer
18 views

how to make the caption showup without caption text in `lstlisting` environment?

I found that only the non-empty caption text make the caption appear in outputed file, even a sapce character \ . Here's an example: \documentclass{article} \usepackage{listings} \lstset{ language=...
On_My_Way's user avatar
1 vote
1 answer
27 views

Multiple line in caption of marginfigure, in tufte-book documentclass

I am using the tufte-book documentclass. I just want to be able to write multiple paragraphs in the caption of marignfigure. If I write this \documentclass{tufte-book} \usepackage{graphicx} \begin{...
Croqueta's user avatar
1 vote
2 answers
59 views

Table and subtable numbering skipping

First time posting so apologies if any mistakes/ommitted info I have some regression tables that I am trying to put as separate subtables within a table that spans over two pages, while using \...
JacobG's user avatar
  • 13
0 votes
1 answer
26 views

Adding side captions to new floattype only?

I'm writing a document with several types of floats. Only for equations, I want the caption to be aligned with the right side of the page and the first line of the equation (requirement by my ...
Stefan's user avatar
  • 73
1 vote
1 answer
26 views

Can't find a way to center table headline [duplicate]

I have a table with some basic descriptive statistics, which I created in RStudio using the stargazer package. This is the code: \begin{table}[!htbp] \centering \caption{Deskriptive Statistiken und ...
Moritary 's user avatar
1 vote
1 answer
47 views

suppress Listing: # in code blocks with tcolorbox

Hi there I've been recently experimenting with code blocks in LaTex and I had the need to have my code blocks with captions and a label to catch them once clicked on the appropriate link in the ...
Matteo's user avatar
  • 323
2 votes
2 answers
58 views

With `floatrow`, how to put a caption in the first row of the table?

I have a big project were the package floatrow are used. I discovered that when this package are used, the caption put inside my tables are now show outside. I can't find any way of getting it back ...
Heziode's user avatar
  • 55
0 votes
0 answers
19 views

Is there a way to nummerate each subcaptionbox?

I am starting to give up to my hopes, but I want to give it one last try: Is there a way to nummerate each subcaptionbox? My code has the following build up: \begin{figure} \centering \begin{...
Lisastronomy's user avatar
0 votes
2 answers
30 views

Extra frame with BOXED option in package floatrow

I was testing the package floatrow because I need create a frame around my figures including the corresponding caption. The next example was got from the very package floatrow (of course, I added ...
Michael Rosales Vilca's user avatar
0 votes
1 answer
29 views

Captionof+label creates link anchored to the caption, not the proof

I have a proof (bussproof) that is inside the center environment, and I put captionof inside it, with a label after it. When I click on an autoref of the label, it jumps to the caption but not to the ...
confusedcius's user avatar
0 votes
0 answers
20 views

Package textpos disagreeing with figure caption font and format

I'm trying to place a number of images at specific places in a book (in fact, most of the pages will consist only of images and the respective captions), for which I'm using the textpos-package. At ...
Stephan N's user avatar
0 votes
0 answers
25 views

How can I adjust caption formatting without the caption package

I'm trying to build a custom class that matches my organization's template. I managed to get the formatting for table/figure captions to match using the caption package, but the caption package does ...
rsandler's user avatar
  • 483
2 votes
1 answer
53 views

Caption label font / how to write caption with bf and sc

\documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[english,french]{babel} \usepackage[T1]{fontenc} \usepackage[a4paper,twoside,left=2.5cm,right=2.5cm,top=3cm,bottom=3cm]{...
Nassime Yassine's user avatar
0 votes
2 answers
54 views

Excluding Figure Captions from List of Figures in tufte-book

I'm working with a tufte-book document in LaTeX and encountering a problem where I want to exclude the caption of a particular figure from being listed in the List of Figures (LoF). However, despite ...
Soraly's user avatar
  • 3
2 votes
1 answer
56 views

Why is my caption not centered?

The caption in my very simple example does ends up left aligned rather than centered. How can I center it? \documentclass[12pt]{article} \begin{document} \begin{table} \centering \...
user316024's user avatar
0 votes
1 answer
54 views

How to put the caption of a TikZ Picture below an image when using overlay option?

How to put the caption of a figure below an image when using overlay option? I want to avoid to shift the caption manually via \vspace{} or something like that. \documentclass{article}% \usepackage[...
PascalS's user avatar
  • 750
1 vote
1 answer
28 views

minipage: horizontally alingned figures with common caption

I am using minipage to insert 3 figures horizontally, each having its sub-caption, and then a common caption. My intention is to produce a figure like: Reproducible ME: \documentclass{article} \...
Amina Umar's user avatar
1 vote
1 answer
36 views

Table caption cannot be justified using the caption package [duplicate]

I am trying to justify the caption of a table instead of centering it. I found many questions (including this one) explaining that the caption package proposes the option justification=justified. This ...
AlMa's user avatar
  • 560
0 votes
1 answer
63 views

Captioned figure in frontmatter causes error when using floatrow package with "facing"

I am writing a two-sided document with margins (based on the kaobook-class) and would like to add a figure to the front matter. However, when adding a captioned figure, the compiler throws an "...
mapf's user avatar
  • 253
1 vote
2 answers
81 views

Caption inside tabularx causes error (no line to end)

I'm trying to use a caption inside a non floating tabularx. Until now I used \captionof but this causes the counter to increment twice due to the underlying use of longtable as far as I understood. So ...
KevKosDev's user avatar
  • 113
0 votes
0 answers
39 views

Idiom for an explanatory note at the bottom of a float, other than the caption?

I've placed a float in my document, and given it a caption, saying what the float contains (e.g. "Effect of Foo on Bar, by year"). But - I also want to add a bit of text below the main ...
einpoklum's user avatar
  • 12.4k

1
2 3 4 5
76