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
2answers
41 views

Problem with adding subcaption

How can I add subcaption for bar diagrams? I want to have subcaptions (a), (b) (c) for these three bar diagrams and caption figure1: .... my latex file: \documentclass[12pt,a4paper]{article} \...
2
votes
1answer
40 views

Tables side-by-side (again)

I know this type of question was already posted a ton of times, but I'm upon this for some days and I can't get it working properly. I need to put two tables side-by-side, aligned to the top, and ...
0
votes
1answer
44 views

How to put caption under image without using \begin{figure}?

I need to put an image inside table. I can't use figure inside table. Will not work even if I add minipage. But can add \includegraphics OK inside table. But now I am not able to use \caption any ...
0
votes
1answer
29 views

List of Tables - how to Colon(:) when list of table/figures

My paper's table in text looks like this: However, I want the caption with colon behind Table 1 in text: If I add the colon ":" in caption, my code is \caption{:\textbf{ The Title}} The List of ...
0
votes
0answers
5 views

\insertTableNotes interferes with spacing after caption

I have the problem that the spacing between a table caption and the next element (e.g. a new section title) does not directly depend on the position of the caption itself. If I add \tableNotes before ...
2
votes
3answers
35 views

Duplicated footnotes in long figure caption [duplicate]

I have a figure with a relatively long caption that goes over a single line, and within that caption I have a footnote. For some reason, the footnote gets repeated at the bottom. I notice this only ...
0
votes
1answer
18 views

How to shift table caption and number to be above and to the right of the caption?

I need what exactly highlighted in the picture. I am only using tabular at table envs with caption so my current table is: \begin{table}[h!] \centering \caption{Optional components} \begin{tabular}{|...
0
votes
0answers
23 views

Having caption outside xltabular environment

Is it possible to have a caption defined outside a xltabular environment? \documentclass[a4paper,10pt,notitlepage]{article} % papersize, fontsize, documentclass; \usepackage{xltabular} \usepackage[...
2
votes
1answer
25 views

Reduce vertical space between the caption and a two-column code listing

Any suggestion about how to reduce the vertical space between the bottom line of the caption and the code? Thanks in advance, Humberto Here is my current code \documentclass{article} \usepackage[...
0
votes
1answer
48 views

More figures with captions a), b), c)

What is wrong with that please? \documentclass[11pt,a4paper]{article} \usepackage{subcaption} \begin{document} \begin{figure} \centering \subfigure[]{\includegraphics[width=0.24\textwidth]{1....
1
vote
1answer
26 views

Is there a way to put subcaption labels at the closest of a subfigure using subcaption and floatrow package

I want to maximize the size of the pictures I use for my subfigures for that I want to put subfigure labels as close as possible of my subfigures. I can't find a way to do that using subcaption and ...
0
votes
0answers
13 views

Figure number of unnumbered chapter

I'm writting a PhD thesis with a template of my university (documentclass "book"). I have some chapters unnumbered (Introduction, Context...), and on this unnumbered chapters I have figures. The ...
0
votes
0answers
24 views

Defining a new minipage environment with xparse - Error: emergency stop

I would like to have an easier time writing figures, tables, lisitngs et cetera, while at the same time ensuring that any captions stay on the same page as the respective document elements. I tried ...
0
votes
0answers
21 views

How to adjust font size of a single \captionof caption?

How to adjust font size of a single \captionof{figure}{} caption? Scant details in the \captionof{}. Do all the same rules for \caption command apply. Would like to make font size changes locally, ...
2
votes
1answer
95 views

How do I make listing from “Listing 1:” to “1. listing.”

Now, by default listing package produces listing names like: Listing 1: some text How do I make it to produce names like: 1 listing. Some text Package: \usepackage{listings} I guess it should ...
0
votes
1answer
43 views

List of tables formatting

I need to put a dot after each entry of list of tables and figures. Also They should start with TABLE or FIGURE. The following code puts the name TABLE but I could not put a dot after the table number....
2
votes
1answer
37 views

\captionof problem

using this code I have a problem: \documentclass[twocolumn,11pt,a4paper]{article} \usepackage{sectsty} \paragraphfont{\mdseries\itshape} \usepackage[hyperref]{acl2019} % requires 'acl2019.sty' %%%\...
1
vote
1answer
21 views

Caption. Both left aligned and with bold font of Fig number

I have looked around to see if there is a way to both left align captions to the pictures width, make the Fig number bold and of course be able to reference the picture. I have only come across ...
1
vote
2answers
25 views

flushleft in a caption compiles but has error

So there is possibly a simpler way of doing this so if I am doing it entirely wrong please do correct my method but I have... \usepackage[justification=centering, labelfont=bf]{caption} \begin{...
0
votes
1answer
27 views

Unable to set hanging indent on caption

I am working on a document in overleaf with a pre-defined template. I wish to apply hanging indent on the table and figure captions. In the preamble, I have tried including : \usepackage{caption} \...
0
votes
1answer
41 views

Styling pictures and their captions

I need to insert some vector-drawn chemical structures into my document and want the figures to look similar to those. How do I restyle the caption boxes (e.g. turn the background grey and write Fig. ...
0
votes
2answers
33 views

How do I use tcolorbox around a caption within longtable

I've written a script to diff latex files and then produce markup by adding green or red tcolorboxes around most types of content and special handle any cases where that doesn't work well (like table ...
2
votes
1answer
19 views

Left Aligning Caption of One Table But Not The Others

I need to format a document with all the caption of all tables at the start of the page aligned to the left margin, and the caption of all tables in the body of the page centered. I have seen similar ...
0
votes
0answers
15 views

Why does \nobreakdash inside a figure caption break unless previously used?

Simply put, the following does not compile: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{figure} \caption{ poly\nobreakdash-Si } \end{figure} poly\...
0
votes
1answer
26 views

Micro-graphics in caption environment

I am using my own icons in a document using \newcommand{\icon}{\includegraphics[scale=0.2]{myicon.pdf}} as described in this post. Now I am trying to use this newcommand in a caption environment, ...
3
votes
2answers
68 views

Modifying the algorithm name in algorithm2e

I am using the algorithm2e package to generate pseudocode for a paper. The journal requires the format of "S1 Pseudocode", "S2 Pseudocode", etc. However, I am only able to generate the format as "...
0
votes
1answer
33 views

Caption and label on xltabular environment

I have been trying to add caption and label to a long table (not entirely written below) inside the xltabular environment. After checking Caption on tabular environment, labels with tabular and some ...
0
votes
1answer
47 views

CAS bundle (an Elsevier document class) - pdfTeX error (font expansion): auto expansion is only possible with scalable fonts

I'm writing a scientific article using CAS bundle from Elsevier, which is a double-column format. This how my document looks. \documentclass[a4paper,fleqn]{cas-dc} \usepackage[numbers]{natbib} \...
0
votes
1answer
33 views

How can I remove/change the “Algorithm X” label from the caption of an algorithmicx algorithm?

I am using algpseudocode for writing an algorithm, and I would like to remove the "Algorithm X" from the title when adding a caption. How can I do this? Example: \documentclass{article} \usepackage{...
2
votes
1answer
29 views

Fine tuning the cross-reference to a subfigure

I have a very small (probably silly) issue with reference to a subfigure. I am using the following code snippet for the name and reference to a subfigure: \usepackage{caption} \usepackage[labelformat=...
0
votes
1answer
26 views

\footnote in \caption within the figure environment gets typeset twice, how to stop that?

\documentclass{beamer} \begin{document} \begin{frame} \begin{figure} \includegraphics[scale=0.5]{./foo.png} \caption{Blah blah\footnote{something}} \end{...
0
votes
0answers
15 views

How can I get my captions centered and the text justified with the caption package?

I am using the caption package for my thesis to get uniform captions since I have longtables and floating tables. Now I was wondering if it is possible to get centered captions (since my graphics and ...
3
votes
1answer
30 views

Chemscheme package interferes with captions

I would like a caption to be as close as possible to its figure. This can be easily achieved with \usepackage[skip=0pt]{caption}. However, this solution does not work if the package chemscheme is ...
1
vote
1answer
23 views

How to add caption for each pie chart (creating with tikzpicture) in tabular environment?

I have created the following figure in tabular environment for two different pie charts. But I am unable to give caption to each of them in their respective cell. I used the following code and I was ...
1
vote
1answer
39 views

How to put a caption for this table?

I have the following table. I would like to put a caption on it with title and number of the the table. I don't manage to do so. This is my code: \begin{center} \begin{tabular}{lr} \toprule \label{...
0
votes
1answer
12 views

Captioning two side by side figures outside float environment

I want to put two figures in the footnote of my document. I need to write a caption without a label for each figure. The problem is that the figures are located vertically when I add the \captionof*{} ...
1
vote
2answers
31 views

Letter of figure with multiple images not centered

\begin{figure}[H] \centering \begin{subfigure}[] \centering \includegraphics[width=7.5cm, height = 6 cm]{figures/insercaoPellets1.pdf} \end{subfigure}% \begin{subfigure}[] \centering \...
0
votes
1answer
28 views

When including a .PDF, caption is not below .PDF when using /eject page-height change

Consider the following MWE (you will need a test.pdf image to compile this). This should compile using standard LaTeX. The problem is the caption is not below the .PDF image at all. It is on the ...
0
votes
0answers
32 views

How to use captionsetup with xltabular?

This question seems to be the same, but I didn't find the answer there. I have problem with using xltabular and captionsetup in one document. In this MWE everything works perfect until I use ...
0
votes
0answers
22 views

How can I get my tables' caption and numbering to look more like that of an image

For some reason my tables' caption looks really odd, its in a weird font and size and centered, and its numbering is in roman numerals and bulky unlike my figures of which the captions and numberings ...
1
vote
1answer
23 views

How to remove captions and labels for sub figures ? How to decrease auto vertical spacing between sub figures?

I am beginner in LaTeX, and I am writing my Ms c thesis. I use TeXstudio for this. I have the following code with a customized mfthesis document class. I have sub figures defined using minipage ...
0
votes
1answer
23 views

Two captions for algorithm in algorithm2e package

In my thesis, I need to describe both algorithms and cryptographic games. Currently I am using the algorithm2e and the algorithm environment for both. Is there an option to specify dual captions so ...
0
votes
1answer
34 views

Beamer: Alignment of Justified Caption in List Environments

Figure/Table captions are supposed to be justified in my beamer presentations. Caption and subcaption packages are included for the aforementioned and other purposes. The captions are now justified, ...
3
votes
0answers
42 views

amsart + \makeatletter + @ @ @ in a caption = disappear

In some circumstance adding @ into the caption will cause it to disappear. This can be solved by adding \makeatother at proper places. I just want to know why is this happening. \documentclass{amsart}...
1
vote
1answer
81 views

Elsevier cas-sc template: figure caption cannot be centered

I am using Elsevier's cas-sc.cls. Captions of figures are left-aligned, but I want the captions to be aligned to the center below the figure. I tried using \captionsetup{justification=centering} ...
0
votes
1answer
26 views

picture in caption leads to error in main listing of figures

Using \caption{Some text \protect\includegraphics[height=.3cm]{figure.jpg} again some text.} leads to a perfect list of figures of that chapter: but errors in the main list of figures: What to ...
0
votes
0answers
18 views

what to do to have figure caption follow apa style

here is a sample of my preambule \documentclass[a4paper,man,floatsintext]{apa7} % \usepackage[american]{babel} \usepackage{amsfonts,amssymb,amsmath,amsthm,mathtools} \usepackage{graphicx,...
1
vote
0answers
25 views

Out-of-order arrangement of minipages, such as to manipulate subfigure captions

I want to arrange 8 subfigures in Latex in this way. But the captions need to be modified in the form: C F D A G E B H The current implementation uses three column-wise minipages. \begin{...
1
vote
2answers
35 views

using xltabular to break over multiple pages results in a list of tables with multiple entries for the same table

I am using xltabular to break a table over multiple pages. When I use \caption for the table, It produces a caption for each page that the table is on. I do not need this behavior, but can look passed ...
0
votes
1answer
32 views

Tikzpicture caption spacing

I am trying to add a caption to the following tikzpicture but its creating a huge space underneath. I'm not sure how to fix this. \documentclass[a4paper,12pt]{article} \usepackage{tikz} ...

1
2 3 4 5
59