{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.

learn more… | top users | synonyms

3
votes
1answer
442 views

captionsetup not working

I'm trying to format the caption of a table using "captionsetup", but whatever options I give it have no effect and no error message is returned. I want to format it so that the label and the caption ...
4
votes
1answer
80 views

Automatically “protect” new paragraph in extended figure caption

(Final code Here) This is an extension for an extended figure caption function I requested in Extended figure caption and accompanying "List of" . The given solution worked, but I would ...
4
votes
2answers
118 views

Hanging captions with first line also indented

I'm trying to match the formatting between a word document and latex document. In the word doc, captions have the caption label at the left margin, the label separator is effectively a tab character ...
1
vote
0answers
25 views

Figure caption problem comes when I implement in my code with memoir class, but works individually fine in memoir class [closed]

\documentclass[a4paper,12pt]{memoir} \usepackage[margin=1.3 in]{geometry} \usepackage[demo]{graphicx} \usepackage{subfig} \usepackage{subcaption} \usepackage[section]{placeins} \begin{document} \...
0
votes
0answers
15 views

Stop Classicthesis starting its reference count from figure captions [duplicate]

I'm currently using the classicthesis style and I noticed that it places a list of figure captions as part of the preamble. Now I have references in my figure captions so the result is the reference ...
1
vote
1answer
74 views

Table Border lines are not shown and Caption text width is very short

I am trying to run the following tabular code by using using "\documentclass[prodmode,acmcsur]{acmsmall}" in latex which have two problems. Border is not shown due to the overlapping of cell colors....
3
votes
1answer
109 views

Common caption below vertically centered figure and table

I want to extend the answer from Table and Figure side-by-side with Table caption above, Figure caption below by making a common caption beneath the vertically centered image and table instead of ...
3
votes
2answers
91 views

Reducing size of caption box

I'm trying to add a caption which less wide than the size of the figure. I want the caption to be right-aligned and maybe like half the size it is now. Here is my code: \begin{wrapfigure}{r}{0\...
2
votes
0answers
26 views

Issue with font replacement in captions when using math mode

I'm getting annoying font replacement warnings of the kind: LaTeX Font Warning: Font shape `OT1/cmr/bx/n' in size <10.5> not available and LaTeX Font Warning: Size substitutions with ...
1
vote
1answer
86 views

Wrong caption with subfigure and tikzpicture

when i run this .tex file as input \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usepackage{subcaption} \usepackage{graphics} \usepackage{tikz} \begin{document} \begin{...
0
votes
1answer
48 views

Different font sizes in ONE caption

Update: moewe's comment worked great. removing the package cmbright resolved the problem. when I try using \caption{ bla bla \tiny bla bla} in a normal scrbook document, I keep getting the following ...
3
votes
1answer
37 views

Figure captions: one above and one below, both numbered the same

I have a figure with two captions, one above the figure (headline) and one below (explanation). That is fine, but now I want the below caption to repeat the figure number from the headline. This is ...
0
votes
1answer
58 views

Wrong caption (As Fig. A.1.) in figure when they put in last page

I got rule from journal as The manuscript (including title page, abstract, manuscript text, references, and table/figure legends), tables, and figures. Files should be labeled with appropriate and ...
5
votes
2answers
243 views

Add both a vertical side caption and a normal caption to a picture

Is it possible to add a caption to the side of the picture, written vertically in small size (for the credits), while below the picture is the normal caption? [EDIT] Minor issue: why is it that ...
1
vote
1answer
79 views

How to get latexdiff to show markup for captionof text?

Is there a way to make latexdiff highlight changes in a captionof? For example, orig.tex: \documentclass{article} \usepackage{caption} \captionsetup{parindent=\parindent} \usepackage[demo]{graphicx}...
3
votes
2answers
85 views

How to indent text within captionof?

Does someone know how to indent the text within captionof? I have a long caption that I want to make two paragraphs out of but indent does not seem to work. \documentclass{article} \usepackage{...
2
votes
1answer
61 views

How can I replace the dot between the numbers in a caption with a dash?

How can I replace the dot with a dash between the numbers -- only in captions not in chapters or sections? i.e., replace 1.1 with 1-1 in this command: \documentclass[11pt,twoside,fleqn]{book}‎ ‎\...
0
votes
0answers
10 views

Type of entry behind entry in list of figures and list of tables overlaps description [duplicate]

I stumbled over an odd thing when setting up the lot/lof for my document. Here comes my minimal working example: \documentclass[paper=a4]{scrbook} \usepackage{graphicx} \begin{document} \begin{...
0
votes
2answers
104 views

How to add note and reduce the margin to figure in latex

I have two figures. But I want to used them as one figure in latex. I want to add note for them. For example (a) bellows first figure and (b) for second figure. I used below code but the margin top ...
3
votes
1answer
448 views

How to change Figure 1: to bold Fig.1. in latex

I am using default setting in LaTeX that show Figure 1: Caption.... Now, I am following the format of Magnetic Resonance Imaging journal that require Fig. 1. Caption I tried to add the below ...
2
votes
1answer
42 views

Problem while using caption for rows of multiple figures in 2 columns and many rows

I have a collection of 10*2 figures which are subfigures of a main figure. I have been able to place them in my Latex document. The result is like as follows: a b c d . . . Figure: 1 (Caption ...
6
votes
1answer
156 views

Changing the font spacing in figure/table captions

I am writing a thesis. Both the body of the text and my figure/table captions are double-spaced. However, I need my captions to be single-spaced. I tried resetting the spacing on the captions using ...
1
vote
0answers
74 views

Long captions causes table to shift incrementally [closed]

I'm having an odd problem where the table shifts incrementally with the caption when the tex file is reprocessed multiple times. Suppose there is a table with a caption that goes over 3-4 lines. In ...
0
votes
0answers
67 views

Table caption in floatrow environment

I am using the floatrow environment to display a figure and a table side by side. Here is my latex code : \documentclass[a4paper,11pt,twoside]{article} \usepackage{floatrow} \usepackage[export]{...
0
votes
1answer
89 views

In Latex, I want my caption to be lower relative to my figure. How do I do that?

instead of: Figure 1 I want: -------- Figure 1 How do I manipulate this?
3
votes
1answer
32 views

Changing figurename in paper document class?

I am looking to change the figure name and table name for captions in the paper environment. In particular, I'd like to change both Fig. and Tab. to Figure and Table. The question answered here does ...
2
votes
1answer
37 views

How to fix default table number and description separator

I have 2 tables using different packages, but the caption gennerate different: When I use table with tabularx: Table 1 – A simple example When I use longtable: Table 2: A simple example \...
3
votes
2answers
159 views

Align Caption to the left

I am trying to align caption to the left but its coming centered. Please see the figure. The code is \begin{figure}[!t] \includegraphics[scale=0.22]{Figure 1.pdf} \caption{The caption is coming to ...
3
votes
1answer
59 views

I am struggling to get some of my figures labelled as schemes

Underneath some of the images in my document I would like the caption to read scheme1.1 etc. instead of figure1.1, I was wondering if it was possible to do this selectively as I use Chemdraw to draw ...
3
votes
1answer
250 views

tikz legend in caption and colorbrewer

Related to the question tikz legend in caption I want to use the colorbrewer library (just unzip the archive in the working directory). However, it seems that they cannot be used together. \...
4
votes
2answers
52 views

Why Strange Formatting For My Caption

I am trying to include an image with a nice caption below it. I have the following: \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[h] \centering \includegraphics[...
0
votes
1answer
245 views

\vspace not working as expected

I have a code block using minted and mdframed and a caption afterwards. \begin{mdframed} \begin{minted}[tabsize=4]{c++} some code \end{minted} \end{mdframed} \begingroup\captionof{listing}{some ...
3
votes
1answer
96 views

latex files generated by tikzdevice leaves large space between image and caption

Ive been using the tikzdevice package in R to generate latex code of my plots, I've noticed that it always leaves a large white space between the caption and the figure itself, here is an example I ...
2
votes
0answers
67 views

Memoir - force table captions above and figure captions below

In the style that I am creating I need to force table captions to go above the table, and figure captions to go below the figure. My style is based on memoir class. I have found solutions that force ...
2
votes
1answer
270 views

How to centerlast a caption in a beamer

There is a problem when I want to centering the caption in the beamer. And I find that the caption package is useless in the beamer And this my MWE: \documentclass{beamer} \usepackage[font=...
2
votes
1answer
72 views

Font of siunitx in captions not transfered by options of the caption package

The package option defines the caption text as italic, but this is not reproduced by measures inserted using the \SI functions are not. What can I do ? The MWE: \documentclass[10pt,a4paper]{report} \...
3
votes
2answers
157 views

Is there a way to put subcaption labels on the side?

I need to save space in a document, and I would like to reduce the space on the figures. I'm using the subcaption package for subfigure. Is it possible to do something like shown in the figure with ...
1
vote
0answers
235 views

figure number/caption separator: colon instead of dash

How can I have in a figure caption Figure 1: caption instead of Figure 1 - caption ? I tried this \usepackage[labelsep=endash]{caption} but didnt work. another simple question why we should use \...
6
votes
3answers
131 views

Selective and bunched entries to list of figures

I have a complex document with a few thousand figures (most of which are slight variants, but a few are key). I would like to produce a list of figures (lof) which only includes individual figures ...
1
vote
1answer
120 views

How can I specify a short caption for a listing?

One of my listings has a very long name. In the \lstlistoflistings table of contents, I would just like to have a shortened version of it. How can I specify an abbreviated name for my listing? \...
4
votes
1answer
85 views

How to add caption correctly in listing?

I have two blocks lstlisting and another listing as follows: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{inconsolata} \usepackage{color} \definecolor{pblue}{rgb}{0.13,0.13,1} \...
1
vote
1answer
63 views

Add one or more arguments to \caption

I would like to add an argument to \caption, so that I can add a title to the table, figure or note. Why do I get an error if I modify the definition like I show you below? \documentclass[nofonts]{...
3
votes
1answer
70 views

Renaming figure caption in proper way

I would like a following caption for my figures: Figure S1 Figure S2 etc. Now, I used \captionsetup[figure]{name=Figure S} but the issue is that after S, there is a whitespace, instead of a ...
3
votes
2answers
99 views

Change caption placement after line break

\documentclass[a4paper,11pt,oneside,openany,fleqn]{scrbook} \usepackage[ngerman,english]{babel} % language listed last is default setting \usepackage[labelfont=bf]{caption} \usepackage[demo]{...
2
votes
2answers
56 views

Is it possible to reference a caption outside of the figure?

For my thesis research I want to be able to reference a caption I've made elsewhere in the text so that I can have a page of all my captions separate from the figures themselves. My figure layout is ...
3
votes
2answers
96 views

Pull settings from package options as variables

Sorry if it is a simple matter, but I am quite new to advanced LaTeX (before I only used preset styles and did simple things), and I couldn't find an answer after ~30 min of searching. I want to use ...
4
votes
1answer
95 views

Why SetKwData defined macro for algorithm2e doesn't work in caption?

I defined a macro with \SetKwData command from algorithm2e but it doesn't seem to be working in the caption. My code: \documentclass[10pt,a4paper,twoside]{report} \usepackage[linesnumbered,ruled,...
1
vote
1answer
148 views

Multipage listings with minted and captions

I have source long listings (2+ pages) that I highlight using minited via \inputminted. I wish to have have a caption and a reference label for the listing in \listoflistings and in my text when I ...
0
votes
0answers
17 views

How to resize figure caption to match figure size and wrap text around figure [duplicate]

I have the following structure for a figure and its caption: \begin{figure}[htb] \centering \includegraphics[width=0.6\textwidth]{lipsum.pdf} \caption{Lorem Ipsum is simply dummy text of the printing ...
1
vote
1answer
150 views

Displaying one figure above another figure causes caption/subcaption package error

I am trying to place two figures on a page, one above the other: \begin{figure} \centering \begin{subfigure}[b] \includegraphics[scale=1.00]{AB.png} \caption{A and B} \label{fig:...