{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

1
vote
1answer
220 views

`float` package not playing nice with `sidecap` package?

In trying to answer this question, I thought it would be easy to add a new float environment using the float package. However, the labeling of the caption is not getting correctly formatted. ...
6
votes
2answers
444 views

`listings` and `sidecap` - Side captions for listings

I am using the package sidecap for captions which appear left or right of a picture/table, like so: \documentclass[a4paper,twoside,11pt,openright]{scrbook} \usepackage{graphicx} ...
3
votes
1answer
280 views

Full width table with caption in refman doc

The refman document class has a big left margin for text. Only the headings are on the normal left margin. Perfect for what I'm doing. But I have a wide table (float) that must be centered on the ...
4
votes
1answer
1k views

Manually change caption label in subfig

In the example: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subfig} \begin{document} \begin{figure}[h] \centering \subfloat[]{\label{first} ...
8
votes
1answer
3k views

pdfTeX warning (ext4): destination with the same identifier (name{figure.1}) has been already used, duplicate ignored

I've tried to make bilingual caption with package "ccaption" and compiled it with pdfLaTeX. It works fine but with a warning: pdfTeX warning (ext4): destination with the same identifier ...
6
votes
3answers
167 views

Table heading too low if on the top of the page

Consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage{booktabs} \begin{document} \lipsum[1] \clearpage \begin{table}[htbp]% \centering% \caption{Test ...
7
votes
1answer
4k views

How to make figure caption boldface

When I create a figure caption, LaTeX automatically creates the Figure1: part and then the caption. How to make the Figure1 part boldface? My figure TeX codes is this: \begin{figure}[ht!] ...
8
votes
1answer
329 views

Remove footnote marks from \listoftables

I'm using footnote marks in my table captions like this: \caption{This is title\protect\footnotemark with a foot note} and then I just use a \footnotetext{Closer explanation...} . This works just ...
2
votes
0answers
563 views

LaTeX incorrect figure numbering [closed]

I have several figures and subfigures in a LaTeX file, but only the first few are numbered correctly. Here is the part of the code that is giving me problems: \documentclass[11pt]{article} ...
5
votes
1answer
152 views

How can I insert a table within a figure's caption?

I have a small table that I would like included in the caption below a tikzpicture enclosed within a figure. Is this possible?
3
votes
1answer
508 views

captionsetup inside floatbox messing up image

I'm trying to include images with custom caption label format defined using \DeclareCaptionLabelFormat from caption package. If I put \captionsetup inside \floatbox environment the caption and image ...
4
votes
1answer
153 views

Adding captions and “cont.” to framed quotations broken across multiple pages

I have to include transcriptions of interviews I had conducted in my thesis, and the institute to which I'll be submitting said thesis is imposing some limitations. The rules are: Excerpts should be ...
2
votes
3answers
254 views

wrapfigure inside a tikzpicture

I am trying to place a figure environment inside a tikzpicture as: \begin{tikzpicture} \node [mybox] (box){% \begin{minipage}{0.45\textwidth} % \LHead{ ...
3
votes
1answer
923 views

Memoir, babel[french] and @makecaption

I'm having a problem with the memoir, the babel, and caption packages: when compiling a document, the log returns the warning: Package frenchb.ldf Warning: The definition of \@makecaption has been ...
1
vote
1answer
219 views

subfigure numbering parentheses flipped with babel + right-to-left language + subfig

Eyal's babel incompatibility of the week... this time a question due to H.R. on the IVRITEX mailing list. The babel is incompatible with the subfig package. If you add a subfig with a caption: ...
5
votes
1answer
118 views

When do we still need the table and figure environments when we don't want the enclosed objects to float?

The LaTeX Wikibook writes: Please understand: you do not have to use floating tables. It only looks more professional. If you want to place your tables where they lie in your source code, do ...
1
vote
1answer
128 views

How to set identifier “Listing 1” in listing in bold

I use figures and listings in a document. By default, the identifier "Figure 1" is set in bold, while "Listing 1" is normal. For consistent looks I would like to have either everythin bold or normal. ...
2
votes
2answers
272 views

Align a figure caption lines

I have an image with caption in LaTeX: \begin{figure}[H] \centering \includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]{img/image9} \caption{Text text text text text ...
4
votes
2answers
277 views

how to insert a fixed number of figures per row/column?

I have a simple question but I am not sure on how to proceed. I would like to put 10 figures on the same page: a grid of 5 rows and 2 columns. What should I type in order to have the figure inserted ...
3
votes
1answer
301 views

Single Spacing Long Chapter Header in Table of Contents, Long Figure Captions in List of Figures

I am finishing up my dissertation and have a small issue. The dissertation format asks for single spacing the chapter heading in table of contents if it is too long and can't fit in one line. The same ...
4
votes
1answer
631 views

custom sub-caption and refs format for subfigures

I've just read questions: Changing the subfigure caption by removing brackets & font of the subcaption Adding parentheses around subfig references How to put two images next to each other with ...
2
votes
1answer
73 views

Why does leftidx not work in a figure caption?

I use the leftidx package to get left subscripts typeset acceptably, however, when I tried to use the \leftidx command within a figure caption (\caption) command I get errors compiling. Here is a MWE: ...
0
votes
0answers
24 views

Type superscript in figure captions? [duplicate]

How can I have superscript in Figure captions ?? \begin{figure}[htbp] \centering \includegraphics[width=0.80\textwidth]{Chapters/CResults/figures/3AxisFlexure.png} \caption{Thorlabs ...
5
votes
2answers
2k views

Horizontal centering with \subfloat

Please how to horizontally center-justify the following array of figures with the subfig package ? \documentclass[11pt]{article} \usepackage[dvips]{graphicx} \usepackage{subfig} \begin{document} ...
2
votes
1answer
540 views

\restylefloat does not restyle properly threeparttable caption

The following code does not produce the result I would expect. When the caption position is changed by restyling the caption it is no longer centred; it moves to the left. Any idea on how to fix the ...
3
votes
1answer
282 views

Bounding box of pictures used in TikZ/PGF

I am creating TikZ pictures using some external images in the following manner: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}[htb] \centering\small ...
1
vote
1answer
732 views

How to make captionof appear just in one slide in Beamer

I am trying to create an overlay of two pictures in Beamer. The first one has a caption and the second one doesn't. I tried using \captionof but the caption keeps appearing on the second slide. ...
2
votes
2answers
2k views

defining equation variables as a caption [duplicate]

I want to define a couple of variables in a list alongside a equation. Here's my current code \begin{figure} \[ e = m c^2 \] \begin{description} \item[e] energy \item[m] mass \item[c] ...
2
votes
2answers
164 views

Align Captions of 2 figures

I managed to get my two Tikz figures side by side. The vertical alignment of the Tikz figures is fine and needs to stay that way. However, I am bothered by the captions and I'd like both of them to be ...
2
votes
1answer
117 views

Algorithm2e error reserved keyword

With the following code: \documentclass{article} \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX) \usepackage[plain,noend,noline,boxed]{algorithm2e} \begin{document} ...
0
votes
2answers
67 views

npround (seems to) destroy rules for caption in table

I'm struggling with this one. In essence, I would like to place the caption above the table but also to have the 'Table 1' appear at the beginning and on the same line as the caption. Finally, I ...
3
votes
1answer
946 views

Caption spacing - table vs longtable

if I use both table and longtable in one document, the spacing between the caption and the table (the empty space after the caption) is different for table and longtable. I would prefer minimal (and ...
3
votes
1answer
917 views

Algorithm as a figure (to include additional caption below the figure)

I have an algorithm in latex, and I need to add an addition caption underneath the algorithm (just like in a figure at the bottom: "Figure 1: Whatever it is". I tried simply changing the ...
1
vote
1answer
262 views

long table's and figure's captions

How can I make the table and figure captions aligned in the list of tables or list of figures , my problem is that the list of figures and list of tables are going outside the page margins. ...
6
votes
1answer
1k views

Raggedright and caption package

I am trying to format my tables and figures' captions with the caption package. What I want is the caption label separated from the caption text by a new line and both of them completly to the left ...
1
vote
0answers
27 views

How to use \lstinline inside figure environment's caption argument [duplicate]

Here is the code that I have (I have removed parts which I think are not relevant): \documentclass[12pt]{article} \usepackage{listings} % Python style for highlighting ...
0
votes
0answers
29 views

Suppressing page numbers for floating figure [duplicate]

At the end of a manuscript, I have several figures, each of which takes up an entire page. A couple of these figures have long captions that end up overlapping the page number. I'd like to suppress ...
5
votes
1answer
542 views

Break box (a long caption) over pages

I want to have text of a certain width less than the page width, which goes across several pages. Normally you’d put text into a (\par)box to set its width but these boxes cannot be broken across ...
3
votes
1answer
354 views

rotatebox symbol in caption generates error

Following minimal example doesn't work and generates an error \documentclass{article} \usepackage{graphicx} \usepackage{amssymb} \begin{document} \begin{figure} FIGURE \caption{$\blacksquare$ ...
8
votes
1answer
39k views

Subfigures side by side with captions

I am using the following code to put my two figures side by side with different captions, \begin{figure*}[t!] \centering \begin{subfigure}[b]{0.5\textwidth} \centering ...
3
votes
1answer
196 views

Missing caption prefix in figures and tables when using XeLaTeX

I've recently switched from PDFLaTeX to XeLaTeX, and noticed that captions on my figures and tables don't have the usual "Рис." and "Таблица" prefix any more (Fig. and Table in Russian), only a number ...
2
votes
1answer
474 views

Make every first line of table look the same

I've been struggling recently with tables. And I've finally managed to get past it. However, I'm now trying to make every first line of my tables look the same (bold white on blue background color). ...
3
votes
1answer
206 views

using TikZ with multipage table

I am using tikz files to insert figures . I would like to add 3 figures one after the other with the same figure caption: I use this code: the problem is that the last figure is at the bottom of the ...
3
votes
1answer
88 views

Caption package error redux

I'm using the caption package, but it's not affecting the captions within my tables and figures. I've pasted my sample code below. How can it be fixed? \documentclass{article} ...
1
vote
1answer
393 views

Deleting colon while using \renewcommand for table names

I have to rename one of the many tables as Fig. But executing the below script resulted in ':' before the caption. \renewcommand{\tablename}{} \renewcommand{\thetable}{} \begin{table}[!h] ...
6
votes
1answer
265 views

Strange vertical space before the caption of a longtable with KOMA-Script classes when xcolor is loaded

When using one of the main KOMA-Script classes — scrartcl, scrreprt, scrbook but not scrlttr2 —, the vertical position of the caption in a longtable environment changes when one loads or unloads the ...
2
votes
2answers
685 views

Change caption number of an algorithm

I am wondering if I can manually set the caption number of an algorithm, or let the caption number of the algorithms in an article start from 2. The following is a MWE. ...
0
votes
0answers
40 views

Distinguish between list of of tables and table [duplicate]

How can I make the caption of the table different from that what shows up in the "List of Tables" For figures I used the non-float option with: \figcaption[short title for the index]{description for ...
1
vote
1answer
214 views

TikZ node causing problems inside a \caption [duplicate]

Following an example offered here, I want to insert colored, circled numbers referring to items in a figure (figure details left as an exercise to the reader) into my text. The numbers are defined ...
5
votes
1answer
282 views

subfigures in a custom float (subcaption & float packages)

I need figures and subfigures with a custom caption name. In order to achieve my goal I am trying to use float package to define new float type, and subfigure to create the subfigures. However, I get ...