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

longtblr captions

I like to have different caption text on the first and other page spanned by long table longtblr. If possible a text which is intended to LoT and inserted longtblr by entry={short caption text>}). ...
1
vote
1answer
30 views

Lucida br, ! LaTeX Error: Command `\hbar' already defined

I have a school assigment which demands to use Times New Roman for general content and Lucida Caligraphy for image captions. But I don't know how to do that, when I try to add lucidabr the compiler ...
0
votes
0answers
14 views

To reduce the gap between bars above characters in a caption

If I define a mybar and mytilde as follows: \newcommand{\mybar}[2][3]{{}\mkern#1mu\overline{\mkern-#1mu#2}} \newcommand{\mytilde}[2][3]{{}\mkern#1mu\widetilde{\mkern-#1mu#2}} Then, I can write $|\...
0
votes
1answer
24 views

Captioning images within a framed environment?

I have an image within a framed environment and would like to caption it. Using the figure environment crashes the compiler \documentclass[a4paper]{article} \usepackage[a4paper, total={170mm,257mm}, ...
0
votes
0answers
20 views

Move subfigure captions in subfigure package

I am writing a manuscript for a journal which have specified to use the subfigure package, instead of subfig or subcaption. I am aware that subfigure is deprecated but I cannot change the journal ...
1
vote
1answer
27 views

How to show the \refstepcounter{figure} in list of figure

This is my latex document. The figure is inside the table environment, the figure shows a caption but the list of figures doesn't show. please anyone can explain what else can I do to correct \begin{...
2
votes
0answers
93 views

Context: Hanging (outdented) figure caption

I want to recreate a caption similar to the following: Figure 1. Here is my caption text that wraps underneath the figure label. And here a typeset example: I've seen this answer: Is it possible ...
1
vote
1answer
15 views

Beamer: align two tables side by side with caption

I am using the "begin minipage" to put two tables side by side, but the result is not perfect. As you can see from the output below, there are two things that I need to change: The outline ...
0
votes
1answer
15 views

Applying the distributed alignment to the context on Figs

How to apply the distributed alignment to the context on Figure? I tried to apply \justifying, or caption package and \captionsetup function. However, they break the journal caption template. \begin{...
1
vote
1answer
26 views

Caption begins inside table in tufte-book

If I use the table* environment and the table is wide, the caption starts inside the table. Here is the example \documentclass{tufte-book} \begin{document} \begin{table*}[h!] \begin{tabular}{l} ...
0
votes
0answers
28 views

Unable to generate caption

After I recently changed to a new computer, I re-downloaded texStudio. But the original tex file started to show errors when it was compiled. Unable to generate caption. I extracted the location of ...
1
vote
1answer
36 views

Bottom-align caption in subfloats

I am trying to align the subcaption of two vertically aligned subfigures of different sizes, this is my code, how can I modify it to obtain the desired result? \documentclass[12pt,twoside]{report} \...
0
votes
1answer
27 views

Fully justify caption in RevTex 4-2

I'm writing a paper with REVTeX 4.2 using Overleaf and want the captions of my figures to be fully justified, but they are automatically centering. I've read this question about the same problem in ...
0
votes
0answers
23 views

How to remove unwanted space between longtable*s? [duplicate]

Consider the following MWE: \documentclass{scrartcl} \usepackage{lipsum} \usepackage{longtable,ltcaption} \begin{document} \begin{longtable*}{p{10cm}p{2cm}} \textbf{Lorem!} & \\ \textbf{...
2
votes
3answers
38 views

Place subcaptions next to subfigures

I am trying to place the subcaptions of my subfigures to left of each image. To illustrate this, I have included an image of the desired result and the corresponding MWE. \documentclass[a4paper,12pt]{...
1
vote
1answer
47 views

How can i add separate captions below illustrations?

How can i add separate captions for each illustration. One caption for the left illustration and one caption for the right illustration. Both captions should be below the illustration. The ...
3
votes
2answers
86 views

Figures with caption inside tabularray (tblr) tables

I am trying to add captions for figures inside a table but am unable to do so. I have looked into this solution but having flexible X columns is not working as described. The current output looks ...
2
votes
2answers
42 views

Place the Caption of a Figure at the Top of a Figure

After trying many of the community's proposals and failing to place the title of the figure at the top. I thought that I could redefine the default figure in latex, specifically the one corresponding ...
1
vote
1answer
29 views

How to use latex to achieve this effect, the number of subfig is shown in the figure

I want to achieve this kind of display effect, do you know how to achieve it?
1
vote
1answer
59 views

Using custom units with siunitx v3 in captions - is \protect insufficient?

I am using my previously discussed custom commands (also provided below), in siunitx. Since version 3, I am no longer able to use them in captions, whereas previously, adding \protect before them ...
4
votes
1answer
28 views

position subcaption within `subfigure` at the top (inset)

I've asked a similar question but I did not realize that the question and solution relied on the caption being positioned at the bottom. Consider the following example: \documentclass{article} \...
0
votes
0answers
32 views

Caption package, how to set font point size with other customizations in captionsetup (question updated, more specific now) [duplicate]

Edit: question updated to be more specific I am creating a chapter report template in LaTeX that will be used by others, mostly in Overleaf. There are requirements for fonts, indentations, etc. that ...
3
votes
1answer
32 views

Sidecaption and capion text

I am using koma script with the sidenotes package. Can I redefine \sidecaption to get syntax \ caption [Text in list of figures] {Text next to the figure} Minimal example: \documentclass{scrbook} \...
0
votes
0answers
18 views

Latex footnote in figure caption creates too much space between figure and following text

I would like to insert a footnote in in the caption of a figure. To be more precise, the footnote number should be inside the figure caption, while the footnote text should be at the end of the page ...
1
vote
1answer
37 views

Set double spacing between the list figure captions

I am using a PhD thesis template define list of figures as following: %---------------------------------------------------------------------------------------- % CLASS OPTIONS %----------------------...
0
votes
2answers
53 views

How to set the label of each sub-figure in its correct position? [duplicate]

I want to insert the label of each sub-figure in its correct position. Fig1: Therefore, I want the label of the sub-figures to be the same as the fig.2, and the location of the caption to be the same ...
0
votes
1answer
44 views

Caption Chronology Timeline LaTeX [closed]

I am writing because I am trying to add a caption to a timeline. I am using Overleaf. I am not sure how to do this properly (right now I get the error message \caption outside float)... \begin{...
-2
votes
1answer
80 views

Create laTeX table with rotated caption

I want to create a table in LaTeX that looks exacly like the following: I already tried some things but I find it difficult to get the rotated caption right in addidion with the headers (header a, b ...
1
vote
1answer
26 views

How do I justify the text using subcaptions in the attached code?

I am using revtex4-2 formatting, and have 2 columns. I would like to have 2x2 subfigure, each labeled by a different alphabet. And I want the caption to be justified. However, the attached code ...
0
votes
1answer
25 views

Weird behavior when using esvect and caption together

I was working on this file : (to be considered as MWP, a minimal working problem) \documentclass[12pt,a4paper]{article} % ########################################### % PACKAGES STANDARDS % ############...
1
vote
2answers
27 views

Set vertical spacing of custom new environments

I defined a code environment in which minted environments are put in order to span in multiple pages. The problem is that captions are too close to the text next to the code frames. How can I increase ...
0
votes
2answers
37 views

\refcite does not produce hyperlink and does not work in figure caption (World Scientific documentclass)

I'm using the ws-procs961x669 documentclass by World Scientific. I'm having two problems with the command "\refcite{}" that is meant to be used when explicitly referring to a reference to ...
2
votes
1answer
19 views

spreading the table captions for subfloats

Hello I am trying to spread the caption of a subfloat in a table to be in one line but could not figure out a way to achieve that. Here is an example \documentclass{article} \usepackage{subfig}% http:/...
0
votes
0answers
35 views

Problem with figures, captions and the main font in TexStudio

everybody! I have a problem with the "figure" environment. I have inserted several images one after the other \ begin {figure}[htbp!] \ caption {...} \ centering \ includegraphics [...] {...
1
vote
0answers
35 views

Cite caption and figure

I want to cite a figure and directly cite the caption of the text. That means that I copy the figure and the original caption of the figure. Is the following solution correct because someone can think ...
1
vote
1answer
22 views

Change fontsize of table vs figure

I'm using a template provided by a conference, that doesn't follow its own style guide. The table caption should be normalsize and the figure caption should be footnotesize. Below I have tried to add ...
0
votes
3answers
48 views

Image with caption on the right, vertical align the caption to the top edge of the image

So far I tried two Ansatzes using (i) minipage and (ii) tabular environment: %(i) minipage \begin{figure}[htp] \begin{minipage}[t]{0.5\textwidth} \vspace{0pt} \includegraphics{...
1
vote
1answer
35 views

Package caption Error: \setcaptionsubtype outside float

I've got a custom command for placing pictures next to one another on the page, filling the width of the page, optionally with captions. The code generated by the macro ends up looking like: \begin{...
3
votes
1answer
60 views

How to set the font of a table to sans serif, but keep the standard font for the caption?

Currently I have a latex table on which I want the font type to be sans serif (I do this by placing \sffamily inside the table environment). The only problem with this is that it also changes the ...
0
votes
0answers
17 views

List of subfigures without the figures - wrong page numbering

I'm a beginner and I made the mistake of using subfigures to place my images where I wanted them to be. Now, I'm trying to make a list of subfigures only. I've managed to remove the figure caption ...
0
votes
0answers
17 views

How can I increase the margin for the caption of an in text image?

As shown in this image, the margin width between the writing and caption is frustrating me. How can I fix this? Thanks
1
vote
1answer
18 views

Vertical arrangement of subfigure beside a long listing and equation

I am using the env lstlisting and subfigure in the figure. Since I am running out of space, I'd like to put image B on top of image A with their own captions. I'd also keep the general caption. Any ...
1
vote
1answer
51 views

Ignored endhead/endfoot when using longtable with caption-package

If I use longtable and the caption-package it sometimes happens, that \endhead and \endfoot are ignored if the table breaks. If I don't load the caption-package it works as intended. Does someone know ...
1
vote
1answer
86 views

Generating a caption for the figure automatically

I have hundreds of pictures included in latex file. Is there any way, how to create a caption for each automatically? e.g. file picture1 would have generated a caption picture1. \begin{document} \...
1
vote
0answers
17 views

Caption of figures and tables not centered in AMS classes [duplicate]

According to AMS Author Handbook the caption of tables and figures should be automatically centered, but for some reason they are moved to the right side. This is a screenshot of the Handbook: This ...
3
votes
1answer
24 views

How to have a title ABOVE AND more details BELOW a minted figure or listing?

I would love to be able to give a minted figure a title on top, and more details at the bottom, as the incorrect pseudocode below encapsulates - Is that possible? \begin{figure}[thp] \caption{title ...
0
votes
0answers
23 views

Continue figure caption onto next page

I have been trying to get my figure caption to start on the same page as my figure but obey the margins and continue on the next page after. I have tried everything I have come across and the only ...
1
vote
1answer
90 views

Remove indentation in list of figures when using caption package

I am typesetting a book, and I don’t want to have figure numbers in my captions; thus I am using labelformat=empty in the captions package. Similarly, I want to suppress numbers in my list of figures, ...
1
vote
1answer
41 views

Fit caption size to figure

I am using a latex template that uses a pretty big side margin. In order to be able to display images properly, it offers the option to extend images into that margin, the according width is stored in ...
1
vote
1answer
33 views

Patching \captionof fails

I would like to execute this or that command depending on whether \captionof is used for a figure or a table. So I patch \captionof with etoolbox to see if the float type parameter is of type table or ...

1
2 3 4 5
67