{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

6
votes
2answers
1k views

Different float types side-by-side

I'm familiar with using minipages inside a float to effectively place two floats side-by-side, but is there a way to do this with different float types? Eg a Figure and a Scheme (chemscheme)?
51
votes
2answers
5k views

Why does an environment's label have to appear after the caption?

\documentclass{article} \usepackage{algorithm} \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label ...
0
votes
2answers
495 views

Compounds defined implicitly in captions (chemscheme/chemstyle/chemcompounds)

I'm using the chemstyle package to handle automatic numbering of compounds. It apparently uses the chemcompounds package to handle this. In the documentation for the latter, it explains compounds can ...
14
votes
4answers
30k views

How to reference subfigure in caption

I used to have code like this: \caption{In \subref{fig:foo:a} you can see...}. Now I switched to using memoirs subtop/subbottom command instead of \subfigure. How can I refer to that subfigure? As a ...
13
votes
3answers
61k views

Caption on tabular environment

I have got codes like the following (generated by Kile). How can I add a caption. I guess I should have used the table environment. Is there any solution now? ...
2
votes
3answers
394 views

\caption works in one file but not another

Hi I'm trying to display an image with a caption; the parent file (CODE1) calls the chapter file (CODE2) and the .sty file (CODE3). Here is the the "chapter" file... call it CODE1 ...
2
votes
1answer
415 views

Why won't this macro work in a \caption?

I created a macro to easily shift into typewriter mode, ala markdown or fancyvrb's "short verbatim" command. It works everywhere but in \captions. In that case, TeX fails saying I've exceeded ...
5
votes
2answers
6k views

A style prevents me from setting \belowcaptionskip, how do I change that?

I am writing a paper using the llncs style (Springer lecture notes for computer science). Using the default formatting, the distance between and the caption and the caption and the table is very big, ...
4
votes
1answer
1k views

\gls inside caption without protect

Is it possible to use \gls (from the glossaries package) inside a caption without \protecting it every single time? The glossaries package says the \gls command is not fragile... but I get errors ...
4
votes
1answer
313 views

figure/table caption formatting without packages

I am writing a document which needs to have tables and figures. Normally for formatting the caption of figures/tables I use \renewcommand{\@makecaption} But it affects both tables and figures ...
5
votes
1answer
956 views

How to \ref to subcaption numbers (a, b) when using memoirs subcaptions?

How can I get references to subcaption numbers when using memoir? In this example: \documentclass{memoir} \newsubfloat{figure} \begin{document} \chapter{Lorem} \section{ipsum} \begin{figure}[b] ...
5
votes
2answers
423 views

Can I easily reformat a document to place figure legends on a separate page?

I am submitting an article to a journal with the following requirement: Figure legends should be listed one after the other, as part of the text document, separate from the figure files. ...
4
votes
0answers
582 views

Caption will not go above table with chemstyle [closed]

Caption refuses to go above the table, even when it is called before tabular environment. A similar issue is mentioned in threads elsewhere, and it has been mentioned in the chemstyle documentation ...
4
votes
4answers
7k views

Figure and table numbers in caption are terminated by a period and semicolon

I'd like help redefining the Table and Figure captions. Currently both Table and Figure numbers are terminated by a period and colon. For example, \caption{Foo bar} Produces the text, Table 1.: ...
38
votes
6answers
52k views

Caption on the side of a figure

Can anyone tell me how to get my caption on side of my figure, and at the same time aligned with the top of my figure?
19
votes
3answers
21k views

How to limit the figure caption width?

Figure captions seem to wrap at the page width. How could I make them wrap at the figure width instead? Currently, they can easily be mistaken for normal text. \begin{figure}[!htb] \begin{center ...
0
votes
1answer
612 views

Persistent change of caption width in memoir

How do you persistently change caption width in memoir? I know you can use \changecaptionwidth followed by a \captionwidth{...}, but that only works within a float and I don't want to have to specify ...
9
votes
2answers
2k views

Framed text with a float in it

I'd like to frame the text between \startfoo and \stopfoo, but there is a float in it. \documentclass{article} \begin{document} \startfoo \begin{figure}[h] some float with a \caption{...} ...
15
votes
2answers
22k views

How to suppress caption numbering in a table?

How can the auto-numbering on table captions be suppressed? For example, I have a table: \section{Data} \begin{table}[h] \setlength{\arrayrulewidth}{1.5px} \centering \begin{tabular}{lcccc} ...
3
votes
2answers
19k views

Table caption should be left aligned

How to make table caption left-aligned. I tried \usepackage[singlelinecheck=off]{caption} but it did not work out. In other words it gives an error: \DeclareFloatFont ...
3
votes
2answers
6k views

remove colon from table name

I'm using two-column article document class. Long table Name is displayed in the following format: Table 1: table caption goes here. But I want to change in this way: Table 1 table caption ...
4
votes
1answer
351 views

Suggestion of activities calendar in LaTeX

Is there any way to make a kind of activities calendar to put five activities per month in LaTeX, what would you recommend to make it look nice. Something like: Month Activities ...
14
votes
4answers
433 views

How to prevent last period in captions from appearing in the list of figures?

Is there any simple way of removing the last character of an argument to a command (or environment)? I'm looking for a simple way to remove the punctuation mark from a caption when it appears in the ...
3
votes
2answers
266 views

User-specified positioning of caption

For tuning reasons that I cannot detail here, I would like to be able to control the position of the caption of figures. My current code is as follows: \begin{figure}[ht!] \colorbox{red!10}{% ...
0
votes
1answer
3k views

Problems with captions in the environment wrapfigure

I'm dealing with a rather weird issue. Using the enviroment \wrapfigure, I receive an error message undefined control sequence \float@caption ... oxrestore ... \normalize @fs@capt ... let alone ...
14
votes
2answers
4k views

Remove dot-after-number in figure captions while keeping the dot in chapter/section captions

In my document (using KOMAScript and babel[ngerman]) I have various figures which get captions like "Abbildung 1: ...". However, as soon as I add a \appendix to the document all those captions change ...
-2
votes
1answer
632 views

TeX capacity memory exceeded error

\caption[$Set\:3$: Intermediate set]{$Set\:3$: Intermediate set; Classical orifice plate ($s3c$); Plate numbers ($s3f(0-3)$); Classical plate,($s3p$).} Is this a wrong caption? Because it is ...
5
votes
2answers
2k views

longtable: avoiding multiple captions

I have some problems using longtable with a caption. The caption repeats every page therefore multiple entries are created in the list of tables. I only want one caption per table - for the following ...
3
votes
1answer
634 views

Footnote with right parenthesis

I want to put a closing round parenthesis next to a footnote. I use \footnotemark and \footnotetext, since the footnote is part of a caption. \begin{center} ...
13
votes
3answers
23k views

Control spacing around table caption

I want to put several tables in the same table float like this: \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document} \begin{table} \caption{Internal ...
1
vote
1answer
6k views

Move the position of figure subcaption of subfloat command

As the following code shows, it will label an 'a' and 'b' under each picture. How can I put the label at the left-top corner of each figure? \documentclass{article} \usepackage{graphicx} ...
7
votes
2answers
3k views

How to use a longtable with only one entry in the list of tables

I'm using longtable to spread my table over three pages. Unfortunately the caption is also added three times to the list of tables. Is is possible to have it displayed only once?
2
votes
1answer
4k views

Multiple captions for a single figure

How do I get subfig-like captions for a single figure? I've got images that have multiple panels each, and I'd like to make a caption for all the sub-panels, as well as be able to reference each ...
2
votes
1answer
3k views

Avoiding newline after “Table” in caption while using IEEETran

IEEETran has the following style for table caption: Table <number> <caption> But I would like to have it, without a line-break, as: Table <number>. <caption> This would ...
13
votes
1answer
2k views

“etc.” abbreviation macro gives error when used in caption

I've been using the abbreviation macros for i.e., e.g., and etc. that are provided in this post. However, I just discovered that the etc. macro, and a similar one I made for et al. both cause errors ...
2
votes
2answers
1k views

Where to add a caption and a reference to a tabbing&fbox&minipage

I put some texts enclosed within tabbing, embedded in fbox and minipage: \fbox{% \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} \quad \= \quad \= \quad \= \quad \= \quad \= \hspace{5cm} \= ...
5
votes
1answer
519 views

subcaption: how to redefine default separator between figure and subfigure number in \ref's?

I am migrating from subfig to subcaption package and wondering how to make the following thing. The subcaption labels in floats should look like a single italic letter in brackets (a), and ...
2
votes
1answer
562 views

Caption of longtable tables when using memoir

It seems the longtable package provides its own captions totally separate from the ones provided by memoir. There is a question on this site hinting at using the caption package for styling the ...
3
votes
2answers
429 views

Adding a frame and background color to floats in ConTeXt

I am trying to decorate the floats in my thesis as follows: each float shall have a top/bottom frame in a custom color, the caption and content of each float are supposed to have the same background ...
3
votes
1answer
910 views

Caption in subfloat shifted to the right

I'm seeing strange behavior when using subfloat. I have 6 figures that I want to display as 2 by 3 (2 lines, 3 columns). The caption (a, b, c etc.) is shifted to the right which means figure b) is ...
10
votes
2answers
10k views

Use caption and long description for figure

I want to have to following text at my figures: << FIGURE >> Figure 1: Title of my figure which is displayed in the list of figures Here in a new line a long description about the figure, ...
7
votes
1answer
6k views

Space after float with [h]

this is my first time here, and I have this question: I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space ...
0
votes
1answer
1k views

Caption does not work with wrapfig

The following code does not output the caption correctly, font appears in normal size, and "Figure" is not boldfaced. \begin{wrapfigure}{r}{0.5\textwidth} \vspace{-50pt} \begin{center} ...
34
votes
2answers
42k views

How to add caption for a TikZ picture?

I'm drawing a automaton figure, and I want to name it says 'M1' below the figure? A minimal example would be greatly appreciated. Thank you. \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on ...
14
votes
2answers
13k views

Table numbering mismatch in caption and in text

I have created 2 tables in my LaTeX document \begin{table}[hb] \centering \begin{tabular}{|c|c|r|} \hline ... not important... \end{tabular} \label{tab:2} \caption{Določanje prioritet mojstrov ...
4
votes
2answers
3k views

Setting caption/rule width in Algorithm2e algs

Many of the algorithms I have with the algorithm2e package do not extend across the page width. If I use the package's boxruled or ruled options, the result is a box or rule that extends the pagewidth ...
4
votes
1answer
668 views

How can I change links made by hyperref?

My document: \documentclass[12pt,a4paper]{mwrep} \usepackage{polski} \usepackage[utf8]{inputenc} \usepackage[hidelinks,unicode]{hyperref} \usepackage[T1,OT4]{fontenc} \usepackage{graphicx} ...
24
votes
2answers
42k views

How to force table caption on top?

I have a table which works ok...as per example below. But in the thesis, the right column is centered and caption forced to below table. Is there a way I can make it look like? ...
8
votes
2answers
7k views

How to change font size of longtable-lines without changing font size of caption?

I'd like to change the font size of all contents of a longtable to footnotesize. However the rest of the document and also the caption (!) shall be (stay) in normal size. (pdflatex is used) How can I ...
3
votes
3answers
2k views

Create caption without float *and* without caption package?

In the appendix of my thesis, there is a large number of tables and longtables which does not need to float, as they shall appear one after the other just how they fit on the pages (and it is no ...