Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
29 views

table title setting

I use \begin{longtable} to edit a table to change page, and the title is as follows: But I need to fit the template whose form is : So how should I modify it? My partial code: \documentclass[...
1
vote
1answer
17 views

single caption under multiple figures using floatrow

I am trying to place a single caption underneath four figures. I can place a caption underneath each figure, but that is not what I want. I am using the floatrow package. \documentclass{article} \...
1
vote
1answer
16 views

Beamer caption name not changing

I am changing the font of my presentation to calibri, but the caption name under a figure (the "Figure" part) isn't changing to calibri, but stays in a serif font. The \setbeamerfont{caption name}{......
1
vote
1answer
15 views

Reducing width of image captions without messing up subcaptions

The captions in my document are as wide as the text itself and this can lead to parts where the caption seems to continue when in reality it's the document's text. So I wanted to reduce the width of ...
0
votes
0answers
27 views

Legend for tables

I am trying to generate tables similar to the one attached here. Basically, one main caption on the top, and some extra descriptions in the legend below the table. EDIT: Thank you for the comment. ...
0
votes
0answers
7 views

How do I add the word “appendix” before the word “table” in table captions? [duplicate]

I want to change the word "Table" in the second table to be the words "Appendix Table" without overriding the numbering. \documentclass{article} % \usepackage{amsmath} \usepackage[bottom]{footmisc} ...
2
votes
1answer
28 views

Error adding a figure with multiples subfigures

I would like to include a figure made by 2 or more subfigures. This is my code: \begin{figure}[ht] \centering \begin{subfigure}[b]{0.3\textwidth} \includegraphics[width=\textwidth]{.....
0
votes
0answers
35 views

Why my caption package version is too old

I am using MikTex 2.9.6942. After \usepackage{caption}, I tried to use the \captionsetup command. But it gives "Undefined control sequence" error. I searched online and most of people suggest that the ...
1
vote
1answer
47 views

Caption of tikzpicture and modify vertical space

Caption of tikzpicture placed in wrong postion (see image) My code is: \documentclass[8pt]{article} \usepackage{caption} \usepackage{pgfplots} \usepackage{translator, tikz, array} \usepackage{...
4
votes
2answers
79 views

centering a caption under a table

I have a table with two columns and 12 rows. I require the table to appear on the left hand side of the page (which I can do), however, the caption is centered on the page. I would like to place the ...
0
votes
1answer
21 views

How to label a figure and call it using the command \vcenter{\hbox{\includegraphics[height=…em]{C:/Users/abc/Documents/…}}}?

I am unable to give the figure a name or figure number using the following latex command for, instance: $\vcenter{\hbox{\includegraphics[height=6.6em]{C:/Users/abc/Documents/g2}}}$. Thanks
0
votes
0answers
24 views

Change caption setup in listing/minted environment

I would like to change the appearance of the caption of a code snippet that I have created with minted and listing. However, using \captionsetup[listing]{<options>} does not change anything. ...
0
votes
0answers
18 views

Subcaptions positioning next to image

I'm trying to get the captions of two subfigures to be on the side of the figures instead of below them, to be able to save some space and get them closer to each other. Any help is highly appreciated!...
0
votes
1answer
20 views

\footnote cross reference inside image caption

I want to reference several images to the same footnote. These are the two images that share the same footnote \begin{figure}[!ht] \begin{center} \leavevmode \includegraphics[width=0.86\...
2
votes
1answer
37 views

Styling and spacing around float caption for listing

When I use the newfloat package instead of the float package there seem to be some side effects with llncs and/or listings. Case 1: When I use the float package, the float caption of listings is not ...
4
votes
1answer
35 views

Make the float name bold

I'm using the llncs calls and introduce a new float with the float package. But the float name of the new float is formatted differently then the original floats, as shown in my mwe. \documentclass{...
0
votes
1answer
40 views

Figure captions line breaks

So I'm working on a TeX document and everything's fine until at some point I realize the captions are doing something weird: whenever the caption spans over multiple lines the new lines start after ...
0
votes
0answers
31 views

Title block with circuitikz

To an electric circuit schematic I've made in circuitikz, I'd like to add a title block like the one given here, including logo if possible. I've searched the web for "LaTeX title block" as well as ...
2
votes
1answer
46 views

MacTeX / TeX Live 2018 older Caption package bundles don't work with beamer class unless updated

Good morning, I want to add the source to figures in my beamer document, so I found online people are doing: \usepackage{caption} \newcommand{\source}[1]{\caption*{Source: {#1}} } However, once I ...
2
votes
1answer
35 views

How to solve the error “longtable* is already defined” using package “caption” and documentclass “revtex4”?

I have a serious problem with compilation of the following code: \documentclass[a4paper,reprint,aps,unsortedaddress]{revtex4} \usepackage{longtable} \usepackage{caption} \begin{document} \captionof{...
0
votes
1answer
32 views

How to place `\caption{}` in front of `\begin{longtable}`?

Is there any way to place \caption{} in front of \begin{longtable}? Illustrating with an example, instead of \documentclass{article} \usepackage{longtable} \begin{document} \begin{longtable}{c|c|c|c} ...
1
vote
0answers
53 views

longtable captionsetup name option

I found a issue when you try to change the table caption name option, while using a longtable: \documentclass{scrartcl} %CAPTION \usepackage{caption} %TABELLENÜBERSCHRIFT FORMATIERUNG \captionsetup[...
1
vote
1answer
30 views

Setting `caption` parameters for `figures` and `tables` locally

The answer to a question asked Jan 16 '13 at 4:54 by @manish continued into a discussion on how to set caption parameters locally. The suggestion that this would be done using \captionsetup[figure]{..}...
0
votes
0answers
13 views

Caption for lstlisting over n pages

I have a code which is over 3 pages. I wish to caption each page with is caption then something like (Part 1 of 3)... How can I do that? I am using the lstlisting package
0
votes
1answer
57 views

how to index subtables as in number them as 1,2,3,…? [closed]

\documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} \usepackage{tabularx} \begin{document} \begin{table*}[h] \renewcommand{\arraystretch}{1.2} \begin{subtable}{0.22\textwidth}...
4
votes
2answers
150 views

Page split between longtable caption and table

Consider this example: \documentclass{report} \usepackage{lipsum} \usepackage{longtable} \begin{document} \lipsum[1-4] another paragraph another paragraph another paragraph another paragraph ...
1
vote
3answers
53 views

Subfloat: How to align subcaption of image to same elevation as other subcaption?

Assumed we have two images with different heights. Both images are aligned to the top via valign=t. Minimum working example (MWE): \documentclass{article} \usepackage{subfig} \usepackage[export]{...
6
votes
3answers
115 views

Table formatting top left corner caption

I have a pretty typical format I follow for tables due to restrictions imposed by professors. While we are not required to use LaTeX it makes my life easier in terms of formatting and so on. However, ...
3
votes
2answers
83 views

how can I remove the Figure label

I am trying to make slides \documentclass[11pt] {beamer} \usepackage{caption} \usepackage{graphicx} \begin{document} \section{my photos} \begin{frame} \footnotesize\textbf Is this the same as ...
0
votes
0answers
32 views

Is the caption too long?

I'm having an issue when trying to caption a figure. It works fine when I employ a certain number of characters. But when I exceed it, not only the captioning doesn't work, but also my figures (all ...
4
votes
2answers
67 views

Adjusting the space between the caption below a figure

I have the following: \documentclass[11pt, a4paper]{report} \usepackage{bm} \usepackage{amsfonts, graphicx, verbatim, amsmath,amssymb, amsthm} \usepackage{color} \usepackage{array} \usepackage{...
0
votes
0answers
18 views

Error “\caption outside float” using minipage [duplicate]

I always get the error \caption outside float The caption is also not displayed in the PDF. Code: \begin{center} \begin{minipage}[t]{0.45\textwidth} \includegraphics[width=0.4\textwidth]{...
0
votes
1answer
15 views

Text after caption causes unintended line breaks or centering

I want my figure captions to have the following format: Figure number is bold First couple of words are the title of the figure and always bold Rest of caption is not bold Here's my MWE: \...
0
votes
0answers
35 views

How to escape [ and ]

Consider this script \documentclass{report} \usepackage{graphicx, subfig} \begin{document} \begin{figure} \subfloat[$a>5$~[a.u.]]{% ...
0
votes
0answers
25 views

Text left, figure WITH CAPTION right

I try to get the text at the left side of the document and the figure on the right side of the document. Unfortunately, there are still some issues: In the first example, the lettering differs (font, ...
1
vote
1answer
22 views

Minipage text running into margin

I'm trying to split an image and its caption across two minipages, but the caption is running into the right margin of the page: \documentclass[a4paper, 12pt]{article} \usepackage{ifpdf} \usepackage[...
3
votes
1answer
64 views

How to put a color-filled frame around a caption in longtable?

I would like to put a color-filled frame (for example with tcolorbox package) around the caption of a longtable, which I put into \endlastfoot. I used the answer to this question: Boxed caption and ...
2
votes
1answer
33 views

Prepend text to Caption

Captions are set up like Figure 1. Caption, I need it to be Figure 1. <text> Caption, with the same text to all figures, and I need it to be part of the caption, not figure name **. I tried ...
0
votes
0answers
26 views

Nopagebreak problem

I have table and her caption, I need to have no page break, but function \nopagebreak isn’t working: \textbf{name}\nopagebreak \begin{flushleft} \begin{tabular}{|c|c|} ••• Why?
1
vote
2answers
36 views

Space between figure caption and bottom margin

I am looking to put a figure at the bottom of my document in a way that the caption is aligned with the bottom margin (i.e. no space between text and margin). Here's a MWE: \documentclass[12pt]{...
2
votes
1answer
36 views

Caption label font

For captions I like to use condensed iwona font. So far I managed to obtain only the standard iwona: \documentclass{article} \usepackage[skip=0.5ex]{caption} \DeclareCaptionLabelFormat{uc}{\...
1
vote
1answer
53 views

Problems with referencing in Emacs/RefTeX

I have problems referencing a table (see Example below) using GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) on Windows Pro X64 and AUCTeX with RefTeX. If I set a label, and reference it, the reference ...
5
votes
2answers
80 views

Change label caption color of a single figure

Is it possible to change the caption color in a single figure without changing the color labels of other figures? I have used this code Change color of figure caption text but every figure is ...
2
votes
1answer
21 views

Unbalanced Gap after CAPTION in TABLE

The CAPTION package with FONT=FOOTNOTESIZE leaves a wide gap after a caption. Specifically, a caption before TABULAR leaves a wider gap, while that after TABULAR doesn't. Here's an example. \...
0
votes
1answer
18 views

Modify Floatfoot of Floatrow Package and move Rule

From the floatrow package, I am using the floatfoot command to reference sources and similar content. This MWE produces an output that is quite acceptable: \documentclass{article} \usepackage{...
1
vote
1answer
123 views

Change line in caption [IEEE Access journal template]

I want to place a multiline caption for a figure using the IEEE Access template. The template is like this: \Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){fig1.png}{<caption>\label{fig1}} ...
0
votes
0answers
28 views

Caption nobreakspace error

Latex gives an error "Command \nobreakspace is unavailable in encoding T1" for the \caption{Beam3}. When I delete the caption the error disappears. I am not using \nobreakspace command explicitly ...
1
vote
0answers
27 views

persisting error with latex caption.sty ubuntu 14.04

edit: so thanks to Kurts help I know that my Tex Live version is outdated (2013). In order to get an upgrade I did: sudo apt remove --purge tex-common '^texlive' sudo rm -rf ~/.texlive* sudo add-apt-...
4
votes
3answers
139 views

Reduce distance between listings and their captions

I'm using the KOMA scrbook class to write my thesis. I have source code blocks that I wish to display with minted. An MWE can be seen here: % Intended LaTeX compiler: pdflatex \documentclass{scrbook} ...
1
vote
1answer
72 views

Placing figures side by side with independent captions

I am trying to place two figures from .pgf file input side-by-side. I want them to have independent captions (so no subfigures). I have tried using the minipage way as follows: \documentclass{article}...