{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

7
votes
1answer
4k views

How can I change figure caption label?

I am using revtex4-1 for a Physical Review Letter. Typically when a figure is made, the caption starts out FIG. 1. <text>. I am creating a supplementary file and I would like it to say FIG. S1. ...
0
votes
1answer
814 views

Abbreviate “figure” [duplicate]

Possible Duplicate: Change caption name of figures I'm using scrbook for the document class. Is there an easy way to abbreviate "Figure 1" in order to have "Fig. 1" ? The proposed answer ...
5
votes
3answers
2k views

float and subfig package interference: subfigures with exact placement

I'm using the subfig package for subfigures and the float package for forced float placement (H). Using both these packages results in the subcaption not getting reset. The following example shows six ...
3
votes
1answer
1k views

figures in sidewaysfigure environment are not listed in List of Figures

I was writing my thesis and found that all figures I included in sidewaysfigure environment are not listed in \listoffigures. How can I make those figures listed in List of Figures? What I did is ...
8
votes
1answer
520 views

Aberrant footnote numbering behavior with footnoted captions

I don't have an explanation for the behavior shown by the following two MWEs. Clearly, the footnote number is altered by the length of text in the caption. Please advise me as to why this strange ...
4
votes
1answer
2k views

KOMA-Script: caption, subfig, and captionlabel

My problem is best illustrated with an example: \documentclass{scrreprt} \usepackage{caption} \captionsetup[subfigure]{font={sf,md,sl,small}} \setkomafont{caption}{\itshape\sffamily} ...
7
votes
1answer
3k views

scrreprt – How to adjust distance between caption and table?

I am new to LaTeX, tentatively using it to prepare a complicated industrial document (laboratory test report). I had selected the report class. After numerous experiments, I have just found that just ...
4
votes
2answers
2k views

\renewcommand with \caption*

I'd like to redefine \caption* as \renewcommand{\caption*}[1]{\vspace{\abovecaptionskip}\caption*{\textbf{Note:} #1}\vspace{-\abovecaptionskip}} but keep getting an error when I try to compile. My ...
13
votes
2answers
5k views

How to build and combine sophisticated layouts in figures

How can I get a layout like the one below in my document?                 With this question, I am looking for: An ...
2
votes
1answer
934 views

Line break in caption of wrapfigure

I use the wrapfigure package for placing images in my text at the right side. Now my problem is, that my image is really small and my caption is larger then the image. Instead of a line break at the ...
3
votes
2answers
3k views

Remove automatic table headline

I use LaTeX for creating PDF output from R - not to create long documents. Hence the automatic Table 1: <caption> above the table is rather annoying. How can I remove the automatically generated ...
3
votes
1answer
379 views

Sync listings caption numbers and add all to List of Listings

I want to create a list of all listings. Listings itself allows to add captions and list them in a list using \lstlistoflistings, but they can not float. If I set up such a floating environment using ...
5
votes
3answers
4k views

An error produced when using the caption package

My .tex file: \documentclass[a4paper,twoside,portrait,12pt,openright,final,pdflatex]{report} \usepackage[bindingoffset=8mm]{geometry} \usepackage[T1]{fontenc} \usepackage{arabtex} \usepackage{utf8} ...
6
votes
2answers
978 views

Centering tables in document class apa6

I'm using the apa6 class in doc mode for my thesis. Now, when I create a table and try to center it on a page, the table is centered alright. The caption, however, still floats on the left of the ...
4
votes
1answer
438 views

Adding both captions and notes to a table with the captions package

In the following table I created the caption exactly they way I wanted. I'd like to add a "Note" below the tabular, but within the table environment, following the same style as the caption. I sort of ...
6
votes
1answer
10k views

Subfloat caption width requirements and alignment problems

I'm having problems with conflicting width requirements for subcaptions on subfloats that are horizontal versus vertical. I've spent considerable time searching here and more broadly, poring over the ...
2
votes
1answer
2k views

Vertical spacing of captions in booktabs

Both \abovetopsep and \belowbottomsep are 0.0pt. But for some reason there's extra space between the bottom rule and "my second caption" in the table below. Q: What is that space? Where does it come ...
11
votes
1answer
13k views

Table caption without the word “table”

Whenever I put \begin{table} \begin{tabular} ... \end{tabular} \caption{My great table} \end{table} It would end up with the name "Table 1: My great table". I don't want the prefix "Table 1:". Is ...
8
votes
3answers
2k views

Remove colon in the caption of a figure without using caption package

I know that I can Remove colon in the caption of a figure if the caption is empty when I simply use the caption package. But let's say I am using a journal-specific class (e.g. elsarticle) that has ...
5
votes
1answer
2k views

“Missing number” error with SCfigure (from sidecap package)

Does anyone know how to do "side captions" in LaTeX if you already have a caption environment specified? I keep getting an error when I use SCfigure. Ex: \documentclass{article} \usepackage{sidecap} ...
2
votes
1answer
2k views

Caption for longtable in Sweave

I'm using the following code in .Rnw file to generate a longtable <<label = tabggplot2df, echo = FALSE, results = tex >>= print( xtable( x = ggplot2df , caption = ...
7
votes
2answers
690 views

Subfloat indexes misaligned when using setcaptionwidth

I have the following document: \documentclass{article} \usepackage{subfig} \usepackage{graphicx} \usepackage{geometry} \setcaptionwidth{12cm} \begin{document} \begin{figure}[t] \centering% ...
0
votes
2answers
2k views

Problems with undefined control sequence in list of figures

I'm using TeXLive 2011. I had a lot of problems with compiling my large document yesterday and finally seemed to have gotten back to a working version, however now I get strange error messages in the ...
5
votes
1answer
4k views

Define a new caption in a listing environment

I want to have different listings with different types of captions, consider that I've got the following: \documentclass{article} \usepackage{listings} \usepackage{color} \usepackage{caption} ...
5
votes
1answer
511 views

Caption issue with tufte-latex and ctable

When using ctable with the tufte-latex class (in xelatex), I get an error when defining a caption (and hence a label). ! Undefined control sequence. \@tufte@stored@caption ->\@ctblcaptionarg** ...
1
vote
1answer
4k views

How to put subcaptions below subtables, and increase gap between subtables with 'subfigure'?

Using 'subfigure', how can I create subtables within a table, such that a) subcaptions are underneath each subtable, and b) there's a reasonable horizontal gap between the subtables? So far I've only ...
6
votes
1answer
305 views

Centered captions containing \vref may not always appear as expected

I've noticed that when centered captions contains \vref to some reference, the captions may sometimes not become entirely centered. I see this especially in my document where there are two figures on ...
9
votes
2answers
809 views

How to put an algorithm and a tikz drawing (objects of different type) side-by-side in the same float environment?

I am trying to put an algorithm and a tikz' drawing side-by-side inside a figure environment. I am aware of this question but I would like to have a single caption for them. For instance, in the text, ...
2
votes
2answers
3k views

Caption package: bold numbering indents caption text - how to avoid that?

I ran across this problem and fail to find an answer even after thorough searching: I use \usepackage[bf]{caption} in my LaTeX document, as I want the "Figure 1"-Part of the caption to appear ...
4
votes
1answer
3k views

Change \abovecaptionskip for some floats only

I'd like to change the \abovecaptionskip (space between figure and caption) for the listing floats of the minted package only. How can I do that?
4
votes
1answer
489 views

Aligning caption of subfigure with math environmenth to the bottom

I was trying to align the subcaption letter of a subfigure that contains a math environment using temporal boxes, to align it vertically to the biggest one. However, when I do it the subcaption letter ...
3
votes
1answer
557 views

Splitting figures' caption apart

I'm using stock figure environment and \caption{} command to typeset figures in my document. Is there any sane way I can get 'Figure N' part to be written right below the figure, and the actual ...
4
votes
1answer
2k views

Three different captions: longtable

My problem is that I have tables that are three pages long. Thus, I would like to have three different captions when using the longtable package. The similar question How to use a longtable with only ...
3
votes
0answers
514 views

Incompatibility of caption and cleveref package [closed]

The following code produced a TeX capacity exceeded error \documentclass{scrbook} \usepackage{caption} \usepackage{cleveref} \begin{document} \begin{figure} Text \label{fig:figures:1} ...
2
votes
0answers
458 views

Caption spacing in longtable package [closed]

I am using a style file that sets a particular spacing for the List of Figures (LoF) and List of Tables (LoT) in my Table of Contents. However, I am using longtable for all my tables, and it is ...
5
votes
3answers
3k views

fbox in tabular throws missing endgroup

I have to draw a border around my tables, so I'm using \fbox{} (is there a better way?). It works when using a threeparttable but with the normal tabular latex throws an error stating Missing ...
6
votes
2answers
159 views

Input Auto-Generated Figures Captions

I'm trying to include an Matlab-auto-generated figure-caption tex-file using \caption{\input{Spectrogram-2011-09-28-S003.title.tex}} but if fails with error ERROR: Argument of \@caption has an ...
5
votes
1answer
288 views

Non-italicized text in a \newfixedcaption

This is a very specific follow-up question to this answer given to this question. I want to insert a picture, and use overpic to label it, in between two paragraphs of text in a thm environment ...
1
vote
0answers
1k views

Why do I get the error “\caption outside float” with the algorithm / algorithmic package? [closed]

I have an algorithm in my document It looks like this: \begin{algorithm} \caption{Merge Digest: Insert\label{mergeDigestInsert}} \begin{algorithmic}[1] [....algorithm is ...
11
votes
2answers
1k views

How can I put the empty subfloat subcaptions to the right?

I'm putting two figures above each other with \subfloat from the subfig package. Their captions are empty as I just want to describe the figures with the main caption, but I still want the (a) and (b) ...
19
votes
1answer
1k views

Caption parbox 6.0 pt too wide

For my listings, I use this caption setup: \usepackage{caption} \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}} ...
3
votes
1answer
1k views

how do I remove “Listing 1” from my lstlistings code?

This is my latex code: \documentclass[12pt]{article} \usepackage{listings} \begin{document} \begin{lstlisting}[caption=Figure 3] Source | SS df MS Number of obs ...
4
votes
1answer
598 views

Problem with captions at top of page for tufte-latex

I'm using the tufte-latex layout, and running into problems with the double-sided mode. I found a proposed bug-fix here and applied it to the most recent version of tufte-latex available on github % ...
8
votes
2answers
2k views

captionsetup for margin caption

I am using the caption package to set up the layout of my captions. However for margin captions using mcaption package the \captionsetup does not seem to have the expected effect. ...
6
votes
2answers
479 views

User defined command produces error in conflict with siunitx and TeXLive2011

I recently installed TeXLive 2011 on my MacBook (running MacOS X 10.6.8) and got the following problem: Example: \documentclass[11pt, a4paper]{scrbook} \usepackage[ngerman]{babel} ...
12
votes
2answers
5k views

Two figures side-by-side with inequal height and aligned captions

I have an addition to this question: Two figures side by side. Suppose we have two pictures, making them of uneven height. I am looking for a way to not use subfig and align two figures side-by-side, ...
12
votes
2answers
1k views

Gray box around figure with a separate gray box around caption

My university requires that all figures in a thesis follow this pattern: I'm very new to LaTeX, so far my best attempt has been this: \begin{SCfigure} \colorbox{darkgray}{ ...
13
votes
1answer
2k views

How can I inject the proper amount of vertical space between captions and figures?

In my source document, I have an image and a code listing, separated by some text. When I generate PDF using pdflatex, the image is just above the listing, and it looks like the caption for the image ...
3
votes
1answer
396 views

Additional separation between require and algorithm

\usepackage{algorithm} \usepackage{algorithmic} ... \begin{algorithm} \caption{A good name} \begin{algorithmic} \REQUIRE something usefull \STATE $i \leftarrow 1$ \end{algorithmic} ...
9
votes
2answers
5k views

Ignore citations in captions in list of figures when numbering

When using the \cite command in figure captions and the ieeetr bibliography style, then BibTeX numbers the citations as appearing earlier than they do in reality (i.e. the first citation in the ...